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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x350
mov eax, dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], 1
mov dword [ebp - 0x334], 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 [ebp + 0xc]
lea ebx, [eax + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x31c], ebx
test eax, eax
je 0x401c25
mov dword [ebp - 0x324], 0
mov esi, ebx
mov dword [ebp - 0x320], 1
jmp 0x4014eb
mov dword [ebp - 0x320], edi
mov ebx, 1
mov eax, dword [ebp + 0xc]
lea esi, [eax + edi*4]
mov eax, dword [esi]
test eax, eax
je 0x401553
test bl, bl
je 0x401553
mov ecx, dword [ebp - 0x320]
cmp word [eax], 0x2d
lea edi, [ecx + 1]
jne 0x4014d0
cmp word [eax + 2], 0x2d
jne 0x4018b2
xor ebx, ebx
cmp word [eax + 4], 0
jne 0x401bd6
mov eax, dword [ebp - 0x320]
lea edx, [eax*4]
mov edi, eax
mov eax, dword [ebp + 0xc]
add eax, edx
mov esi, dword [eax]
test esi, esi
je 0x4014db
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + edx + 4]
lea esi, [esi]
nop
mov ecx, dword [edx]
add eax, 4
add edx, 4
mov dword [eax - 4], ecx
test ecx, ecx
jne 0x401538
mov eax, dword [ebp + 0xc]
lea esi, [eax + edi*4]
mov eax, dword [esi]
test eax, eax
jne 0x4014e7
mov dword [ebp - 0x328], 0xa
mov eax, dword [ebp - 0x324]
test al, 0x10
jne 0x401b30
mov eax, dword [ebp - 0x324]
test eax, eax
je 0x401c2f
and eax, 4
mov dword [ebp - 0x32c], eax
jne 0x401c87
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x33c], 0
mov eax, dword [ebp - 0x324]
and eax, 8
mov dword [ebp - 0x330], eax
jne 0x401b48
mov ecx, dword [ebp - 0x324]
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov eax, dword [eax + 4]
and ecx, 1
and esi, 2
mov dword [ebp - 0x338], ecx
mov dword [ebp - 0x334], esi
test eax, eax
jne 0x401621
jmp 0x401a7e
mov ebx, dword [ebp - 0x338]
test ebx, ebx
jne 0x401686
mov ecx, dword [ebp - 0x32c]
test ecx, ecx
jne 0x4016e2
mov ebx, dword [ebp - 0x330]
test ebx, ebx
jne 0x401900
add dword [ebp - 0x31c], 4
mov eax, dword [ebp - 0x31c]
mov eax, dword [eax]
test eax, eax
je 0x401a7e
mov esi, dword [ebp - 0x334]
mov byte [ebp - 0x318], 0
test esi, esi
je 0x4015e0
lea ebx, [ebp - 0x214]
mov dword [esp], eax
lea esi, [ebp - 0x318]
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
call dword [sym.imp.kernel32.dll_GetLongPathNameW]
sub esp, 0xc
test eax, eax
jne 0x401a8b
mov eax, dword [ebp - 0x328]
mov dword [esp + 4], esi
mov dword [esp], str._s_c
mov dword [esp + 8], eax
call fcn.00401040
mov ebx, dword [ebp - 0x338]
test ebx, ebx
je 0x4015ee
mov eax, dword [ebp - 0x31c]
lea ebx, [ebp - 0x214]
mov dword [esp + 8], 0x104
lea esi, [ebp - 0x318]
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetShortPathNameW]
sub esp, 0xc
test eax, eax
jne 0x401ad0
mov eax, dword [ebp - 0x328]
mov dword [esp + 4], esi
mov dword [esp], str._s_c
mov dword [esp + 8], eax
call fcn.00401040
mov ecx, dword [ebp - 0x32c]
test ecx, ecx
je 0x4015fc
mov eax, dword [ebp - 0x31c]
mov edi, dword [eax]
movzx edx, word [edi]
mov esi, edi
test dx, dx
je 0x401701
lea esi, [esi]
add esi, 2
cmp word [esi], 0
jne 0x4016f8
sub esi, edi
mov dword [ebp - 0x324], edx
lea eax, [esi + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x324]
mov ebx, eax
jmp 0x401723
movzx edx, word [edi]
add eax, 2
add edi, 2
mov word [eax - 2], dx
test dx, dx
jne 0x401720
xor edi, edi
mov dword [esp], ebx
mov eax, dword [ebp - 0x320]
call eax
test eax, eax
jne 0x401806
lea esi, [esi]
nop
lea eax, [ebx + esi]
test edi, edi
cmovne eax, edi
cmp eax, ebx
jne 0x401779
jmp 0x401a5a
cmp dx, 0x5c
je 0x401782
sub eax, 2
cmp ebx, eax
je 0x401a5a
movzx edx, word [eax]
cmp dx, 0x2f
jne 0x401768
movzx edx, word [eax + 2]
lea ecx, [eax + 2]
cmp dx, 0x2a
je 0x4017d7
test dx, dx
je 0x4017e0
mov dword [ebp - 0x324], eax
cmp dx, 0x3f
ja 0x401a50
cmp dx, 0x21
jbe 0x4017bb
sub edx, 0x22
mov eax, 0x34000001
bt eax, edx
jb 0x401a5a
movzx edx, word [ecx + 2]
add ecx, 2
test dx, dx
je 0x401cea
cmp dx, 0x2a
jne 0x40179a
mov eax, dword [ebp - 0x324]
test dx, dx
jne 0x401a5a
test edi, edi
je 0x4017ec
mov edx, 0x2f
mov word [edi], dx
xor edi, edi
mov word [eax], di
mov edi, eax
mov eax, dword [ebp - 0x320]
mov dword [esp], ebx
call eax
test eax, eax
je 0x401750
mov edx, eax
test edi, edi
je 0x401bab
lea esi, [ebp - 0x318]
add edi, 2
mov dword [ebp - 0x324], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfdf2
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x324]
mov eax, dword [ebp - 0x328]
sub esp, 0x20
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp], str._s__s_c
call fcn.00401040
mov edx, dword [ebp - 0x324]
mov dword [esp + 8], edx
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 0x401a70
mov eax, dword [esi]
mov edi, dword [ebp - 0x324]
mov ebx, 4
movzx eax, word [eax + 2]
test ax, ax
je 0x4018ed
lea esi, [esi]
nop
xor edx, edx
call fcn.00401320
or edi, eax
mov eax, dword [esi]
movzx eax, word [eax + ebx]
add ebx, 2
test ax, ax
jne 0x4018d0
mov dword [ebp - 0x324], edi
mov ebx, 1
jmp 0x401512
mov eax, dword [ebp - 0x31c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edi, 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 edi
sub esp, 0x20
mov esi, 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 - 0x31c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [eax]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0xfdf2
call edi
mov eax, dword [ebp - 0x33c]
sub esp, 0x20
mov dword [esp], ebx
call eax
test eax, eax
je 0x401b15
lea esi, [ebp - 0x318]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [ebp - 0x324], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfdf2
call edi
mov eax, dword [ebp - 0x328]
sub esp, 0x20
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], str._s_c
call fcn.00401040
mov edx, dword [ebp - 0x324]
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 0x40160a
cmp dx, 0x7c
jne 0x4017bb
mov eax, dword [ebp - 0x328]
mov dword [esp], 0x405171
mov dword [esp + 4], eax
call fcn.00401040
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x4015fc
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_exit]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfdf2
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
jmp 0x40165e
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfdf2
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
jmp 0x4016ba
mov eax, dword [ebp - 0x328]
mov dword [esp], 0x405171
mov dword [esp + 4], eax
call fcn.00401040
jmp 0x401a3a
mov dword [ebp - 0x328], 0
xor eax, 0x10
mov dword [ebp - 0x324], eax
jmp 0x40156b
mov dword [esp], str.KERNEL32
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push edi
mov dword [esp + 4], str.wine_get_dos_file_name
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x33c], eax
push edx
push edx
test eax, eax
jne 0x4015b1
mov dword [esp], 2
mov eax, dword [ebp - 0x334]
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 fcn.00401000
mov dword [esp], 3
call dword [sym.imp.ucrtbase.dll_exit]
mov eax, dword [ebp - 0x328]
mov dword [esp + 4], edx
mov dword [esp], str._s_c
mov dword [esp + 8], eax
mov dword [ebp - 0x324], edx
call fcn.00401040
mov edx, dword [ebp - 0x324]
jmp 0x401889
xor ebx, ebx
mov edi, 0x4050b0
jmp 0x401bf2
add ebx, 1
mov edi, dword [ebx*4 + 0x405498]
test edi, edi
je 0x4018ed
mov dword [esp + 4], edi
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 [edi]
mov edx, dword [esi]
mov ebx, 1
call fcn.00401320
or dword [ebp - 0x324], eax
jmp 0x401512
mov dword [ebp - 0x328], 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 - 0x320], eax
push ecx
push ecx
test eax, eax
je 0x401cb6
mov dword [ebp - 0x324], 4
mov dword [ebp - 0x32c], 4
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x33c], 0
jmp 0x4015b1
mov dword [esp], str.KERNEL32
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push ecx
mov dword [esp + 4], str.wine_get_unix_file_name
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x320], eax
push ebx
push ebx
test eax, eax
jne 0x401592
mov dword [esp], 2
mov eax, dword [ebp - 0x334]
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 fcn.00401000
mov dword [esp], 3
call dword [sym.imp.ucrtbase.dll_exit]
mov eax, dword [ebp - 0x324]
jmp 0x4017e0