Function at 0x401498
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
push ebp
push edi
push esi
push ebx
mov ebp, dword [esp + 0x70]
mov eax, 0xffffffff
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x74]
mov edx, 0xffffffff
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x4c], 0
mov esi, dword [eax + 0x58]
cmp dword [0x432a08], 0
jne 0x401a0a
cmp word [ebp + 8], 0
jl 0x40151c
add esp, 0xfffffffc
push 0
push ebp
push 0x192
jmp 0x401550
cmp dword [ebp + 0x10], 0
je 0x401540
add esp, 0xfffffffc
push 0
mov eax, dword [ebp + 0x14]
push eax
push 0x1b9
call sym.__p_io_error_cstring
add esp, 0x10
jmp 0x401a0a
test esi, esi
jge 0x401560
add esp, 0xfffffffc
push 0
push ebp
push 0x1a8
nop
call sym.__p_io_error_file
add esp, 0x10
jmp 0x401a0a
cmp esi, 0x7ff
jle 0x40157d
add esp, 0xfffffff8
push 0x800
push 0x4013b8
call sym.__p_warning_integer
add esp, 0x10
mov edi, dword [esp + 0x74]
add edi, 0x5c
jmp 0x401592
mov dword [esp + 0x18], 1
mov esi, edx
cmp esi, 1
jle 0x4015bf
add esp, 0xfffffff4
lea ebx, [esi - 1]
movsx eax, byte [ebx + edi]
push eax
call sym.__p_isdirseparator
add esp, 0x10
mov edx, ebx
test al, al
je 0x4015bf
cmp esi, 3
jg 0x401588
mov eax, dword [esp + 0x74]
cmp byte [eax + 0x5d], 0x3a
jne 0x401588
add esp, 0xfffffff4
lea eax, [esi + 1]
push eax
call sym.__p_new
mov dword [esp + 0x24], eax
add esp, 0xfffffffc
push esi
push edi
push eax
call sym.__p_strlcpy
mov eax, dword [esp + 0x34]
mov byte [esi + eax], 0
add esp, 0x20
add esp, 0xfffffff4
push eax
call sym.__p_slash2osdirseparator_cstring
add esp, 0xfffffff4
mov eax, dword [esp + 0x30]
push eax
call sym.__p_strdup
mov edi, eax
add esp, 0x20
cmp dword [ebp + 4], 0
je 0x401616
add esp, 0xfffffff4
push 0x401418
call sym.__p_warning
add esp, 0x10
mov dword [esp + 0x1c], 1
add esp, 0xfffffff8
push 0x40145d
push edi
call sym.__p_strcasecmp
add esp, 0x10
test eax, eax
je 0x40169c
add esp, 0xfffffff8
push 0x401461
push edi
call sym.__p_strcasecmp
add esp, 0x10
test eax, eax
je 0x40169c
add esp, 0xfffffff8
push 0x401466
push edi
call sym.__p_strcasecmp
add esp, 0x10
test eax, eax
je 0x40169c
add esp, 0xfffffff8
push 0x40146b
push edi
call sym.__p_strcasecmp
add esp, 0x10
test eax, eax
je 0x40169c
add esp, 0xfffffff8
push 0x401470
push edi
call sym.__p_strcasecmp
add esp, 0x10
test eax, eax
je 0x40169c
add esp, 0xfffffff8
push 0x401475
push edi
call sym.__p_strcasecmp
add esp, 0x10
test eax, eax
jne 0x4016a8
mov esi, 0x22
jmp 0x4018a4
add esp, 0xfffffff8
push 0x401479
push edi
call sym.__p_strcasecmp
add esp, 0x10
test eax, eax
je 0x401754
add esp, 0xfffffff8
push 0x40147d
push edi
call sym.__p_strcasecmp
add esp, 0x10
test eax, eax
je 0x401754
add esp, 0xfffffff8
push 0x401482
push edi
call sym.__p_strcasecmp
add esp, 0x10
test eax, eax
je 0x401754
add esp, 0xfffffff8
push 0x401487
push edi
call sym.__p_strcasecmp
add esp, 0x10
test eax, eax
je 0x401754
add esp, 0xfffffff8
push 0x40148c
push edi
call sym.__p_strcasecmp
add esp, 0x10
test eax, eax
je 0x401754
add esp, 0xfffffff8
push 0x401491
push edi
call sym.__p_strcasecmp
add esp, 0x10
test eax, eax
je 0x401754
add esp, 0xfffffff8
push 0x401495
push edi
call sym.__p_strcmp
add esp, 0x10
test eax, eax
je 0x401754
add esp, 0xfffffff8
push 0x401496
push edi
call sym.__p_strcmp
add esp, 0x10
test eax, eax
jne 0x401760
mov esi, 0x26
jmp 0x4018a4
add esp, 0xfffffff8
push 0xf
push edi
call sym.__p_Access
mov esi, eax
add esp, 0x10
test esi, esi
je 0x401804
add esp, 0xfffffff8
lea eax, [esp + 0x67]
push eax
lea eax, [esp + 0x6a]
push eax
lea eax, [esp + 0x6d]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x58]
push eax
push edi
call sym.__p_Stat
add esp, 0x40
test eax, eax
jne 0x4018a4
cmp byte [esp + 0x5d], 0
je 0x4017d7
or esi, 0x40
cmp byte [esp + 0x5e], 0
je 0x4017ec
and esi, 0xfffffff7
or esi, 0x10
jmp 0x40189c
cmp byte [esp + 0x5f], 0
je 0x4018a4
and esi, 0xfffffff7
or esi, 0x20
jmp 0x4018a4
mov ebx, edi
cmp byte [edi], 0
je 0x401812
nop
inc ebx
cmp byte [ebx], 0
jne 0x40180c
mov esi, esi
dec ebx
cmp ebx, edi
jae 0x401828
mov eax, 0x2e
mov byte [edi], 0x2e
mov byte [edi + 1], 0
jmp 0x40184f
add esp, 0xfffffff4
movsx eax, byte [ebx]
push eax
call sym.__p_isdirseparator
add esp, 0x10
test al, al
je 0x401814
movsx eax, byte [ebx + 1]
cmp ebx, edi
jne 0x40184c
mov byte [edi + 1], 0
jmp 0x40184f
mov byte [ebx], 0
test eax, eax
je 0x40189c
add esp, 0xfffffff8
push 0
lea eax, [esp + 0x6a]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sym.__p_Stat
add esp, 0x40
test eax, eax
jl 0x401887
cmp byte [esp + 0x5e], 0
je 0x40189c
add esp, 0xfffffff8
push 2
push edi
call sym.__p_Access
mov esi, eax
add esp, 0x10
jmp 0x4018a4
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x18], 0
je 0x4018bd
test esi, 0x10
jne 0x4018bd
xor esi, esi
mov dword [esp + 0x1c], 0
add esp, 0xfffffff4
push edi
call sym.__p_dispose
add esp, 0x10
cmp dword [esp + 0x1c], 0
jne 0x4018f0
mov eax, dword [esp + 0x74]
cmp byte [eax + 1], 0
jne 0x4018f0
add esp, 0xfffffff4
mov eax, dword [esp + 0x20]
push eax
call sym.__p_dispose
add esp, 0x10
jmp 0x401a0a
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0xffffffff
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0xffffffff
mov dword [ebp + 0x5c], 0xffffffff
mov dword [ebp + 0x60], 0xffffffff
mov dword [ebp + 0x64], 0xffffffff
mov dword [ebp + 0x68], 0
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x14], eax
add esp, 0xfffffff4
push 0x60
call sym.__p_new
mov ebx, eax
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], 1
add esp, 0xfffffffc
push 0x60
push ebx
mov eax, dword [esp + 0x90]
push eax
call sym.__p_move
mov byte [ebx + 2], 1
mov eax, esi
shr eax, 2
and al, 1
mov byte [ebx + 3], al
mov eax, esi
shr eax, 1
and al, 1
mov byte [ebx + 4], al
mov eax, esi
and al, 1
mov byte [ebx + 5], al
shr esi, 3
mov eax, esi
and al, 1
mov byte [ebx + 6], al
shr esi, 1
mov eax, esi
and al, 1
mov byte [ebx + 7], al
shr esi, 1
mov eax, esi
and al, 1
mov byte [ebx + 8], al
shr esi, 1
mov eax, esi
and al, 1
mov byte [ebx + 9], al
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x3c], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x40], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x44], eax
mov byte [ebx], 1
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x5c
ret