Function at 0x57e890
Capabilities:
Allocate thread local storage
Check for time delay via gettickcount
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x8c]
sub esp, 0xfc
call fcn.0057e520
mov eax, dword [0x57fd14]
mov dword [esp], 1
mov dword [ebp - 0xd0], eax
call eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_setvbuf]
mov dword [esp + 8], str.winetest_print_mutex
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov dword [0x9007b0], eax
mov eax, dword [ebp + 8]
sub esp, 0xc
mov dword [0x9007ac], eax
mov eax, dword [ebp + 0xc]
mov dword [0x9007a8], eax
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], ebx
mov dword [esp], str.WINETEST_PLATFORM
call edi
sub esp, 0xc
test eax, eax
je 0x57ec03
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__strdup]
mov dword [str.windows], eax
mov dword [esp + 4], str.wine
mov eax, dword [str.windows]
mov esi, dword [sym.imp.msvcrt.dll_strcmp]
mov dword [esp], eax
call esi
test eax, eax
sete al
movzx eax, al
mov dword [0x8f0770], eax
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], ebx
mov dword [esp], str.WINETEST_COLOR
call edi
sub esp, 0xc
test eax, eax
je 0x57e9b7
mov dword [esp + 4], str.auto
mov dword [esp], ebx
call esi
mov dword [ebp - 0xd4], eax
test eax, eax
je 0x57eb8f
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_atoi]
mov dword [0x8f0764], eax
test eax, eax
jne 0x57ee41
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], ebx
mov dword [esp], str.WINETEST_DEBUG
call edi
sub esp, 0xc
test eax, eax
jne 0x57ecc8
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], ebx
mov dword [esp], str.WINETEST_INTERACTIVE
call edi
sub esp, 0xc
test eax, eax
jne 0x57ecb5
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], ebx
mov dword [esp], str.WINETEST_REPORT_FLAKY
call edi
sub esp, 0xc
test eax, eax
jne 0x57eca2
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], ebx
mov dword [esp], str.WINETEST_REPORT_SUCCESS
call edi
sub esp, 0xc
test eax, eax
jne 0x57ec8f
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], ebx
mov dword [esp], str.WINETEST_TIME
call edi
sub esp, 0xc
test eax, eax
jne 0x57ec7c
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [0x8f077c], eax
mov dword [0x8f0778], eax
mov dword [esp + 4], str.windows
mov eax, dword [str.windows]
mov dword [esp], eax
call esi
test eax, eax
je 0x57ec69
mov edx, dword [0x8f0774]
test edx, edx
je 0x57ec56
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0xd4], eax
test eax, eax
je 0x57eed9
mov dword [esp + 4], str.__list
mov eax, dword [ebp - 0xd4]
mov dword [esp], eax
call esi
test eax, eax
je 0x57ec43
mov dword [esp + 4], 0x2f
mov eax, dword [ebp - 0xd4]
mov ebx, dword [sym.imp.msvcrt.dll_strrchr]
mov dword [esp], eax
call ebx
test eax, eax
je 0x57ee30
add eax, 1
mov dword [ebp - 0xd0], eax
mov dword [esp + 4], 0x5c
mov eax, dword [ebp - 0xd0]
mov dword [esp], eax
call ebx
test eax, eax
je 0x57eb08
add eax, 1
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strlen]
mov ebx, eax
cmp eax, 2
jbe 0x57eb3b
lea edi, [eax - 2]
mov dword [esp + 4], 0x6039b7
mov eax, dword [ebp - 0xd0]
add eax, edi
mov dword [esp], eax
call esi
test eax, eax
cmove ebx, edi
mov edi, 0x603b60
mov esi, str.actctx
lea esi, [esi]
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0xd0]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_strncmp]
test eax, eax
jne 0x57eb69
cmp byte [esi + ebx], 0
je 0x57ebb5
mov esi, dword [edi + 8]
add edi, 8
test esi, esi
jne 0x57eb48
mov eax, dword [ebp - 0xd4]
mov dword [esp], str.Fatal:_test__s_does_not_exist._n
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_printf]
call fcn.0057d060
mov dword [esp], 1
mov eax, dword [ebp - 0xd0]
call eax
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__fileno]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__isatty]
jmp 0x57e9aa
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x9007a4], edi
mov dword [0x9007a0], eax
call dword [edi + 4]
cmp dword [0x57fce8], 0
jne 0x57ecdb
mov ebx, dword [0x8f074c]
add ebx, dword [0x8f075c]
cmp dword [0x8f076c], 0
je 0x57ebf1
add ebx, dword [0x8f0758]
mov eax, 0xff
cmp ebx, eax
cmovle eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x6038fe
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push edx
test eax, eax
je 0x57e945
mov dword [esp + 4], str.wine_server_call
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push esi
push esi
test eax, eax
je 0x57e945
mov dword [str.windows], 0x603919
jmp 0x57e945
mov dword [ebp - 0xd0], eax
call fcn.0057d010
mov eax, dword [ebp - 0xd0]
jmp 0x57ebfb
mov dword [esp], 3
call dword [sym.imp.kernel32.dll_SetErrorMode]
push eax
jmp 0x57ea8f
mov dword [esp], 0x57d2a0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push ecx
jmp 0x57ea81
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_atoi]
mov dword [0x8f0780], eax
jmp 0x57ea57
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_atoi]
mov dword [0x8f0768], eax
jmp 0x57ea37
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_atoi]
mov dword [0x8f076c], eax
jmp 0x57ea17
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_atoi]
mov dword [0x8f0774], eax
jmp 0x57e9f7
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_atoi]
mov dword [0x57fce8], eax
jmp 0x57e9d7
call fcn.0057d240
mov eax, dword [0x8f0744]
mov esi, dword [0x8f0740]
mov edx, dword [0x8f0748]
mov ebx, dword [sym.imp.msvcrt.dll_printf]
mov dword [ebp - 0xd0], eax
or eax, esi
or eax, edx
je 0x57ed61
cmp dword [0x8f0780], 0
mov eax, 0x603686
je 0x57ed28
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xd4], edx
call fcn.0057d0c0
mov edx, dword [ebp - 0xd4]
mov dword [esp + 0x18], edx
mov edx, dword [ebp - 0xd0]
mov dword [esp + 0x10], esi
mov ebx, dword [sym.imp.msvcrt.dll_printf]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x20]
mov dword [esp], str._04x:_s:_s_Silenced__d_todos___d_skips_and__d_traces._n
mov dword [esp + 4], eax
call ebx
mov eax, dword [0x8f0754]
mov esi, str.failures
mov edx, str.failure
mov ecx, dword [0x8f074c]
mov dword [ebp - 0xd0], eax
mov eax, dword [0x8f075c]
add ecx, eax
mov dword [ebp - 0xd4], ecx
sub ecx, 1
mov ecx, dword [0x8f0758]
cmovne edx, esi
add eax, dword [0x8f0760]
mov esi, dword [0x8f0750]
add eax, ecx
add eax, esi
add eax, dword [0x8f074c]
mov dword [ebp - 0xdc], edx
cmp dword [0x8f0780], 0
mov dword [ebp - 0xd8], eax
mov eax, 0x603686
jne 0x57eebd
mov edx, dword fs:[0x18]
mov dword [ebp - 0xe0], edx
mov edx, dword [ebp - 0xd0]
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0xdc]
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0xd4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], esi
mov ecx, dword [ebp - 0xd8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov eax, dword [edi]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 0x20]
mov dword [esp], str._04x:_s:_s__d_tests_executed___d_marked_as_todo___d_as_flaky___d__s____d_skipped._n
mov dword [esp + 4], eax
call ebx
call fcn.0057d910
jmp 0x57ebd6
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xd0], eax
jmp 0x57eae8
mov dword [esp], 1
mov eax, dword [ebp - 0xd0]
call eax
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__fileno]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov edx, eax
lea eax, [ebp - 0xcc]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [ebp - 0xd0], edx
call dword [sym.imp.kernel32.dll_GetConsoleMode]
test eax, eax
push ecx
push ecx
mov edx, dword [ebp - 0xd0]
je 0x57e9b7
mov eax, dword [ebp - 0xcc]
mov dword [esp], edx
or eax, 5
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_SetConsoleMode]
push edx
push edx
or eax, dword [ebp - 0xd4]
jne 0x57e9b7
xor eax, eax
mov dword [0x8f0764], eax
jmp 0x57e9b7
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xe0], ecx
call fcn.0057d0c0
mov ecx, dword [ebp - 0xe0]
jmp 0x57edc9
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], str.Usage:__s_test_name_n_n
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_printf]
call fcn.0057d010
call fcn.0057d060
nop
nop
nop
nop
nop
nop
nop