Function at 0x401430
Capabilities:
Access peb ldr_data
Get process heap flags
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x368
mov edi, dword [ecx + 4]
mov eax, dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], 1
mov dword [ebp - 0x338], edi
lea ebx, [edi + 4]
mov dword [ebp - 0x34c], eax
call eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__fileno]
mov dword [esp + 4], 0x8000
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__setmode]
mov eax, dword [edi + 4]
mov dword [ebp - 0x330], ebx
test eax, eax
je 0x401c25
mov dword [ebp - 0x348], 0
mov esi, ebx
mov dword [ebp - 0x32c], 1
jmp 0x4014ce
mov dword [ebp - 0x32c], edi
mov ebx, 1
mov eax, dword [ebp - 0x338]
lea esi, [eax + edi*4]
mov eax, dword [esi]
test eax, eax
je 0x40153a
test bl, bl
je 0x40153a
mov edi, dword [ebp - 0x32c]
add edi, 1
cmp word [eax], 0x2d
jne 0x4014b0
cmp word [eax + 2], 0x2d
jne 0x401957
xor ebx, ebx
cmp word [eax + 4], 0
jne 0x401bd1
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp - 0x338]
mov edi, eax
shl eax, 2
lea edx, [ecx + eax]
mov esi, dword [edx]
test esi, esi
je 0x4014bb
lea eax, [ecx + eax + 4]
lea esi, [esi]
nop
mov esi, dword [eax]
mov ecx, eax
add edx, 4
add eax, 4
mov dword [edx - 4], esi
mov ecx, dword [ecx]
test ecx, ecx
jne 0x401518
mov eax, dword [ebp - 0x338]
lea esi, [eax + edi*4]
mov eax, dword [esi]
test eax, eax
jne 0x4014ca
mov dword [ebp - 0x33c], 0xa
mov eax, dword [ebp - 0x348]
test al, 0x10
jne 0x401997
mov eax, dword [ebp - 0x348]
test eax, eax
je 0x401c2f
and eax, 4
mov dword [ebp - 0x340], eax
jne 0x401c87
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x350], 0
mov eax, dword [ebp - 0x348]
and eax, 8
mov dword [ebp - 0x344], eax
jne 0x401b4f
mov edi, dword [ebp - 0x348]
mov eax, dword [ebp - 0x338]
mov ecx, edi
mov eax, dword [eax + 4]
and edi, 1
and ecx, 2
mov dword [ebp - 0x34c], edi
mov dword [ebp - 0x348], ecx
test eax, eax
jne 0x401609
jmp 0x401a91
mov esi, dword [ebp - 0x34c]
test esi, esi
jne 0x40166e
mov ebx, dword [ebp - 0x340]
test ebx, ebx
jne 0x4016ca
mov ebx, dword [ebp - 0x344]
test ebx, ebx
jne 0x40180f
add dword [ebp - 0x330], 4
mov eax, dword [ebp - 0x330]
mov eax, dword [eax]
test eax, eax
je 0x401a91
mov edi, dword [ebp - 0x348]
mov byte [ebp - 0x324], 0
test edi, edi
je 0x4015c8
lea edi, [ebp - 0x220]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
lea edi, [ebp - 0x324]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetLongPathNameW]
sub esp, 0xc
test eax, eax
jne 0x401a9e
mov eax, dword [ebp - 0x33c]
mov dword [esp + 4], edi
mov dword [esp], str._s_c
mov dword [esp + 8], eax
call dbg.printf
mov esi, dword [ebp - 0x34c]
test esi, esi
je 0x4015d6
lea eax, [ebp - 0x220]
mov dword [esp + 8], 0x104
lea edi, [ebp - 0x324]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x330]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetShortPathNameW]
sub esp, 0xc
test eax, eax
jne 0x401ae9
mov eax, dword [ebp - 0x33c]
mov dword [esp + 4], edi
mov dword [esp], str._s_c
mov dword [esp + 8], eax
call dbg.printf
mov ebx, dword [ebp - 0x340]
test ebx, ebx
je 0x4015e4
mov eax, dword [ebp - 0x330]
mov ebx, dword [eax]
movzx edx, word [ebx]
mov edi, ebx
test dx, dx
je 0x4016e9
lea esi, [esi]
add edi, 2
cmp word [edi], 0
jne 0x4016e0
sub edi, ebx
mov dword [ebp - 0x32c], edx
lea eax, [edi + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x32c]
mov esi, eax
jmp 0x401713
movzx edx, word [ebx]
add eax, 2
add ebx, 2
mov word [eax - 2], dx
test dx, dx
jne 0x401710
lea eax, [esi + edi]
mov dword [esp], esi
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x334]
mov dword [ebp - 0x32c], 0
call eax
test eax, eax
jne 0x4019ea
lea esi, [esi]
nop
mov eax, dword [ebp - 0x32c]
test eax, eax
mov edx, eax
cmove edx, dword [ebp - 0x338]
cmp edx, esi
jne 0x40177d
jmp 0x4017e2
cmp ax, 0x5c
je 0x401786
sub edx, 2
cmp esi, edx
je 0x4017e2
movzx eax, word [edx]
cmp ax, 0x2f
jne 0x401770
movzx eax, word [edx + 2]
lea ecx, [edx + 2]
cmp ax, 0x2a
je 0x4019b1
test ax, ax
je 0x4019ba
mov edi, edx
jmp 0x4017c8
cmp ax, 0x22
je 0x4017e2
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
je 0x401a8a
cmp ax, 0x2a
je 0x4019af
lea edx, [eax - 0x3e]
mov ebx, eax
cmp dx, 1
seta dl
and ebx, 0xffffffbf
cmp bx, 0x3c
setne bl
test dl, bl
jne 0x4017a8
mov eax, dword [ebp - 0x33c]
mov dword [esp], 0x404171
mov dword [esp + 4], eax
call dbg.printf
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov ebx, dword [ebp - 0x344]
test ebx, ebx
je 0x4015f2
mov eax, dword [ebp - 0x330]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov esi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [eax]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0xfdf2
call esi
sub esp, 0x20
mov edi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov ebx, eax
mov eax, dword [ebp - 0x330]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [eax]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0xfdf2
call esi
mov eax, dword [ebp - 0x350]
sub esp, 0x20
mov dword [esp], ebx
call eax
test eax, eax
je 0x401b34
lea edi, [ebp - 0x324]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [ebp - 0x32c], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfdf2
call esi
mov eax, dword [ebp - 0x33c]
sub esp, 0x20
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], str._s_c
call dbg.printf
mov edx, dword [ebp - 0x32c]
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
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x4015f2
mov eax, dword [esi]
mov edi, dword [ebp - 0x348]
mov ebx, 4
movzx eax, word [eax + 2]
test ax, ax
je 0x40198d
lea esi, [esi]
xor edx, edx
call sym._option
or edi, eax
mov eax, dword [esi]
movzx eax, word [eax + ebx]
add ebx, 2
test ax, ax
jne 0x401970
mov dword [ebp - 0x348], edi
mov ebx, 1
jmp 0x4014f5
mov dword [ebp - 0x33c], 0
xor eax, 0x10
mov dword [ebp - 0x348], eax
jmp 0x401552
mov edx, edi
test ax, ax
jne 0x4017e2
mov eax, dword [ebp - 0x32c]
test eax, eax
je 0x4019cc
mov ecx, 0x2f
mov word [eax], cx
xor edi, edi
mov dword [ebp - 0x32c], edx
mov eax, dword [ebp - 0x334]
mov word [edx], di
mov dword [esp], esi
call eax
test eax, eax
je 0x401750
mov ebx, eax
mov eax, dword [ebp - 0x32c]
test eax, eax
je 0x401bb2
lea edi, [ebp - 0x324]
add eax, 2
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfdf2
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x33c]
sub esp, 0x20
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], str._s__s_c
call dbg.printf
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x4017f8
mov edx, edi
jmp 0x4019ba
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_exit]
lea eax, [ebp - 0x220]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfdf2
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
jmp 0x401646
lea eax, [ebp - 0x220]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfdf2
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
jmp 0x4016a2
mov eax, dword [ebp - 0x33c]
mov dword [esp], 0x404171
mov dword [esp + 4], eax
call dbg.printf
jmp 0x401949
mov dword [esp], str.KERNEL32
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push edx
mov dword [esp + 4], str.wine_get_dos_file_name
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x350], eax
push ecx
push ecx
test eax, eax
jne 0x401598
mov dword [esp], 2
mov eax, dword [ebp - 0x34c]
call eax
mov dword [esp + 8], str.winepath
mov dword [esp + 4], str._s:_cannot_get_the_address_of_wine_get_dos_file_name_n
mov dword [esp], eax
call dbg.fprintf
mov dword [esp], 3
call dword [sym.imp.ucrtbase.dll_exit]
mov eax, dword [ebp - 0x33c]
mov dword [esp + 4], ebx
mov dword [esp], str._s_c
mov dword [esp + 8], eax
call dbg.printf
jmp 0x401a61
xor edi, edi
mov ebx, 0x4040b0
jmp 0x401bf2
add edi, 1
mov ebx, dword [edi*4 + 0x404498]
test ebx, ebx
je 0x40198d
mov dword [esp + 4], ebx
mov eax, dword [esi]
add eax, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x401be0
movzx eax, word [ebx]
mov edx, dword [esi]
mov ebx, 1
call sym._option
or dword [ebp - 0x348], eax
jmp 0x4014f5
mov dword [ebp - 0x33c], 0xa
mov dword [esp], str.KERNEL32
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push edx
mov dword [esp + 4], str.wine_get_unix_file_name
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x334], eax
push ecx
push ecx
test eax, eax
je 0x401cb6
mov dword [ebp - 0x348], 4
mov dword [ebp - 0x340], 4
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x350], 0
jmp 0x401598
mov dword [esp], str.KERNEL32
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push ebx
mov dword [esp + 4], str.wine_get_unix_file_name
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x334], eax
push esi
push esi
test eax, eax
jne 0x401579
mov dword [esp], 2
mov eax, dword [ebp - 0x34c]
call eax
mov dword [esp + 8], str.winepath
mov dword [esp + 4], str._s:_cannot_get_the_address_of_wine_get_unix_file_name_n
mov dword [esp], eax
call dbg.fprintf
mov dword [esp], 3
call dword [sym.imp.ucrtbase.dll_exit]
nop
nop
nop
nop
nop
nop