Function at 0x465290
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5cc9a0
mov eax, dword fs:[0]
push eax
sub esp, 0x388
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x384], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x39c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3ac]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x18], ebx
cmp dword [esi], 0xffffffff
mov dword [esp + 0x1c], eax
mov byte [esp + 0x17], bl
jne 0x4657d3
push 0xffffffffffffffff
xor ecx, ecx
lea eax, [esi + 4]
push ebx
mov word [esp + 0x8c], cx
mov edi, 7
push eax
lea ecx, [esp + 0x90]
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x2c], eax
call fcn.00402610
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
lea edx, [esp + 0x84]
push edx
mov dword [esp + 0x3a8], ebx
call fcn.004346b0
add esp, 4
test al, al
jne 0x46535a
mov eax, 0x5c
push eax
lea ecx, [esp + 0x88]
call fcn.00414690
lea ecx, [esp + 0x84]
cmp dword [esi + 0x38], ebx
jne 0x465374
push 3
push 0x60392c
call fcn.004024f0
jmp 0x465380
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0x28]
push eax
call fcn.004023f0
lea ecx, [esp + 0x148]
push ecx
lea edx, [esi + 0x28]
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.00464e70
mov ecx, dword [esp + 0xac]
push ecx
mov dword [esi], eax
mov byte [esp + 0x27], 1
mov dword [esp + 0x3b4], 0xffffffff
call fcn.005844d1
mov ebp, 8
add esp, 0x10
cmp dword [esp + 0x98], ebp
jb 0x4653d9
mov edx, dword [esp + 0x84]
push edx
call fcn.00584768
add esp, 4
cmp dword [esi], 0xffffffff
jne 0x4657d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
cmp eax, 2
je 0x4658d3
cmp eax, 0x12
je 0x4658d3
xor al, al
cmp al, bl
jne 0x465463
lea eax, [esp + 0x84]
push 0x5fcf00
push eax
call fcn.00423280
add esp, 8
mov esi, eax
mov eax, 1
or dword [esp + 0x18], eax
mov dword [esp + 0x3a4], eax
cmp dword [0x695aa8], ebx
je 0x465447
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x695aa8]
je 0x465447
call fcn.004443b0
jmp 0x46544c
mov al, byte [0x68a580]
cmp al, bl
je 0x465463
push esi
call fcn.00445fa0
add esp, 4
mov byte [esp + 0x17], 1
cmp eax, 1
jae 0x465467
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 1
mov dword [esp + 0x3a4], 0xffffffff
je 0x4654a7
mov ecx, dword [esp + 0xa0]
and dword [esp + 0x18], 0xfffffffe
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x98], ebp
jb 0x4654a7
mov edx, dword [esp + 0x84]
push edx
call fcn.00584768
add esp, 4
cmp byte [esp + 0x17], bl
je 0x4658d3
push str.Cannot_enumerate_files_in_directory__s
lea ecx, [esp + 0x104]
call fcn.00402bb0
xor eax, eax
mov dword [esp + 0x3a4], 2
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], ax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
xor ecx, ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x3a4], 4
call fcn.00425e70
cmp eax, ebx
je 0x465529
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x108]
push edx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x465539
lea eax, [esp + 0x100]
push eax
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x24], eax
mov byte [esp + 0x3a4], 5
call fcn.00420510
mov dword [esp + 0x28], eax
mov byte [esp + 0x3a4], 6
call fcn.00420510
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
push str.wx.sys_error
lea ecx, [esp + 0x128]
mov byte [esp + 0x3a8], 7
call fcn.00402bb0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x8c], esp
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00406280
mov byte [esp + 0x3b0], 9
mov dword [esp + 0xb4], 1
mov dword [esp + 0xbc], str....._srcmswdir.cpp
mov dword [esp + 0xc4], str.wxDirData::Read
mov dword [esp + 0xc0], 0xf2
mov dword [esp + 0xc8], 0x5fcf00
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
call sub.KERNEL32.dll_GetCurrentThreadId
xor edx, edx
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xf8], edi
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], dx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
mov byte [esp + 0x3b0], 0xa
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
push ecx
call sub.KERNEL32.dll_GetLastError
push eax
lea edx, [esp + 0x13c]
push edx
lea ecx, [esp + 0xc4]
call fcn.00429810
mov ecx, eax
mov byte [esp + 0x3b8], 0xb
call fcn.004651d0
mov eax, dword [esp + 0xf4]
push eax
mov byte [esp + 0x3a8], 8
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xec], ebp
jb 0x46569d
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0xd4]
xor edx, edx
mov dword [esp + 0xec], edi
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], dx
mov esi, ecx
cmp ecx, ebx
je 0x4656d0
call fcn.0040c030
push esi
call fcn.00584768
add esp, 4
mov eax, dword [esp + 0x140]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x138], ebp
jb 0x4656f9
mov ecx, dword [esp + 0x124]
push ecx
call fcn.00584768
add esp, 4
xor edx, edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov word [esp + 0x124], dx
mov byte [esp + 0x3a4], 4
call fcn.004020c0
mov eax, dword [esp + 0x54]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x4c], ebp
jb 0x465742
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00584768
add esp, 4
mov eax, dword [esp + 0x78]
xor edx, edx
push eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x70], ebp
jb 0x465771
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00584768
add esp, 4
mov eax, dword [esp + 0x11c]
xor edx, edx
push eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], dx
mov dword [esp + 0x3a8], 0xffffffff
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x114], ebp
jb 0x4657b4
mov ecx, dword [esp + 0x100]
push ecx
call fcn.00584768
add esp, 4
xor edx, edx
mov dword [esp + 0x114], edi
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], dx
mov al, 1
jmp 0x465400
mov di, word [esp + 0x176]
mov ecx, dword [esp + 0x148]
mov ebp, 0x2e
cmp byte [esp + 0x17], bl
je 0x4657f3
mov byte [esp + 0x17], bl
jmp 0x465821
mov edx, dword [esi]
lea eax, [esp + 0x148]
push eax
lea ecx, [esi + 0x28]
push ecx
push edx
call fcn.00464e10
add esp, 0xc
test al, al
je 0x4658cd
mov di, word [esp + 0x176]
mov ecx, dword [esp + 0x148]
cmp word [esp + 0x174], bp
jne 0x465847
cmp di, bp
jne 0x46583c
cmp word [esp + 0x178], bx
je 0x465841
jmp 0x465847
cmp di, bx
jne 0x465847
test byte [esi + 0x4c], 8
je 0x4657e7
mov eax, dword [esi + 0x4c]
test al, 1
jne 0x465858
mov edx, ecx
shr edx, 4
test dl, 1
je 0x4657e7
test al, 2
jne 0x465866
mov edx, ecx
shr edx, 4
test dl, 1
jne 0x4657e7
test al, 4
jne 0x465873
test cl, 6
jne 0x4657e7
lea eax, [esp + 0x174]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x465880
mov ecx, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x178]
push eax
call fcn.00402710
mov al, 1
mov ecx, dword [esp + 0x39c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x384]
xor ecx, esp
call fcn.00585b7b
add esp, 0x394
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x4658a3