Function at 0x436240
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4954c0
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [0x4b4f9c]
test eax, eax
je 0x43628b
test byte [eax + 0x40], 1
je 0x43628b
mov eax, 0x4c7
jmp 0x4365f6
push 0x104
lea edx, [ebp - 0x118]
mov ecx, esi
call fcn.004246e0
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 4
test dword [edi + 0x23c], 0x2000
je 0x43637a
lea eax, [ebp - 0x320]
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x328], eax
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
mov word [ebp - 0x320], ax
lea eax, [ebp - 0x118]
push eax
push 0
push 0xfde9
call ebx
mov dword [ebp - 0x324], eax
test eax, eax
je 0x436344
lea edx, [eax + 1]
cmp edx, 0x80
jbe 0x436329
xor ecx, ecx
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d5a7
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x328], ecx
jmp 0x43632f
mov ecx, dword [ebp - 0x328]
inc eax
push eax
push ecx
push 0xffffffffffffffff
lea eax, [ebp - 0x118]
push eax
push 0
push 0xfde9
call ebx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x328]
call fcn.00415fa0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x328]
test eax, eax
je 0x43637a
lea ecx, [ebp - 0x320]
cmp eax, ecx
je 0x43637a
push eax
call fcn.00457d90
add esp, 4
mov eax, dword [edi + 0x244]
cmp eax, 0x10f
ja 0x436463
je 0x43644b
sub eax, 0x98
je 0x4363d6
sub eax, 0x17
je 0x4363be
sub eax, 0x10
jne 0x436471
lea eax, [ebp - 0x118]
mov edx, esi
push eax
mov ecx, edi
call fcn.00435d60
add esp, 4
jmp 0x4365f6
lea eax, [ebp - 0x118]
mov edx, esi
push eax
mov ecx, edi
call fcn.00435590
add esp, 4
jmp 0x4365f6
push dword [esi + 0x34]
call fcn.00437a00
push 0xf
lea eax, [ebp - 0x118]
push eax
push dword [esi + 0x10]
call fcn.00449550
mov ebx, eax
test ebx, 0x2ab
je 0x4363fe
or word [esi + 0x30], 2
push 0x104
lea edx, [ebp - 0x220]
mov ecx, esi
call fcn.004247b0
add esp, 4
lea eax, [ebp - 0x220]
push eax
push ebx
push 0x140c
push dword [edi + 0x220]
call dword [sym.imp.USER32.dll_SendMessageW]
inc dword [edi + 0x238]
xor edx, edx
push 0
push dword [edi + 0x238]
call fcn.00415fe0
add esp, 8
xor eax, eax
jmp 0x4365f6
lea eax, [ebp - 0x118]
mov edx, esi
push eax
mov ecx, edi
call fcn.00435fb0
add esp, 4
jmp 0x4365f6
cmp eax, 0x173
je 0x43648e
cmp eax, 0x1f5
je 0x43647b
mov eax, 0x32
jmp 0x4365f6
or word [esi + 0x30], 0x40
xor eax, eax
mov dword [esi + 0x10], 0
jmp 0x4365f6
push dword [esi + 0x34]
call fcn.00437a00
lea eax, [ebp - 0x118]
push eax
push dword [esi + 0x10]
call fcn.00449bf0
test al, al
jne 0x4365da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x43650a
lea eax, [ebp - 0x118]
push str._listfile_
push eax
call fcn.00485304
add esp, 8
test eax, eax
je 0x4365da
lea eax, [ebp - 0x118]
push 0x4a5900
push eax
call fcn.00485304
add esp, 8
test eax, eax
je 0x4365da
lea eax, [ebp - 0x118]
push 0x4a58f0
push eax
call fcn.00485304
add esp, 8
test eax, eax
jmp 0x43650c
test esi, esi
je 0x4365da
lea eax, [ebp - 0x428]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x430], eax
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x118]
push eax
push 0
push 0xfde9
call ebx
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x4365a0
lea edx, [eax + 1]
cmp edx, 0x80
jbe 0x436585
xor ecx, ecx
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d5a7
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x430], ecx
jmp 0x43658b
mov ecx, dword [ebp - 0x430]
inc eax
push eax
push ecx
push 0xffffffffffffffff
lea eax, [ebp - 0x118]
push eax
push 0
push 0xfde9
call ebx
push dword [ebp - 0x430]
push 0
push 0x170
push dword [edi + 0x220]
call fcn.004160c0
mov eax, dword [ebp - 0x430]
add esp, 0x10
test eax, eax
je 0x4365f4
lea ecx, [ebp - 0x428]
cmp eax, ecx
je 0x4365f4
push eax
call fcn.00457d90
add esp, 4
jmp 0x4365f4
inc dword [edi + 0x238]
xor edx, edx
push 0
push dword [edi + 0x238]
call fcn.00415fe0
add esp, 8
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret