Function at 0x40c6d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x8c]
sub esp, 0x9c
call fcn.0040c600
mov eax, dword [0x40d064]
mov dword [esp], 1
mov dword [ebp - 0x94], 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 esi, dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov dword [0x43e090], eax
mov eax, dword [ebp + 8]
sub esp, 0xc
mov dword [0x43e08c], eax
mov eax, dword [ebp + 0xc]
mov dword [0x43e088], eax
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], ebx
mov dword [esp], str.WINETEST_PLATFORM
call esi
sub esp, 0xc
test eax, eax
je 0x40c92d
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 edi, dword [sym.imp.msvcrt.dll_strcmp]
mov dword [esp], eax
call edi
test eax, eax
sete al
movzx eax, al
mov dword [0x42e050], eax
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], ebx
mov dword [esp], str.WINETEST_COLOR
call esi
sub esp, 0xc
test eax, eax
je 0x40c7f7
mov dword [esp + 4], str.auto
mov dword [esp], ebx
call edi
mov dword [ebp - 0x98], eax
test eax, eax
je 0x40c907
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_atoi]
mov dword [0x42e044], eax
test eax, eax
jne 0x40ca18
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], ebx
mov dword [esp], str.WINETEST_DEBUG
call esi
sub esp, 0xc
test eax, eax
jne 0x40c9df
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], ebx
mov dword [esp], str.WINETEST_INTERACTIVE
call esi
sub esp, 0xc
test eax, eax
jne 0x40c9cc
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], ebx
mov dword [esp], str.WINETEST_REPORT_FLAKY
call esi
sub esp, 0xc
test eax, eax
jne 0x40c9b9
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], ebx
mov dword [esp], str.WINETEST_REPORT_SUCCESS
call esi
sub esp, 0xc
test eax, eax
jne 0x40c9a6
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], ebx
mov dword [esp], str.WINETEST_TIME
call esi
sub esp, 0xc
test eax, eax
jne 0x40c993
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [0x42e05c], eax
mov dword [0x42e058], eax
mov dword [esp + 4], str.windows
mov eax, dword [str.windows]
mov dword [esp], eax
call edi
test eax, eax
je 0x40c980
mov edx, dword [0x42e054]
test edx, edx
je 0x40c96d
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
test esi, esi
je 0x40ca94
mov dword [esp + 4], str.__list
mov dword [esp], esi
call edi
mov ebx, eax
test eax, eax
je 0x40c9f2
mov eax, esi
call fcn.0040b7d0
mov ebx, eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 1
mov eax, dword [ebp - 0x94]
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 0x40c7ea
mov dword [esp], 0x410079
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push edx
test eax, eax
je 0x40c785
mov dword [esp + 4], str.wine_server_call
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push edi
push edi
test eax, eax
je 0x40c785
mov dword [str.windows], 0x410094
jmp 0x40c785
mov dword [esp], 3
call dword [sym.imp.kernel32.dll_SetErrorMode]
push eax
jmp 0x40c8cf
mov dword [esp], 0x40b130
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push ecx
jmp 0x40c8c1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_atoi]
mov dword [0x42e060], eax
jmp 0x40c897
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_atoi]
mov dword [0x42e048], eax
jmp 0x40c877
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_atoi]
mov dword [0x42e04c], eax
jmp 0x40c857
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_atoi]
mov dword [0x42e054], eax
jmp 0x40c837
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_atoi]
mov dword [0x40d038], eax
jmp 0x40c817
mov dword [esp], str.Valid_test_names:
call sub.msvcrt.dll_puts
mov dword [esp + 4], str.mfmediaengine
mov dword [esp], str._____s_n
call dword [sym.imp.msvcrt.dll_printf]
jmp 0x40c8fd
mov dword [esp], 1
mov eax, dword [ebp - 0x94]
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 - 0x90]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x94], edx
call dword [sym.imp.kernel32.dll_GetConsoleMode]
test eax, eax
push ecx
push ecx
mov edx, dword [ebp - 0x94]
je 0x40c7f7
mov eax, dword [ebp - 0x90]
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 - 0x98]
jne 0x40c7f7
xor eax, eax
mov dword [0x42e044], eax
jmp 0x40c7f7
mov eax, str.mfmediaengine
call fcn.0040b7d0
mov ebx, eax
jmp 0x40c8fd