Function at 0x401cc0
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
push ebx
push ecx
lea edx, [ebp - 0xbc]
sub esp, 0x138
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov edi, edx
mov ecx, 0xd
mov dword [ebp - 0xdc], 0
rep stosd dword es:[edi], eax
cmp ebx, 1
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xc4], 0x3c
mov dword [ebp - 0xb8], str.open
mov dword [ebp - 0xa8], 1
mov ebx, 1
mov dword [ebp - 0xc0], 0x500
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xf4], 0x10
jle 0x401dc2
mov eax, dword fs:[0x18]
mov dword [ebp - 0xf8], eax
jmp 0x401d64
add eax, 4
mov ebx, edx
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xec], ebx
jle 0x401dc2
lea ecx, [ebx*4]
cmp dword [ebp - 0xf0], 0
lea edi, [esi + ecx]
mov eax, dword [edi]
movzx edx, word [eax]
je 0x401f60
cmp dx, 0x2f
jne 0x401dce
movzx edx, word [eax + 2]
and edx, 0xffffffdf
cmp dx, 0x44
jne 0x401ec3
cmp word [eax + 4], 0
lea edx, [ebx + 1]
jne 0x401d51
cmp dword [ebp - 0xec], edx
je 0x4029cb
add ebx, 2
cmp dword [ebp - 0xec], ebx
mov eax, dword [esi + ecx + 4]
mov dword [ebp - 0xac], eax
jg 0x401d64
cmp dword [ebp - 0xec], ebx
je 0x40271b
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov eax, dword [esi + ebx*4]
add ebx, 1
mov dword [ebp - 0x100], eax
lea esi, [esi + ebx*4]
mov eax, dword [esi]
test eax, eax
je 0x4029f1
mov edi, esi
mov ebx, 1
add edi, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
lea ebx, [ebx + eax*2 + 3]
mov eax, dword [edi]
test eax, eax
jne 0x401e02
lea edx, [ebx + ebx]
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
mov dword [ebp - 0xfc], eax
mov ebx, eax
je 0x402191
mov edx, dword [esi]
test edx, edx
je 0x4029fb
mov edi, dword [sym.imp.ucrtbase.dll_wcschr]
cmp word [edx], 0
jne 0x402630
mov dword [esp + 4], 0x22
mov eax, dword [esi]
mov dword [esp], eax
call edi
mov edx, 0x22
lea eax, [ebx + 2]
mov word [ebx], dx
mov edx, dword [esi]
movzx ecx, word [edx]
test cx, cx
je 0x4027b7
mov dword [ebp - 0xf8], 1
xor ebx, ebx
mov dword [ebp - 0xec], esi
jmp 0x401eb6
cmp cx, 0x22
je 0x402600
mov ecx, eax
xor ebx, ebx
movzx esi, word [edx]
add edx, 2
lea eax, [ecx + 2]
mov word [ecx], si
movzx ecx, word [edx]
test cx, cx
je 0x402135
cmp cx, 0x5c
jne 0x401e90
add ebx, 1
mov ecx, eax
jmp 0x401e9e
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]
sub esp, 0x18
cmp eax, 2
je 0x402070
mov eax, dword [edi]
cmp word [eax], 0x2f
jne 0x402020
movzx edx, word [eax + 2]
and edx, 0xffffffdf
cmp dx, 0x49
jne 0x402020
add ebx, 1
test byte [0x404000], 8
je 0x401d5c
mov dword [esp + 0xc], str._i_is_ignored_n
mov dword [esp + 8], 0x405370
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.2
jmp 0x401d5c
cmp dx, 0x22
jne 0x401d80
mov eax, dword [esi + 4]
cmp word [eax], 0
mov edx, eax
je 0x401f7e
add edx, 2
cmp word [edx], 0
jne 0x401f75
sub edx, eax
mov eax, dword [ebp - 0xf8]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [ebp - 0xfc], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0xf0], eax
je 0x40211b
mov edx, dword [ebp - 0xfc]
mov ecx, dword [edi]
sar edx, 1
lea eax, [edx - 1]
test eax, eax
jle 0x402aa4
movzx edx, word [ecx]
xor edi, edi
test dx, dx
je 0x402008
mov dword [ebp - 0xfc], ebx
jmp 0x401fe8
movzx edx, word [ecx]
test dx, dx
je 0x402002
cmp dx, 0x22
je 0x401ffb
mov ebx, dword [ebp - 0xf0]
mov word [ebx + edi*2], dx
add edi, 1
add ecx, 2
cmp edi, eax
jl 0x401fe0
mov ebx, dword [ebp - 0xfc]
mov eax, dword [ebp - 0xf0]
add ebx, 1
mov word [eax + edi*2], 0
jmp 0x401d5c
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]
sub esp, 0x18
cmp eax, 2
jne 0x402080
mov dword [ebp - 0xa8], 2
add ebx, 1
jmp 0x401d5c
and dword [ebp - 0xf4], 0xffffffef
add ebx, 1
jmp 0x401d5c
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], str._max
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x4020cd
mov dword [ebp - 0xa8], 3
add ebx, 1
jmp 0x401d5c
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], str._low
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x4026d1
or dword [ebp - 0xf4], 0x40
add ebx, 1
jmp 0x401d5c
test byte [0x404000], 2
jne 0x4027be
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, dword [ebp - 0xf8]
mov esi, dword [ebp - 0xec]
test edx, edx
je 0x40216b
test ebx, ebx
je 0x4027b7
lea edx, [eax + ebx*2]
add eax, 2
mov ebx, 0x5c
cmp eax, edx
mov word [eax - 2], bx
jne 0x402150
mov ecx, 0x22
lea eax, [edx + 2]
mov word [edx], cx
mov edx, 0x20
add esi, 4
lea ebx, [eax + 2]
mov word [eax], dx
mov edx, dword [esi]
test edx, edx
jne 0x401e44
cmp dword [ebp - 0xfc], ebx
cmovb ebx, eax
mov word [ebx], 0
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x104]
or eax, dword [ebp - 0x108]
mov dword [ebp - 0xfc], eax
je 0x402693
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]
test eax, eax
push edi
mov esi, eax
push edi
je 0x4027ad
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 [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0xf8], ecx
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 - 0xec], eax
mov ebx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x104], ebx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov edx, dword [ebp - 0xec]
mov ebx, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x100]
mov ecx, dword [ebp - 0xf8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], edx
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], ebx
call esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov esi, eax
mov dword [ebp - 0xec], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test esi, esi
je 0x4027ad
cmp dword [ebp - 0xac], 0
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xf8], 0
je 0x402b07
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]
test eax, eax
push ebx
push ebx
je 0x4027f4
mov edx, dword [ebp - 0xb4]
cmp word [edx], 0
mov eax, edx
je 0x402349
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402340
mov ebx, dword [ebp - 0xb0]
sub eax, edx
sar eax, 1
lea ecx, [eax + 4]
cmp word [ebx], 0
mov eax, ebx
je 0x402369
nop
add eax, 2
cmp word [eax], 0
jne 0x402360
sub eax, ebx
mov dword [esp + 4], 0
sar eax, 1
add eax, ecx
add eax, eax
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, dword [ebp - 0xb4]
sub esp, 0xc
mov esi, eax
mov ecx, dword [ebp - 0xb0]
cmp word [ebx], 0
mov edx, ebx
je 0x4023b9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4023b0
sub edx, ebx
mov eax, ecx
sar edx, 1
add edx, 4
cmp word [ecx], 0
je 0x4023d9
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4023d0
sub eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebx
sar eax, 1
mov dword [esp + 8], str.__s___s
mov dword [esp], esi
add edx, eax
lea ebx, [ebp - 0x88]
mov dword [esp + 4], edx
call sym._swprintf.constprop.6
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 [ebp - 0x88], 0x44
mov dword [ebp - 0x5c], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0xf0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0xd4]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0xac]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0xf4]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xb4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x4029dd
mov eax, dword [ebp - 0xd4]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xec]
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 + 4], 0
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 - 0xf8]
sub esp, 0xc
mov dword [esp + 4], 0
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 - 0xf0]
sub esp, 0xc
mov dword [esp + 4], 0
mov dword [esp + 8], eax
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 0x4027e7
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]
push edx
push edx
lea edx, [ebp - 0x88]
mov ebx, eax
mov ecx, 0x1c
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
mov dword [ebp - 0x78], 0x3000
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]
mov esi, dword [ebp - 0xec]
lea ebx, [eax + ebx*2 + 2]
mov ecx, eax
lea esi, [esi]
add ecx, 2
mov eax, 0x5c
cmp ecx, ebx
mov word [ecx - 2], ax
jne 0x402610
mov dword [ebp - 0xec], esi
xor ebx, ebx
jmp 0x401e9e
mov dword [esp + 4], 0x20
mov dword [esp], edx
call edi
test eax, eax
jne 0x401e4e
mov dword [esp + 4], 9
mov eax, dword [esi]
mov dword [esp], eax
call edi
mov dword [esp + 4], 0x22
test eax, eax
mov eax, dword [esi]
mov dword [esp], eax
jne 0x401e5b
call edi
test eax, eax
jne 0x402aab
mov eax, dword [esi]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [ebx + eax*2]
jmp 0x40216b
mov eax, dword [ebp - 0x100]
lea edx, [ebp - 0xdc]
call dbg.search_path
test eax, eax
jne 0x40273e
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xec], 0
jmp 0x40230b
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0x405176
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x40275c
or dword [ebp - 0xf4], 0x20
add ebx, 1
jmp 0x401d5c
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], str.cmd.exe
jmp 0x401dee
mov eax, dword [ebp - 0xdc]
test eax, eax
jne 0x4026b2
mov edx, dword [ebp - 0x100]
mov eax, 0xe
call sym._fatal_string_error.constprop.0
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0x405186
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x402a06
or dword [ebp - 0xf4], 0x80
add ebx, 1
jmp 0x401d5c
mov eax, 0x68
call dbg.fatal_string
mov edx, eax
jmp 0x402160
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], 0x405370
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x402128
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_ExitProcess]
lea eax, [ebp - 0xc4]
mov dword [esp], eax
mov eax, dword [sym.imp.shell32.dll_ShellExecuteExW]
mov dword [ebp - 0xf4], eax
call eax
test eax, eax
push ecx
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
jne 0x4024a8
mov eax, dword [ebp - 0xb4]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.PATHEXT
mov esi, dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0xfc], eax
call esi
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x402af3
lea edx, [ebx + ebx]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
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
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x114], eax
je 0x402be7
mov eax, dword [ebp - 0x114]
mov dword [esp + 8], ebx
mov dword [esp], str.PATHEXT
mov dword [esp + 4], eax
call esi
mov esi, dword [ebp - 0xfc]
sub esp, 0xc
jmp 0x4028b2
add esi, 2
cmp word [esi], 0
jne 0x4028af
sub esi, dword [ebp - 0xfc]
mov dword [esp + 4], 0
mov eax, esi
sar eax, 1
mov edi, eax
mov dword [ebp - 0x10c], 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
test eax, eax
mov dword [ebp - 0x118], eax
je 0x402be7
mov edi, dword [sym.imp.ucrtbase.dll_wcschr]
mov ebx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x108], edi
mov edi, dword [ebp - 0xfc]
add esi, ebx
mov dword [ebp - 0x110], esi
mov dword [ebp - 0xb4], ebx
mov esi, ecx
mov dword [esp + 4], 0x3b
mov dword [esp], esi
mov eax, dword [ebp - 0x108]
call eax
test eax, eax
mov edx, eax
je 0x402af3
xor eax, eax
cmp esi, edx
je 0x402b92
movzx ecx, word [edi + eax]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x402957
mov eax, dword [ebp - 0x110]
mov ecx, edx
mov dword [esp + 4], esi
sub ecx, esi
mov dword [ebp - 0x104], edx
mov dword [esp + 8], ecx
mov dword [ebp - 0x100], ecx
mov dword [esp], eax
call sym._memcpy
mov ecx, dword [ebp - 0x100]
mov eax, dword [ebp - 0x10c]
sar ecx, 1
add eax, ecx
mov word [ebx + eax*2], 0
lea eax, [ebp - 0xc4]
mov dword [esp], eax
mov eax, dword [ebp - 0xf4]
call eax
test eax, eax
push edx
mov edx, dword [ebp - 0x104]
jne 0x402c6f
lea esi, [edx + 2]
jmp 0x402930
test byte [0x404000], 2
jne 0x402aca
call dbg.usage
mov eax, dword fs:[0x18]
mov edx, dword [ebp - 0xb4]
mov eax, dword [eax + 0x34]
call sym._fatal_string_error.constprop.0
mov ebx, 1
jmp 0x401e18
mov ebx, dword [ebp - 0xfc]
jmp 0x40218c
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0x405192
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x402a53
or dword [ebp - 0xf4], 0x100
add ebx, 1
jmp 0x401d5c
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0x4051a6
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x402b9a
or dword [ebp - 0xf4], 0x8000
add ebx, 1
jmp 0x401d5c
xor edi, edi
jmp 0x402008
mov edx, dword [esi]
mov eax, ebx
movzx ecx, word [edx]
test cx, cx
je 0x40216b
mov dword [ebp - 0xf8], 0
jmp 0x401e80
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], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x4029d8
mov eax, dword fs:[0x18]
mov edx, dword [ebp - 0xfc]
mov eax, dword [eax + 0x34]
call sym._fatal_string_error.constprop.0
mov edi, dword [ebp - 0xec]
mov dword [esp + 4], 0x5c
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcsrchr]
test eax, eax
je 0x402b2f
sub eax, edi
sar eax, 1
add eax, 1
mov dword [ebp - 0xfc], eax
mov edi, dword [ebp - 0xfc]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov ebx, edi
add ebx, edi
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
sub ebx, 2
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x104]
call eax
mov esi, dword [ebp - 0xec]
sub esp, 0xc
mov dword [ebp - 0xf8], eax
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], esi
mov esi, eax
call sym._memcpy
mov word [esi + edi*2 - 2], 0
mov dword [ebp - 0xac], esi
jmp 0x402301
add esi, 2
jmp 0x402930
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0x4051c0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x402bf7
or dword [ebp - 0xf4], 0x4000
add ebx, 1
jmp 0x401d5c
mov edx, dword [ebp - 0xb4]
mov eax, 0xe
call sym._fatal_string_error.constprop.0
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], str._separate
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x402cc1
add ebx, 1
test byte [0x404000], 8
je 0x401d5c
mov dword [esp + 0xc], str._separate_is_ignored_n
mov dword [esp + 8], 0x405370
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.2
jmp 0x401d5c
mov eax, dword [ebp - 0x118]
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
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 - 0x114]
sub esp, 0xc
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
jmp 0x4024a8
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], str._shared
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x402d35
add ebx, 1
test byte [0x404000], 8
je 0x401d5c
mov dword [esp + 0xc], str._shared_is_ignored_n
mov dword [esp + 8], 0x405370
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.2
jmp 0x401d5c
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], str._node
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x402dba
lea edx, [ebx + 1]
cmp edx, dword [ebp - 0xec]
movzx eax, byte [global___dbch]
je 0x402e3b
add ebx, 2
test al, 8
je 0x401d5c
mov dword [esp + 0xc], str._node_is_ignored_n
mov dword [esp + 8], 0x405370
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.2
jmp 0x401d5c
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], str._affinity
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x402e6c
lea edx, [ebx + 1]
cmp edx, dword [ebp - 0xec]
movzx eax, byte [global___dbch]
je 0x402e3b
add ebx, 2
test al, 8
je 0x401d5c
mov dword [esp + 0xc], str._affinity_is_ignored_n
mov dword [esp + 8], 0x405370
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.2
jmp 0x401d5c
test al, 2
je 0x4029d8
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], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x4029d8
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0x4052a4
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x402eb6
or dword [ebp - 0xc0], 0x40
add ebx, 1
jmp 0x401d5c
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], str._wait
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
je 0x402ea7
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0x4052b6
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
je 0x4029d8
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0x4052bc
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x402f93
add ebx, 1
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 1
cmp dword [ebp - 0xec], ebx
je 0x4029d8
jmp 0x401de2
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0x4052c8
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x402fea
mov dword [ebp - 0xc0], 0x8440
add ebx, 1
mov dword [ebp - 0xf4], 0
jmp 0x401dc2
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], str._progIDOpen
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], 0x400
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
je 0x403066
test byte [0x404000], 2
je 0x4029d8
mov eax, dword [edi]
call sym._wine_dbgstr_wn.constprop.1
mov dword [esp + 0xc], str.Unknown_option__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x405370
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x4029d8
lea eax, [ebx + 1]
cmp dword [ebp - 0xec], eax
je 0x4029d8
mov eax, dword [esi + eax*4]
add ebx, 2
or dword [ebp - 0xc0], 1
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x9c], eax
jmp 0x402f82