Function at 0x401e10
Capabilities:
Access peb ldr_data
Create process on windows
Get process heap flags
Query environment variable
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
xor eax, eax
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0xbc]
push ebx
mov edi, edx
push ecx
sub esp, 0x138
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov ecx, 0xd
rep stosd dword es:[edi], eax
mov dword [ebp - 0xdc], 0
cmp ebx, 1
mov dword [ebp - 0xf0], ebx
mov ebx, 1
mov dword [ebp - 0xc4], 0x3c
mov dword [ebp - 0xb8], str.open
mov dword [ebp - 0xa8], 1
mov dword [ebp - 0xc0], 0x500
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xf8], 0x10
jle 0x401f22
mov eax, dword fs:[0x18]
mov ecx, esi
mov dword [ebp - 0xfc], eax
jmp 0x401ec2
add eax, 4
mov dword [ebp - 0xac], eax
inc ebx
cmp dword [ebp - 0xf0], ebx
jle 0x401f20
lea esi, [ebx*4]
cmp dword [ebp - 0xec], 0
lea edi, [ecx + esi]
mov eax, dword [edi]
movzx edx, word [eax]
je 0x402080
cmp dx, 0x2f
jne 0x4027a3
movzx edx, word [eax + 2]
and edx, 0xffffffdf
cmp dx, 0x44
jne 0x402028
cmp word [eax + 4], 0
jne 0x401eb0
inc ebx
cmp dword [ebp - 0xf0], ebx
je 0x402a83
mov eax, dword [ecx + esi + 4]
inc ebx
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xf0], ebx
jg 0x401ec2
mov esi, ecx
cmp dword [ebp - 0xf0], ebx
je 0x40286d
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov eax, dword [esi + ebx*4]
inc ebx
mov dword [ebp - 0x100], eax
lea ebx, [esi + ebx*4]
mov eax, dword [ebx]
test eax, eax
je 0x402ada
mov edi, ebx
mov esi, 1
mov dword [esp], eax
add edi, 4
call dword [sym.imp.ucrtbase.dll_wcslen]
lea ecx, [esi + eax*2 + 3]
mov eax, dword [edi]
mov esi, ecx
test eax, eax
jne 0x401f60
add ecx, ecx
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0xfc], eax
mov esi, eax
test eax, eax
je 0x402291
mov edx, dword [ebx]
test edx, edx
je 0x402ae4
mov edi, dword [sym.imp.ucrtbase.dll_wcschr]
lea esi, [esi]
nop
cmp word [edx], 0
jne 0x402740
mov dword [esp + 4], 0x22
mov eax, dword [ebx]
mov dword [esp], eax
call edi
mov edx, 0x22
lea eax, [esi + 2]
mov word [esi], dx
mov edx, dword [ebx]
movzx ecx, word [edx]
test cx, cx
je 0x4027aa
mov dword [ebp - 0xf4], 1
mov dword [ebp - 0xf0], ebx
xor esi, esi
jmp 0x402016
cmp cx, 0x22
je 0x402710
mov ecx, eax
xor esi, esi
movzx ebx, word [edx]
add edx, 2
add eax, 2
mov word [ecx], bx
movzx ecx, word [edx]
test cx, cx
je 0x402230
cmp cx, 0x5c
jne 0x401ff0
inc esi
mov ecx, eax
jmp 0x401ffe
mov dword [ebp - 0xf4], ecx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0x405142
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_CompareStringW]
mov ecx, dword [ebp - 0xf4]
sub esp, 0x18
cmp eax, 2
jne 0x402140
and dword [ebp - 0xf8], 0xffffffef
jmp 0x401eb9
cmp dx, 0x22
jne 0x401ede
mov edx, dword [ecx + 4]
cmp word [edx], 0
je 0x402a95
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4020a0
sub eax, edx
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov esi, eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0xf4], ecx
sar esi, 1
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0xec], eax
sub esp, 0xc
test eax, eax
je 0x402aef
dec esi
xor edx, edx
mov edi, dword [edi]
mov ecx, dword [ebp - 0xf4]
test esi, esi
jle 0x402126
mov dword [ebp - 0xf4], ecx
jmp 0x402118
cmp ax, 0x22
je 0x402111
mov ecx, dword [ebp - 0xec]
mov word [ecx + edx*2], ax
inc edx
add edi, 2
cmp edx, esi
jge 0x402120
movzx eax, word [edi]
test ax, ax
jne 0x402100
mov ecx, dword [ebp - 0xf4]
mov eax, dword [ebp - 0xec]
xor esi, esi
mov word [eax + edx*2], si
jmp 0x401eb9
mov eax, dword [edi]
cmp word [eax], 0x2f
jne 0x4021a0
movzx edx, word [eax + 2]
and edx, 0xffffffdf
cmp dx, 0x49
jne 0x4021a0
test byte [section..data], 8
je 0x401eb9
mov dword [ebp - 0xf4], ecx
mov dword [esp + 0xc], str._i_is_ignored_n
mov dword [esp + 8], 0x405370
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0xf4]
jmp 0x401eb9
mov dword [ebp - 0xf4], ecx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], str._min
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_CompareStringW]
mov ecx, dword [ebp - 0xf4]
sub esp, 0x18
cmp eax, 2
jne 0x4021f8
mov dword [ebp - 0xa8], 2
jmp 0x401eb9
mov eax, dword [edi]
mov edx, str._max
mov dword [ebp - 0xf4], ecx
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
je 0x4027eb
mov dword [ebp - 0xa8], 3
jmp 0x401eb9
mov edx, dword [ebp - 0xf4]
mov ebx, dword [ebp - 0xf0]
test edx, edx
je 0x40226b
test esi, esi
jle 0x4027aa
lea edx, [eax + esi*2]
lea esi, [esi]
nop
add eax, 2
mov esi, 0x5c
mov word [eax - 2], si
cmp eax, edx
jne 0x402250
mov ecx, 0x22
lea eax, [edx + 2]
mov word [edx], cx
mov edx, 0x20
add ebx, 4
lea esi, [eax + 2]
mov word [eax], dx
mov edx, dword [ebx]
test edx, edx
jne 0x401fa8
cmp dword [ebp - 0xfc], esi
cmovae eax, esi
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0xfc]
mov edi, dword [ebp - 0x104]
mov dword [ebp - 0xb0], eax
or edi, dword [ebp - 0x108]
je 0x4027b1
mov dword [esp], str.KERNEL32
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push esi
mov dword [esp + 4], str.wine_get_dos_file_name
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ebx, eax
push edx
push edx
test eax, eax
je 0x402a79
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x100]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [ebp - 0xfc], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfdf2
call ecx
sub esp, 0x20
mov dword [ebp - 0xf0], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0xf4], edx
mov edx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x104], edx
mov dword [esp], eax
call edx
mov ecx, dword [ebp - 0xf0]
sub esp, 0xc
mov esi, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x100]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0xfc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfdf2
call ecx
sub esp, 0x20
mov dword [esp], esi
call ebx
mov edx, dword [ebp - 0xf4]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov ebx, eax
mov dword [ebp - 0xf0], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test ebx, ebx
je 0x402a79
cmp dword [ebp - 0xac], 0
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xf4], 0
je 0x402b09
and dword [ebp - 0xc0], 0xfffffbff
lea eax, [ebp - 0xd8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xb4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetBinaryTypeW]
push ebx
push ebx
test eax, eax
je 0x402890
mov eax, dword [ebp - 0xb4]
cmp word [eax], 0
mov edx, eax
je 0x402451
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x402448
mov ebx, dword [ebp - 0xb0]
sub edx, eax
sar edx, 1
cmp word [ebx], 0
mov eax, ebx
je 0x402471
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x402468
sub eax, ebx
mov dword [esp + 4], 0
sar eax, 1
lea eax, [edx + eax + 4]
add eax, eax
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb0]
sub esp, 0xc
mov esi, eax
cmp word [ebx], 0
mov edx, ebx
je 0x4024c9
lea esi, [esi]
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4024c0
sub edx, ebx
mov eax, ecx
sar edx, 1
cmp word [ecx], 0
je 0x4024e1
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4024d8
sub eax, ecx
mov dword [esp + 0x10], ecx
sar eax, 1
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 0x88]
lea eax, [edx + eax + 4]
mov dword [esp + 8], str.__s___s
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._swprintf.constprop.0
lea edx, [ebp - 0x84]
xor eax, eax
mov ecx, 0x10
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xa8]
mov dword [esp + 0x20], ebx
mov dword [ebp - 0x88], 0x44
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0xd4]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0xac]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0xf8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xb4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x40282d
mov eax, dword [ebp - 0xd4]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xf0]
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0xdc]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0xf4]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0xec]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
test byte [ebp - 0xc0], 0x40
je 0x402a6c
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_SetConsoleCtrlHandler]
push eax
push eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateJobObjectA]
mov ecx, 0x1c
push edx
mov ebx, eax
xor eax, eax
push edx
lea edx, [ebp - 0x88]
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x78], 0x3000
mov dword [esp + 8], edx
mov dword [esp], ebx
mov dword [esp + 0xc], 0x70
mov dword [esp + 4], 9
call dword [sym.imp.kernel32.dll_SetInformationJobObject]
mov eax, dword [ebp - 0x8c]
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_AssignProcessToJobObject]
mov eax, dword [ebp - 0x8c]
push ecx
push ecx
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0xd4]
push ebx
push ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0xd4]
push esi
push esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
test esi, esi
js 0x401ffa
mov ebx, dword [ebp - 0xf0]
xor ecx, ecx
inc ecx
add eax, 2
mov word [eax - 2], 0x5c
cmp esi, ecx
jge 0x402720
mov dword [ebp - 0xf0], ebx
mov ecx, eax
xor esi, esi
jmp 0x401ffe
mov dword [esp + 4], 0x20
mov dword [esp], edx
call edi
test eax, eax
jne 0x401fb2
mov dword [esp + 4], 9
mov eax, dword [ebx]
mov dword [esp], eax
call edi
mov dword [esp + 4], 0x22
test eax, eax
mov eax, dword [ebx]
mov dword [esp], eax
jne 0x401fbf
call edi
test eax, eax
jne 0x402cbe
mov eax, dword [ebx]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [esi + eax*2]
jmp 0x40226b
mov esi, ecx
jmp 0x401f2e
mov edx, eax
jmp 0x402260
mov eax, dword [ebp - 0x100]
lea edx, [ebp - 0xdc]
call sym._search_path
test eax, eax
jne 0x402813
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
jmp 0x402411
mov eax, dword [edi]
mov edx, str._low
mov dword [ebp - 0xf4], ecx
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
je 0x402841
or dword [ebp - 0xf8], 0x40
jmp 0x401eb9
mov eax, dword [ebp - 0xdc]
test eax, eax
jne 0x4027cc
mov edx, dword [ebp - 0x100]
mov eax, 0xe
call sym._fatal_string_error.constprop.0
mov eax, dword fs:[0x18]
mov edx, dword [ebp - 0xb4]
mov eax, dword [eax + 0x34]
call sym._fatal_string_error.constprop.0
mov eax, dword [edi]
mov edx, 0x405176
mov dword [ebp - 0xf4], ecx
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
je 0x402be1
or dword [ebp - 0xf8], 0x20
jmp 0x401eb9
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], str.cmd.exe
jmp 0x401f4c
lea eax, [ebp - 0xc4]
mov dword [esp], eax
mov eax, dword [sym.imp.shell32.dll_ShellExecuteExW]
mov dword [ebp - 0xfc], eax
call eax
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
push ecx
test eax, eax
jne 0x4025b2
mov eax, dword [ebp - 0xb4]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov esi, dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10c], eax
mov dword [esp], str.PATHEXT
call esi
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x402a58
lea edx, [ebx + ebx]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x104], eax
call eax
mov dword [ebp - 0x110], eax
sub esp, 0xc
test eax, eax
je 0x402cae
mov eax, dword [ebp - 0x110]
mov dword [esp + 8], ebx
mov dword [esp], str.PATHEXT
mov dword [esp + 4], eax
call esi
mov esi, dword [ebp - 0x10c]
sub esp, 0xc
jmp 0x40294e
add esi, 2
cmp word [esi], 0
jne 0x40294b
sub esi, dword [ebp - 0x10c]
mov dword [esp + 4], 0
mov eax, esi
sar eax, 1
mov edi, eax
mov dword [ebp - 0x108], eax
add ebx, edi
add ebx, ebx
mov dword [esp + 8], ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x104]
call eax
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x402cae
mov edi, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [ebp - 0xb4], eax
add eax, esi
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x100], edi
mov edi, dword [ebp - 0x10c]
mov dword [esp], ecx
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xf8], ecx
mov dword [esp + 4], 0x3b
call eax
mov ecx, dword [ebp - 0xf8]
test eax, eax
mov esi, eax
je 0x402a58
xor eax, eax
cmp ecx, esi
je 0x402bb0
nop
movzx edx, word [edi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x4029f0
mov eax, dword [ebp - 0x104]
mov edx, esi
mov dword [esp + 4], ecx
sub edx, ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [ebp - 0xf8], edx
call sym._memcpy
mov edx, dword [ebp - 0xf8]
mov eax, dword [ebp - 0x108]
sar edx, 1
add eax, edx
mov word [ebx + eax*2], 0
lea eax, [ebp - 0xc4]
mov dword [esp], eax
mov eax, dword [ebp - 0xfc]
call eax
push edx
test eax, eax
jne 0x402c0c
lea ecx, [esi + 2]
jmp 0x4029c0
mov eax, dword fs:[0x18]
mov edx, dword [ebp - 0x10c]
mov eax, dword [eax + 0x34]
call sym._fatal_string_error.constprop.0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, 0x68
call sym._fatal_string
test byte [section..data], 2
jne 0x402bb8
call sym._usage
mov eax, dword [ebp - 0xfc]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov dword [ebp - 0xf4], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0xec], eax
sub esp, 0xc
test eax, eax
je 0x402aef
mov ecx, dword [ebp - 0xf4]
xor edx, edx
jmp 0x402126
mov ecx, 1
jmp 0x401f78
mov eax, dword [ebp - 0xfc]
jmp 0x40228c
test byte [section..data], 2
jne 0x402b87
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov esi, dword [ebp - 0xf0]
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcsrchr]
test eax, eax
je 0x402b2b
sub eax, esi
sar eax, 1
lea edi, [eax + 1]
lea ebx, [edi + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
sub ebx, 2
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x104]
call eax
mov esi, dword [ebp - 0xf0]
sub esp, 0xc
mov dword [ebp - 0xf4], eax
mov dword [esp + 4], esi
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp], eax
call sym._memcpy
mov word [esi + edi*2 - 2], 0
mov dword [ebp - 0xac], esi
jmp 0x402407
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], 0x405370
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402afc
add ecx, 2
jmp 0x4029c0
mov dword [esp + 0xc], str.you_must_specify_a_directory_path_for_the__d_option_n
mov dword [esp + 8], 0x405370
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402a90
mov eax, dword [edi]
mov edx, 0x405186
mov dword [ebp - 0xf4], ecx
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
je 0x402c58
or dword [ebp - 0xf8], 0x80
jmp 0x401eb9
mov dword [esp + 8], ebx
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x110]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
jmp 0x4025b2
mov eax, dword [edi]
mov edx, 0x405192
mov dword [ebp - 0xf4], ecx
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
je 0x402c83
or dword [ebp - 0xf8], 0x100
jmp 0x401eb9
mov eax, dword [edi]
mov edx, 0x4051a6
mov dword [ebp - 0xf4], ecx
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
je 0x402cdd
or dword [ebp - 0xf8], 0x8000
jmp 0x401eb9
mov edx, dword [ebp - 0xb4]
mov eax, 0xe
call sym._fatal_string_error.constprop.0
mov dword [ebp - 0xf4], 0
mov edx, dword [ebx]
mov eax, esi
movzx ecx, word [edx]
test cx, cx
jne 0x401fe4
jmp 0x40226b
mov eax, dword [edi]
mov edx, 0x4051c0
mov dword [ebp - 0xf4], ecx
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
je 0x402d08
or dword [ebp - 0xf8], 0x4000
jmp 0x401eb9
mov eax, dword [edi]
mov edx, str._separate
mov dword [ebp - 0xf4], ecx
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
je 0x402d3e
test byte [section..data], 8
je 0x401eb9
mov dword [esp + 0xc], str._separate_is_ignored_n
jmp 0x402170
mov eax, dword [edi]
mov edx, str._shared
mov dword [ebp - 0xf4], ecx
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
je 0x402d74
test byte [section..data], 8
je 0x401eb9
mov dword [esp + 0xc], str._shared_is_ignored_n
jmp 0x402170
mov eax, dword [edi]
mov edx, str._node
mov dword [ebp - 0xf4], ecx
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
je 0x402dbb
movzx eax, byte [section..data]
inc ebx
cmp ebx, dword [ebp - 0xf0]
je 0x402e02
test al, 8
je 0x401eb9
mov dword [ebp - 0xf4], ecx
mov dword [esp + 0xc], str._node_is_ignored_n
jmp 0x402170
mov eax, dword [edi]
mov edx, str._affinity
mov dword [ebp - 0xf4], ecx
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
je 0x402e33
movzx eax, byte [section..data]
inc ebx
cmp ebx, dword [ebp - 0xf0]
je 0x402e02
test al, 8
je 0x401eb9
mov dword [ebp - 0xf4], ecx
mov dword [esp + 0xc], str._affinity_is_ignored_n
jmp 0x402170
test al, 2
je 0x402a90
mov dword [esp + 0xc], str.you_must_specify_a_numa_node_for_the__node_option_n
mov dword [esp + 8], 0x405370
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402a90
mov eax, dword [edi]
mov edx, 0x4052a4
mov dword [ebp - 0xf4], ecx
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
je 0x402e5b
or dword [ebp - 0xc0], 0x40
jmp 0x401eb9
mov eax, dword [edi]
mov edx, str._wait
mov dword [ebp - 0xf4], ecx
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
jne 0x402e4f
mov eax, dword [edi]
mov edx, 0x4052b6
mov dword [ebp - 0xf4], edi
mov esi, ecx
call sym._is_option
mov dword [ebp - 0x108], eax
test eax, eax
jne 0x402a90
mov ecx, dword [ebp - 0xf4]
mov edx, 0x4052bc
mov eax, dword [ecx]
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
je 0x402ed1
mov dword [ebp - 0x104], 1
inc ebx
cmp dword [ebp - 0xf0], ebx
je 0x402a90
jmp 0x401f42
mov eax, dword [ecx]
mov edx, 0x4052c8
mov dword [ebp - 0xf4], ecx
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
mov dword [ebp - 0x104], eax
je 0x402f0d
mov dword [ebp - 0xc0], 0x8440
inc ebx
mov dword [ebp - 0xf8], 0
jmp 0x401f22
mov eax, dword [ecx]
mov edx, str._progIDOpen
mov dword [ebp - 0xf4], ecx
call sym._is_option
mov ecx, dword [ebp - 0xf4]
test eax, eax
je 0x402f5a
lea eax, [ebx + 1]
cmp dword [ebp - 0xf0], eax
je 0x402a90
mov eax, dword [esi + eax*4]
or dword [ebp - 0xc0], 1
add ebx, 2
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x9c], eax
jmp 0x402ec0
test byte [section..data], 2
je 0x402a90
mov eax, dword [ecx]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Unknown_option__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x405370
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402a90