aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


commit e6f56aade9851f8ed9699b86c2ba905cb077a386
parent bb6817e1bdda310581c2842acb305cd1a742cd7d
Author: anon <anon@example.com>
Date:   Fri, 16 Oct 2026 07:52:38 +0000

Implement mouse capture and CRT classification data; audit remaining imports

Diffstat:
Mdecompiled/runtime/guest_crt.c | 15++++++++++++++-
Mdecompiled/runtime/linux_window.c | 41++++++++++++++++++++++++++++++++++++++++-
Mdecompiled/tests/ctype.c | 26++++++++++++++++++++++++++
Mdecompiled/tests/window.c | 29+++++++++++++++++++++++++++++
Adocs/linux-import-coverage.json | 3581+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atools/reconstruction/audit_linux_imports.gdb.py | 42++++++++++++++++++++++++++++++++++++++++++
6 files changed, 3732 insertions(+), 2 deletions(-)

diff --git a/decompiled/runtime/guest_crt.c b/decompiled/runtime/guest_crt.c @@ -129,7 +129,7 @@ uint32_t guest_crt_data(const char *name) {"__mb_cur_max", 48}, {"_fmode", 52}, {"_commode", 56}, {"_acmdln", 60}, {"__argc", 64}, {"__argv", 68}, {"_environ", 72}, {"__initenv", 76}, {"_pgmptr", 80}, - {"__app_type", 84}, + {"__app_type", 84}, {"_pctype", 88}, {"_iob", 0x1000}, }; unsigned index; @@ -146,6 +146,19 @@ uint32_t guest_crt_data(const char *name) for (unsigned i = 0; i < 10; ++i) MEM32(0x08500120u + i * 4) = i ? 0x08500106u : 0x08500104u; memset((void *)ADDR(0x08500148u), 127, 8); + /* _pctype points past the EOF entry to 256 unsigned-short C-locale masks. */ + MEM32(0x08500058u) = 0x08500202u; + for (unsigned c = 0; c < 128; ++c) { + unsigned mask = c < 32 || c == 127 ? 0x20 : 0; + if ((c >= 9 && c <= 13) || c == ' ') mask |= 8; + if (c == ' ') mask |= 0x40; + if (c >= 'A' && c <= 'Z') mask |= 1; + if (c >= 'a' && c <= 'z') mask |= 2; + if (c >= '0' && c <= '9') mask |= 4; + if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F')) mask |= 0x80; + if (c >= 33 && c <= 126 && !(mask & 7)) mask |= 0x10; + MEM16(0x08500202u + c * 2) = mask; + } /* MSVCRT _iobuf is eight DWORDs; host FILE objects never enter this array. */ MEM32(0x08501000u) = 0x08502000u; MEM32(0x08501008u) = 0x08502000u; diff --git a/decompiled/runtime/linux_window.c b/decompiled/runtime/linux_window.c @@ -13,7 +13,7 @@ static struct window_class { } *classes; static struct { struct window_class *class; - uint32_t handle, focus, style; + uint32_t handle, focus, style, capture; int active, shown; } client; static uint32_t next_atom = 0xc000, next_handle = 0xf4000000u; @@ -208,6 +208,35 @@ static uint32_t send_message(uint32_t message, uint32_t wparam, uint32_t lparam) return g_eax; } +static uint32_t change_capture(uint32_t handle) +{ + uint32_t previous = client.capture; + SDL_bool capture = handle && SDL_GetKeyboardFocus() == linux_graphics_window(); + if (SDL_CaptureMouse(capture)) unsupported("mouse capture", handle); + client.capture = handle; + if (previous) send_message(0x215, 0, handle); /* WM_CAPTURECHANGED */ + return previous; +} + +static void set_capture(void) +{ + uint32_t handle = MEM32(g_esp + 4); + if (handle && handle != client.handle) { + g_eax = 0; + MEM32(g_fs_base + 0x34) = 1400; + } else g_eax = change_capture(handle); + g_esp += 8; +} + +static void release_capture(void) +{ + change_capture(0); + g_eax = 1; + g_esp += 4; +} + +static void get_capture(void) { g_eax = client.capture; g_esp += 4; } + static void send_size_limits(void) { SDL_Rect bounds; @@ -312,6 +341,7 @@ static void default_procedure(void) case 0x0f: /* WM_PAINT: the game presents its own rendered surface. */ case 0x100: case 0x101: case 0x102: /* Unhandled keyboard input. */ case 0x104: case 0x105: case 0x106: + case 0x215: /* WM_CAPTURECHANGED */ case 0x200: case 0x201: case 0x202: case 0x203: case 0x204: case 0x205: case 0x206: case 0x207: case 0x208: case 0x209: case 0x20a: break; @@ -328,6 +358,10 @@ static void default_procedure(void) static void release_window(void) { + if (client.capture) { + if (SDL_CaptureMouse(SDL_FALSE)) unsupported("release mouse capture", client.capture); + client.capture = 0; + } if (pthread_mutex_lock(&message_mutex)) abort(); struct queued_message **link = &message_head; message_tail = NULL; @@ -876,6 +910,7 @@ static void process_event(const SDL_Event *event) switch (event->window.event) { case SDL_WINDOWEVENT_CLOSE: queue_message(client.handle, 0x10, 0, 0, 0, 0); break; case SDL_WINDOWEVENT_FOCUS_GAINED: + if (client.capture && SDL_CaptureMouse(SDL_TRUE)) unsupported("mouse capture", client.capture); if (!client.active) { client.active = 1; send_message(0x1c, 1, 0); @@ -885,6 +920,7 @@ static void process_event(const SDL_Event *event) } break; case SDL_WINDOWEVENT_FOCUS_LOST: + if (client.capture) change_capture(0); if (client.active) { client.active = 0; change_focus(0); @@ -1139,6 +1175,9 @@ recomp_func_t linux_window_lookup(const char *dll, const char *name) if (!strcmp(name, "ClientToScreen")) return client_to_screen; if (!strcmp(name, "GetCursorPos")) return cursor_position; if (!strcmp(name, "SetCursor")) return set_cursor; + if (!strcmp(name, "SetCapture")) return set_capture; + if (!strcmp(name, "GetCapture")) return get_capture; + if (!strcmp(name, "ReleaseCapture")) return release_capture; if (!strcmp(name, "GetKeyState")) return key_state; if (!strcmp(name, "GetDesktopWindow")) return desktop_window; if (!strcmp(name, "GetDC")) return get_dc; diff --git a/decompiled/tests/ctype.c b/decompiled/tests/ctype.c @@ -50,4 +50,30 @@ int main(void) #endif } puts("isspace: all byte values and EOF, exact C-locale mask, errno and guest ABI passed"); + +#ifdef _WIN32 + const unsigned short **table_pointer = (void *)GetProcAddress(library, "_pctype"); + assert(table_pointer); +#else + uint32_t table_pointer = guest_crt_data("_pctype"); + assert(table_pointer); +#endif + uint32_t digest = 2166136261u; + + for (int value = -1; value <= 255; ++value) { +#ifdef _WIN32 + unsigned mask = (*table_pointer)[value]; +#else + unsigned mask = MEM16(MEM32(table_pointer) + value * 2); +#endif + digest = (digest ^ mask) * 16777619u; + + if (value == -1 || value >= 128) assert(mask == 0); + if (value == 'A') assert(mask == 0x81); + if (value == 'z') assert(mask == 0x02); + if (value == '9') assert(mask == 0x84); + if (value == ' ') assert(mask == 0x48); + if (value == '\t') assert(mask == 0x28); + } + printf("_pctype: 257 C-locale table entries, digest %08x\n", digest); } diff --git a/decompiled/tests/window.c b/decompiled/tests/window.c @@ -31,6 +31,7 @@ static int wide; static int capture_focus, clear_in_callback; static int capture_geometry; static int capture_visibility; +static unsigned mouse_capture_changes; static unsigned queue_dispatches; static uint32_t workspace(void) @@ -112,6 +113,10 @@ static uint32_t error(void) static uint32_t receive(uint32_t handle, uint32_t message, uint32_t wparam, uint32_t lparam) { + if (message == 0x215) { + ++mouse_capture_changes; + assert(!wparam && call("GetCapture", 0, NULL) == lparam); + } if (message == 0x8001 || message == 0x8002) { ++queue_dispatches; return wparam ^ lparam; @@ -496,6 +501,29 @@ static void class_release_invalidates_its_atom(void) assert(!window && create_error == 6); } +static void mouse_capture_reports_ownership_and_releases_on_destruction(void) +{ + message_count = 0; + uint32_t handle = call("CreateWindowExA", 12, args), null = 0; + assert(handle && !call("GetCapture", 0, NULL)); + mouse_capture_changes = 0; + + assert(!call("SetCapture", 1, &handle)); + assert(call("GetCapture", 0, NULL) == handle); + assert(call("SetCapture", 1, &handle) == handle); + assert(mouse_capture_changes == 1); + assert(call("SetCapture", 1, &null) == handle); + assert(!call("GetCapture", 0, NULL) && mouse_capture_changes == 2); + assert(!call("SetCapture", 1, &handle)); + assert(call("ReleaseCapture", 0, NULL)); + assert(!call("GetCapture", 0, NULL) && mouse_capture_changes == 3); + assert(call("ReleaseCapture", 0, NULL)); + assert(!call("SetCapture", 1, &handle)); + assert(call("DestroyWindow", 1, &handle)); + + assert(!call("GetCapture", 0, NULL) && mouse_capture_changes == 3); +} + static void cursor_query_writes_a_guest_point(void) { uint32_t output = workspace() + 256, null = 0; @@ -885,6 +913,7 @@ int main(void) #ifndef _WIN32 sdl_keyboard_and_mouse_reach_guest_messages(); #endif + mouse_capture_reports_ownership_and_releases_on_destruction(); class_release_invalidates_its_atom(); } wide = 0; diff --git a/docs/linux-import-coverage.json b/docs/linux-import-coverage.json @@ -0,0 +1,3581 @@ +{ + "executable_sha256": "397c8d120945e9234652306e32e7c97862246d879f7459c70e0b5b60e798c835", + "imports": [ + { + "dll": "KERNEL32.dll", + "name": "DisableThreadLibraryCalls", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "QueryPerformanceFrequency", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "QueryPerformanceCounter", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCP60.dll", + "name": "?_Xran@std@@YAXXZ", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCP60.dll", + "name": "?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCP60.dll", + "name": "??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCP60.dll", + "name": "?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEX_N@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCP60.dll", + "name": "?_Eos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEXI@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCP60.dll", + "name": "?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAE_NI_N@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCP60.dll", + "name": "?_Freeze@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEXXZ", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_ftol", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "free", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "??2@YAPAXI@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "__CxxFrameHandler", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "memmove", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_initterm", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "__dllonexit", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_onexit", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "malloc", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "Module32Next", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "GetProcAddress", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "Module32First", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "CreateToolhelp32Snapshot", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "OutputDebugStringA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "CloseHandle", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCP60.dll", + "name": "?_Xlen@std@@YAXXZ", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCP60.dll", + "name": "??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCP60.dll", + "name": "?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCP60.dll", + "name": "?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCP60.dll", + "name": "??Mstd@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "??0exception@@QAE@ABV0@@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "??1exception@@UAE@XZ", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "??0exception@@QAE@ABQBD@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_CxxThrowException", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "sprintf", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "strncmp", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "?name@type_info@@QBEPBDXZ", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "__RTtypeid", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_strnicmp", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "strncpy", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "??1type_info@@UAE@XZ", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_except_handler3", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "?terminate@@YAXXZ", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetFullPathNameA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "SearchPathA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "CreateFileA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "CreateDirectoryA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "FindResourceA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "DeleteFileA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "GetLastError", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "SizeofResource", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "UnmapViewOfFile", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetVersionExA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "GetWindowsDirectoryA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetFileSize", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "MapViewOfFile", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetCurrentDirectoryA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "CreateFileMappingA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "LocalFree", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetModuleHandleA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "GetWindowLongA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "AdjustWindowRectEx", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "ReleaseDC", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "GetSystemMetrics", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "MoveWindow", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "GetClientRect", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "SetWindowPos", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "MessageBoxA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "DrawTextA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "DefWindowProcA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "SetWindowLongA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "CreateWindowExA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "GetDC", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "GetDesktopWindow", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "RegisterClassA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "DestroyWindow", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "UnregisterClassA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "LoadCursorA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "LoadIconA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "ClientToScreen", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "LoadStringA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "wsprintfA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "GDI32.dll", + "name": "GetStockObject", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "GDI32.dll", + "name": "SetBkMode", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "GDI32.dll", + "name": "StretchBlt", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "GDI32.dll", + "name": "GetPaletteEntries", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "GDI32.dll", + "name": "GetDeviceGammaRamp", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "GDI32.dll", + "name": "GetCharABCWidthsA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "GDI32.dll", + "name": "ExtTextOutA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "GDI32.dll", + "name": "DeleteObject", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "GDI32.dll", + "name": "SetBkColor", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "GDI32.dll", + "name": "DeleteDC", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "GDI32.dll", + "name": "SetTextColor", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "GDI32.dll", + "name": "SelectObject", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "GDI32.dll", + "name": "CreateICA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "GDI32.dll", + "name": "GetTextExtentPoint32A", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "GDI32.dll", + "name": "AddFontResourceA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "GDI32.dll", + "name": "CreateDIBSection", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "GDI32.dll", + "name": "SetDeviceGammaRamp", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "GDI32.dll", + "name": "RemoveFontResourceA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "GDI32.dll", + "name": "GetDeviceCaps", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "GDI32.dll", + "name": "CreateFontA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "DDRAW.dll", + "name": "DirectDrawEnumerateExA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "DDRAW.dll", + "name": "DirectDrawCreateEx", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "DDRAW.dll", + "name": "DirectDrawCreate", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "DINPUT.dll", + "name": "DirectInputCreateA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCP60.dll", + "name": "??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$allocator@D@1@@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCP60.dll", + "name": "?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEXI@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_strdup", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_stricmp", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_EH_prolog", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_snprintf", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "fprintf", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_purecall", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "exit", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "calloc", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_setjmp3", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_stat", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "floor", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "rand", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "atof", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "ftell", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "fread", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "tmpfile", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_CIpow", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "fputs", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "fgets", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_isctype", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "strchr", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "??0exception@@QAE@XZ", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "fscanf", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "fgetpos", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "fopen", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_vsnprintf", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "qsort", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "??4exception@@QAEAAV0@ABV0@@Z", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "strrchr", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "strtod", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "longjmp", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "tolower", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "fclose", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "fwrite", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "fseek", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_CIfmod", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "__RTDynamicCast", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "getenv", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "??8type_info@@QBEHABV0@@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_CIacos", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "?what@exception@@UBEPBDXZ", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "strstr", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "ceil", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "time", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "sscanf", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "realloc", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "printf", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "srand", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "OLEAUT32.dll", + "name": null, + "ordinal": 9, + "adapter_found": false + }, + { + "dll": "OLEAUT32.dll", + "name": null, + "ordinal": 8, + "adapter_found": false + }, + { + "dll": "OLEAUT32.dll", + "name": null, + "ordinal": 12, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetVolumeInformationA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetDriveTypeA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetLogicalDrives", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "SetCurrentDirectoryA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_fullpath", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "??3@YAXPAX@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "fflush", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "remove", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_chmod", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "fgetc", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "fputc", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "GlobalLock", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GlobalUnlock", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "GetClipboardData", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "OpenClipboard", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "GetCursorPos", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "GetWindowRect", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "GetKeyState", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "CloseClipboard", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "SetCursorPos", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "GDI32.dll", + "name": "GetDIBits", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "GDI32.dll", + "name": "CreateCompatibleDC", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "GDI32.dll", + "name": "CreateBitmap", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "GDI32.dll", + "name": "TextOutW", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "GDI32.dll", + "name": "GetTextExtentPoint32W", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "GDI32.dll", + "name": "GetTextMetricsA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "IMM32.dll", + "name": "ImmSetConversionStatus", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "IMM32.dll", + "name": "ImmSetOpenStatus", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "IMM32.dll", + "name": "ImmReleaseContext", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "IMM32.dll", + "name": "ImmGetContext", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "IMM32.dll", + "name": "ImmGetConversionStatus", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCP60.dll", + "name": "?max_size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "isspace", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "atoi", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "toupper", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "memchr", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_itoa", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "GetStartupInfoA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "WideCharToMultiByte", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "SetLastError", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "LoadLibraryA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "FreeLibrary", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "CreateSemaphoreA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "OpenSemaphoreA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "SetUnhandledExceptionFilter", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "GetCurrentThreadId", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "SetClassLongA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "TranslateMessage", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "SetCursor", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "SetFocus", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "ShowWindow", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "SystemParametersInfoA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "PostQuitMessage", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "InvalidateRect", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "GetKeyboardState", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "ToAscii", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "ReleaseCapture", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "SetCapture", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "IMM32.dll", + "name": "ImmGetCompositionStringW", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "IMM32.dll", + "name": "ImmGetCandidateListW", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "IMM32.dll", + "name": "ImmNotifyIME", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "__p__commode", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "__p__fmode", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "__set_app_type", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "__setusermatherr", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "wcslen", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_set_error_mode", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "signal", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "freopen", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_controlfp", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_spawnv", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_XcptFilter", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_exit", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "__getmainargs", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "perror", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_errno", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "clearerr", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GlobalMemoryStatus", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "GetLocaleInfoA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "MultiByteToWideChar", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GlobalAlloc", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "GetClassNameA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "PostMessageA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "EnumDesktopWindows", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "EmptyClipboard", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "SetClipboardData", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "RegisterWindowMessageA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "SHELL32.dll", + "name": "ShellExecuteA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "asctime", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "gmtime", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "strftime", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "localtime", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_tzset", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "strtoul", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "isdigit", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "islower", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "isupper", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_mkdir", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_strdate", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "strcspn", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "atol", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_findclose", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_findnext", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_findfirst", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 3, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 15, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 18, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 16, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 19, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 4, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 8, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 52, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 9, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 23, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 10, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 111, + "adapter_found": true + }, + { + "dll": "WINMM.dll", + "name": "timeGetTime", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 21, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 14, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 22, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 12, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "EnterCriticalSection", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "Sleep", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "VirtualQuery", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "FormatMessageA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "IsBadReadPtr", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetModuleFileNameA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "WriteFile", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "ReadFile", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "LeaveCriticalSection", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "wvsprintfA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "DialogBoxParamA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "SetForegroundWindow", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "SetWindowTextA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "EndDialog", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "GetWindowTextA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "GetDlgItem", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "RegQueryValueExA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "RegOpenKeyExA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "RegCloseKey", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "SHLWAPI.dll", + "name": "SHGetValueA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "vsprintf", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "?_set_new_mode@@YAHH@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_mbsrchr", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_control87", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 115, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 116, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_CIasin", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GlobalHandle", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GlobalFree", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "ExitProcess", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "WriteConsoleA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetConsoleTitleA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetStdHandle", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetFileInformationByHandle", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetShortPathNameA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "FlushFileBuffers", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "MoveFileA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "SetHandleCount", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "GetSystemTimeAsFileTime", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "SetFilePointer", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 57, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "labs", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "abs", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "tmpnam", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "strcat", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "strncat", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "memcmp", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "strlen", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "memcpy", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "fabs", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "fmod", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "gets", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "putchar", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "isalnum", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "isalpha", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "strcmp", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "memset", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "strcpy", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "WSOCK32.dll", + "name": null, + "ordinal": 8, + "adapter_found": true + }, + { + "dll": "MSVCP60.dll", + "name": "?capacity@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCP60.dll", + "name": "?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_finite", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "?before@type_info@@QBEHABV1@@Z", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "ungetc", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_splitpath", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "isxdigit", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_ltoa", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "DeleteCriticalSection", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_sample_playback_rate@4", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_start_sample@4", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_allocate_sample_handle@4", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_sample_status@4", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_end_sample@4", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_set_sample_loop_count@8", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_set_sample_playback_rate@8", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_set_sample_volume@8", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_set_digital_master_volume@8", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_set_sample_file@12", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_file_read@8", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_file_type@8", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_decompress_ASI@24", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "mss32.dll", + "name": "_AIL_release_sample_handle@4", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_waveOutClose@4", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_shutdown@0", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_set_redist_directory@4", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_startup@0", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_set_preference@8", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_waveOutOpen@16", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_quick_shutdown@0", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "mss32.dll", + "name": "_AIL_init_sample@4", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_mem_free_lock@4", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "WINMM.dll", + "name": "waveOutGetNumDevs", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "RemoveDirectoryA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "mss32.dll", + "name": "_AIL_set_stream_ms_position@8", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_pause_stream@8", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_start_stream@4", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_set_stream_volume@8", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_stream_status@4", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_digital_latency@4", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_open_stream@12", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_stream_ms_position@12", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "mss32.dll", + "name": "_AIL_close_stream@4", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "WINMM.dll", + "name": "timeSetEvent", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "WINMM.dll", + "name": "timeKillEvent", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetTickCount", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "WaitForSingleObject", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "CreateMutexA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "ReleaseMutex", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_endthread", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_beginthread", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "VirtualProtect", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "abort", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "puts", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "localeconv", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_Gettnames", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_Getdays", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_Getmonths", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "atan2", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "cos", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "exp", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "ldexp", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "log", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "pow", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "sin", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "sqrt", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "strtol", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "fsetpos", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "setvbuf", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "ungetwc", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "fgetwc", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_Strftime", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "setlocale", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "__crtCompareStringA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_unlock", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_lock", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "__crtLCMapStringA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "towlower", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "towupper", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "fputwc", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "InterlockedExchange", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "InitializeCriticalSection", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "InterlockedIncrement", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "InterlockedDecrement", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "ADVAPI32.dll", + "name": "StartServiceA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "RegCreateKeyExA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "RegDeleteKeyA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "RegEnumKeyExA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "RegEnumValueA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "RegSetValueExA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "RegDeleteValueA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "RegOpenKeyA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "CloseServiceHandle", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "CreateServiceA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "OpenSCManagerA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "DeleteService", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "OpenServiceA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "ChangeServiceConfigA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "QueryServiceConfigA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "QueryServiceStatus", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "GetUserNameA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "ControlService", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "SetServiceStatus", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "RegFlushKey", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "ADVAPI32.dll", + "name": "RegConnectRegistryA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "MsgWaitForMultipleObjects", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "USER32.dll", + "name": "DispatchMessageA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "USER32.dll", + "name": "PeekMessageA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 11, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": "WSASocketA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 13, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 7, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 6, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 55, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 54, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 53, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 5, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": "WSASend", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": "WSARecv", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 17, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 151, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 51, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": "WSAConnect", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 2, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": "WSAIoctl", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": "WSAJoinLeaf", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": "WSAEnumProtocolsA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": "WSAAccept", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 1, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": "WSARecvFrom", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": null, + "ordinal": 20, + "adapter_found": false + }, + { + "dll": "WS2_32.dll", + "name": "WSAEventSelect", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": "WSAEnumNetworkEvents", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "WS2_32.dll", + "name": "WSASendTo", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSWSOCK.dll", + "name": "AcceptEx", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSWSOCK.dll", + "name": "TransmitFile", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "strtok", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "system", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "rewind", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_access", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "ctime", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_execv", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_execve", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_execvp", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_close", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_fdopen", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_open_osfhandle", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_getcwd", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "difftime", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "wcsspn", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "wcscmp", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wtoi", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "wcspbrk", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "wcscat", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "wcschr", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_timezone", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wputenv", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wcsicmp", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wcsnicmp", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "wcsncmp", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "wcsncpy", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "wcsncat", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "wcstok", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "wcstol", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "wcstoul", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "wcstod", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "iswspace", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "wcsstr", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "vswprintf", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wunlink", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wgetenv", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wrename", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_waccess", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wfdopen", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wstat", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wperror", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "fgetws", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wsystem", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wmktemp", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wmkdir", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wchdir", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wgetcwd", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "bsearch", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_isatty", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "isprint", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "strerror", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_sys_nerr", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "vfprintf", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "vprintf", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "getchar", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "vfwprintf", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_endthreadex", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_beginthreadex", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "mktime", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "getc", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "strpbrk", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "strspn", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_tempnam", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "rename", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_umask", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_pipe", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_chdir", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "wcsrchr", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "wcscpy", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_putenv", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_wcsdup", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_fileno", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "MSVCRT.dll", + "name": "_unlink", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "MSVCRT.dll", + "name": "_mktemp", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "SetCommState", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "PostQueuedCompletionStatus", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetQueuedCompletionStatus", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "CreateIoCompletionPort", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "WaitForMultipleObjectsEx", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "GetCommState", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetCommTimeouts", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "SetCommTimeouts", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "SetNamedPipeHandleState", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "WaitForMultipleObjects", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "GetEnvironmentStrings", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "FreeEnvironmentStringsA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "CreateFileW", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "CreateProcessA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "TlsAlloc", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "TlsSetValue", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "TlsFree", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "SetPriorityClass", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "VirtualAlloc", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetLocalTime", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "ExpandEnvironmentStringsA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "TerminateProcess", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetComputerNameW", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "OpenProcess", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetExitCodeProcess", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetCurrentProcessId", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "GetSystemInfo", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetCurrentProcess", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "DuplicateHandle", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "UnlockFile", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "LockFile", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "FlushViewOfFile", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetComputerNameA", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "SuspendThread", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "SetThreadPriority", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "TlsGetValue", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "ResumeThread", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "GetThreadPriority", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "ResetEvent", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "PulseEvent", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "SetEvent", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "CreateEventA", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "ReleaseSemaphore", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "MapViewOfFileEx", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "SetEndOfFile", + "ordinal": 0, + "adapter_found": false + }, + { + "dll": "KERNEL32.dll", + "name": "GetExitCodeThread", + "ordinal": 0, + "adapter_found": true + }, + { + "dll": "KERNEL32.dll", + "name": "GetCurrentThread", + "ordinal": 0, + "adapter_found": true + } + ] +} diff --git a/tools/reconstruction/audit_linux_imports.gdb.py b/tools/reconstruction/audit_linux_imports.gdb.py @@ -0,0 +1,42 @@ +"""Audit the built Linux resolver before any guest module initialization runs.""" +import hashlib +import json +import pathlib +import struct + +import gdb + + +gdb.execute('set pagination off') +gdb.execute('set confirm off') +gdb.execute('set print thread-events off') +gdb.execute('tbreak attach_module') +gdb.execute('run') + +# Read the bound import table, then query the real resolver without executing APIs. +count = int(gdb.parse_and_eval('(unsigned int)linux_import_count()')) +table = int(gdb.parse_and_eval('&imports')) +missing = int(gdb.parse_and_eval('&external_call')) +entries = [] +for index in range(count): + dll, name, ordinal = struct.unpack('<QQI4x', gdb.selected_inferior().read_memory(table + index * 24, 24)) + function = int(gdb.parse_and_eval('(void*)recomp_lookup_import(%d)' % (0xf0000000 + index * 4))) + entries.append({ + 'dll': gdb.parse_and_eval('(char*)%d' % dll).string(), + 'name': gdb.parse_and_eval('(char*)%d' % name).string() if name else None, + 'ordinal': ordinal, + 'adapter_found': function != missing, + }) + +output = pathlib.Path('docs/linux-import-coverage.json') +with pathlib.Path(gdb.current_progspace().filename).open('rb') as executable: + digest = hashlib.file_digest(executable, 'sha256').hexdigest() +output.write_text(json.dumps({'executable_sha256': digest, 'imports': entries}, indent=2) + '\n') +supported = sum(entry['adapter_found'] for entry in entries) +print('%d bound symbols: %d with adapters, %d missing' % (count, supported, count - supported)) +for entry in entries: + if not entry['adapter_found']: + print('%s!%s' % (entry['dll'], entry['name'] or ('#%d' % entry['ordinal']))) +print('Adapter presence does not establish full argument/method coverage. Dynamic imports and COM methods require separate auditing.') +print('Known data exports are excluded. Unrecognized data exports can still be incorrectly bound as call tokens.') +gdb.execute('quit')