Function at 0x401c00
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x1238
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
call fcn.004035d8
sub esp, eax
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
mov dword [info.whql_check], 0
mov dword [info.output_type], 0
mov dword [0x4084a0], eax
movzx eax, word [ebx]
test ax, ax
je 0x402018
mov edi, dword [sym.imp.ucrtbase.dll__wcsnicmp]
jmp 0x401c57
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 0x20
je 0x401c50
and eax, 0xfffffffd
cmp ax, 0x2d
jne 0x401ff0
movzx eax, word [ebx + 2]
lea edx, [ebx + 2]
sub eax, 0x44
cmp ax, 0x34
ja case.0x401c81.1
movzx eax, ax
jmp dword [eax*4 + 0x405460]
lea eax, [ebx + 4]
lea ecx, [info.outfile]
mov edx, 2
mov dword [info.output_type], 2
call sym._process_file_name.constprop.0
test eax, eax
je case.0x401c81.1
test byte [0x404010], 8
je 0x401d7e
mov edx, dword [info.whql_check]
mov eax, str.TRUE
test edx, edx
jne 0x401cd6
mov eax, str.FALSE
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.WHQL_check:__s_n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x404010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
test byte [0x404010], 8
je 0x401d7e
mov eax, dword [info.output_type]
mov dword [esp + 0xc], str.Output_type:__d_n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x404010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [info.output_type]
test eax, eax
je 0x401d7e
test byte [0x404010], 8
je 0x401d7e
mov edx, str._unknown_
cmp eax, 2
jbe 0x401eb0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Output_filename:__s_n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x404010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov dword [esp], 0
call sym._CoInitialize_4
mov eax, dword [info.whql_check]
sub esp, 4
mov dword [esp], eax
call dbg.collect_dxdiag_information
mov ebx, eax
test eax, eax
je 0x401ef0
mov eax, dword [info.output_type]
test eax, eax
jne 0x401e90
test byte [0x404010], 1
jne 0x401ec0
mov dword [esp], ebx
call sym._free_dxdiag_information
call sym._CoUninitialize_0
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 8], 5
mov dword [esp + 4], str.whql:
mov dword [esp], edx
call edi
test eax, eax
jne case.0x401c81.1
lea esi, [ebx + 0xc]
mov dword [esp + 8], 3
mov dword [esp + 4], 0x4053ba
mov dword [esp], esi
call edi
test eax, eax
jne 0x401f18
mov dword [info.whql_check], 0
lea eax, [ebx + 0x10]
lea ebx, [eax + 2]
movzx eax, word [eax + 2]
test ax, ax
jne 0x401c57
jmp 0x401cb5
lea eax, [ebx + 4]
lea ecx, [info.outfile]
mov edx, 1
mov dword [info.output_type], 1
call sym._process_file_name.constprop.0
jmp 0x401cad
mov dword [esp + 8], 8
mov dword [esp + 4], 0x4053c8
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne case.0x401c81.1
lea eax, [ebx + 0x12]
jmp 0x401e2a
mov dword [esp + 8], eax
lea eax, [info.outfile]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dbg.output_dxdiag_information
jmp 0x401dc0
mov edx, dword [eax*4 + 0x405558]
jmp 0x401d56
mov dword [esp + 0xc], str.Information_dialog_is_not_implemented_n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x404010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x401dc0
test byte [0x404010], 2
jne 0x401f48
call sym._CoUninitialize_0
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 8], 2
mov dword [esp + 4], 0x4053c2
mov dword [esp], esi
call edi
test eax, eax
jne case.0x401c81.1
mov dword [info.whql_check], 1
lea eax, [ebx + 0xe]
jmp 0x401e2a
mov dword [esp + 0xc], str.DxDiag_information_collection_failed_n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x404010
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x401ef9
mov eax, dword [0x4084a0]
lea esi, [ebp - 0x1018]
mov dword [esp + 0xc], 0x400
lea ebx, [ebp - 0x818]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x65
mov dword [esp], eax
call sym._LoadStringW_16
mov eax, dword [0x4084a0]
sub esp, 0x10
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x66
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call sym._MessageBoxW_16
sub esp, 0x10
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_ExitProcess]
lea ecx, [info.outfile]
mov edx, 1
mov eax, ebx
mov dword [info.output_type], 1
call sym._process_file_name.constprop.0
jmp 0x401cad
test byte [0x404010], 8
je 0x401d7e
jmp 0x401cd1