Function at 0x402c80
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 0x402d92
mov eax, dword fs:[0x18]
mov ecx, esi
mov dword [ebp - 0xfc], eax
jmp 0x402d32
add eax, 4
mov dword [ebp - 0xac], eax
inc ebx
cmp dword [ebp - 0xf0], ebx
jle 0x402d90
lea esi, [ebx*4]
cmp dword [ebp - 0xec], 0
lea edi, [ecx + esi]
mov eax, dword [edi]
movzx edx, word [eax]
je 0x402ef0
cmp dx, 0x2f
jne 0x403613
movzx edx, word [eax + 2]
and edx, 0xffffffdf
cmp dx, 0x44
jne 0x402e98
cmp word [eax + 4], 0
jne 0x402d20
inc ebx
cmp dword [ebp - 0xf0], ebx
je 0x4038f3
mov eax, dword [ecx + esi + 4]
inc ebx
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xf0], ebx
jg 0x402d32
mov esi, ecx
cmp dword [ebp - 0xf0], ebx
je 0x4036dd
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 0x40394a
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 0x402dd0
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 0x403101
mov edx, dword [ebx]
test edx, edx
je 0x403954
mov edi, dword [sym.imp.ucrtbase.dll_wcschr]
lea esi, [esi]
nop
cmp word [edx], 0
jne 0x4035b0
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 0x40361a
mov dword [ebp - 0xf4], 1
mov dword [ebp - 0xf0], ebx
xor esi, esi
jmp 0x402e86
cmp cx, 0x22
je 0x403580
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 0x4030a0
cmp cx, 0x5c
jne 0x402e60
inc esi
mov ecx, eax
jmp 0x402e6e
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 0x402fb0
and dword [ebp - 0xf8], 0xffffffef
jmp 0x402d29
cmp dx, 0x22
jne 0x402d4e
mov edx, dword [ecx + 4]
cmp word [edx], 0
je 0x403905
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402f10
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 0x40395f
dec esi
xor edx, edx
mov edi, dword [edi]
mov ecx, dword [ebp - 0xf4]
test esi, esi
jle 0x402f96
mov dword [ebp - 0xf4], ecx
jmp 0x402f88
cmp ax, 0x22
je 0x402f81
mov ecx, dword [ebp - 0xec]
mov word [ecx + edx*2], ax
inc edx
add edi, 2
cmp edx, esi
jge 0x402f90
movzx eax, word [edi]
test ax, ax
jne 0x402f70
mov ecx, dword [ebp - 0xf4]
mov eax, dword [ebp - 0xec]
xor esi, esi
mov word [eax + edx*2], si
jmp 0x402d29
mov eax, dword [edi]
cmp word [eax], 0x2f
jne 0x403010
movzx edx, word [eax + 2]
and edx, 0xffffffdf
cmp dx, 0x49
jne 0x403010
test byte [0x404020], 8
je 0x402d29
mov dword [ebp - 0xf4], ecx
mov dword [esp + 0xc], str._i_is_ignored_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0xf4]
jmp 0x402d29
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 0x403068
mov dword [ebp - 0xa8], 2
jmp 0x402d29
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 0x40365b
mov dword [ebp - 0xa8], 3
jmp 0x402d29
mov edx, dword [ebp - 0xf4]
mov ebx, dword [ebp - 0xf0]
test edx, edx
je 0x4030db
test esi, esi
jle 0x40361a
lea edx, [eax + esi*2]
lea esi, [esi]
nop
add eax, 2
mov esi, 0x5c
mov word [eax - 2], si
cmp eax, edx
jne 0x4030c0
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 0x402e18
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 0x403621
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 0x4038e9
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 0x4038e9
cmp dword [ebp - 0xac], 0
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xf4], 0
je 0x403979
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 0x403700
mov eax, dword [ebp - 0xb4]
cmp word [eax], 0
mov edx, eax
je 0x4032c1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4032b8
mov ebx, dword [ebp - 0xb0]
sub edx, eax
sar edx, 1
cmp word [ebx], 0
mov eax, ebx
je 0x4032e1
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4032d8
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 0x403339
lea esi, [esi]
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x403330
sub edx, ebx
mov eax, ecx
sar edx, 1
cmp word [ecx], 0
je 0x403351
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x403348
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 0x40369d
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 0x4038dc
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 0x402e6a
mov ebx, dword [ebp - 0xf0]
xor ecx, ecx
inc ecx
add eax, 2
mov word [eax - 2], 0x5c
cmp esi, ecx
jge 0x403590
mov dword [ebp - 0xf0], ebx
mov ecx, eax
xor esi, esi
jmp 0x402e6e
mov dword [esp + 4], 0x20
mov dword [esp], edx
call edi
test eax, eax
jne 0x402e22
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 0x402e2f
call edi
test eax, eax
jne 0x403b2e
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 0x4030db
mov esi, ecx
jmp 0x402d9e
mov edx, eax
jmp 0x4030d0
mov eax, dword [ebp - 0x100]
lea edx, [ebp - 0xdc]
call sym._search_path
test eax, eax
jne 0x403683
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
jmp 0x403281
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 0x4036b1
or dword [ebp - 0xf8], 0x40
jmp 0x402d29
mov eax, dword [ebp - 0xdc]
test eax, eax
jne 0x40363c
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 0x403a51
or dword [ebp - 0xf8], 0x20
jmp 0x402d29
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], str.cmd.exe
jmp 0x402dbc
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 0x403422
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 0x4038c8
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 0x403b1e
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 0x4037be
add esi, 2
cmp word [esi], 0
jne 0x4037bb
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 0x403b1e
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 0x4038c8
xor eax, eax
cmp ecx, esi
je 0x403a20
nop
movzx edx, word [edi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x403860
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 0x403a7c
lea ecx, [esi + 2]
jmp 0x403830
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 [0x404020], 2
jne 0x403a28
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 0x40395f
mov ecx, dword [ebp - 0xf4]
xor edx, edx
jmp 0x402f96
mov ecx, 1
jmp 0x402de8
mov eax, dword [ebp - 0xfc]
jmp 0x4030fc
test byte [0x404020], 2
jne 0x4039f7
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 0x40399b
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 0x403277
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40396c
add ecx, 2
jmp 0x403830
mov dword [esp + 0xc], str.you_must_specify_a_directory_path_for_the__d_option_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x403900
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 0x403ac8
or dword [ebp - 0xf8], 0x80
jmp 0x402d29
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 0x403422
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 0x403af3
or dword [ebp - 0xf8], 0x100
jmp 0x402d29
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 0x403b4d
or dword [ebp - 0xf8], 0x8000
jmp 0x402d29
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 0x402e54
jmp 0x4030db
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 0x403b78
or dword [ebp - 0xf8], 0x4000
jmp 0x402d29
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 0x403bae
test byte [0x404020], 8
je 0x402d29
mov dword [esp + 0xc], str._separate_is_ignored_n
jmp 0x402fe0
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 0x403be4
test byte [0x404020], 8
je 0x402d29
mov dword [esp + 0xc], str._shared_is_ignored_n
jmp 0x402fe0
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 0x403c2b
movzx eax, byte [0x404020]
inc ebx
cmp ebx, dword [ebp - 0xf0]
je 0x403c72
test al, 8
je 0x402d29
mov dword [ebp - 0xf4], ecx
mov dword [esp + 0xc], str._node_is_ignored_n
jmp 0x402fe0
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 0x403ca3
movzx eax, byte [0x404020]
inc ebx
cmp ebx, dword [ebp - 0xf0]
je 0x403c72
test al, 8
je 0x402d29
mov dword [ebp - 0xf4], ecx
mov dword [esp + 0xc], str._affinity_is_ignored_n
jmp 0x402fe0
test al, 2
je 0x403900
mov dword [esp + 0xc], str.you_must_specify_a_numa_node_for_the__node_option_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x403900
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 0x403ccb
or dword [ebp - 0xc0], 0x40
jmp 0x402d29
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 0x403cbf
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 0x403900
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 0x403d41
mov dword [ebp - 0x104], 1
inc ebx
cmp dword [ebp - 0xf0], ebx
je 0x403900
jmp 0x402db2
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 0x403d7d
mov dword [ebp - 0xc0], 0x8440
inc ebx
mov dword [ebp - 0xf8], 0
jmp 0x402d92
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 0x403dca
lea eax, [ebx + 1]
cmp dword [ebp - 0xf0], eax
je 0x403900
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 0x403d30
test byte [0x404020], 2
je 0x403900
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], str.wmain
mov dword [esp + 4], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x403900