Function at 0x409460
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x53b5b8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x58c950]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58c950]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
mov esi, ecx
cmp dword [esi + 0x18], 8
mov dword [esp + 0x20], eax
lea edi, [esi + 4]
jb 0x4094a9
mov eax, dword [edi]
jmp 0x4094ab
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409513
mov ebx, vtable.CBaseFile.0
xor ebp, ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x18], 0
mov dword [esp + 0x4c], ebp
cmp dword [esi + 0x18], 8
jb 0x4094d6
mov edi, dword [edi]
push 0x11
push edi
lea ecx, [esp + 0x1c]
call fcn.0040af10
cmp byte [esp + 0x18], 0
jne 0x40951a
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x40950e
push eax
call fcn.0050f9a8
add esp, 4
test eax, eax
jne 0x409513
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x18], 0
xor eax, eax
jmp 0x4096ab
lea ecx, [esp + 0x14]
call fcn.0040b2d0
lea ebx, [eax + 1]
push ebx
call fcn.004104fc
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x409565
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x40954e
push eax
call fcn.0050f9a8
add esp, 4
test eax, eax
jne 0x409553
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x18], 0
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x14], vtable.CBaseFile.0
jmp 0x4094f5
push ebx
push ebp
push esi
call fcn.00513690
add esp, 0xc
push ebp
push ebp
push ebp
lea ecx, [esp + 0x20]
call fcn.0040b240
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00510349
add esp, 4
test eax, eax
jg 0x4095e1
lea ecx, [ecx]
cmp byte [esp + 0x18], 0
mov eax, dword [esp + 0x1c]
je 0x4096cc
test eax, eax
je 0x4096cc
push eax
push ebx
lea edx, [esi + ebp]
push 1
push edx
call fcn.005109df
mov edi, eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.0051037d
add esp, 0x14
test eax, eax
jne 0x4095e1
mov ecx, edi
cmp edi, 0xffffffff
je 0x4095e1
mov eax, dword [esp + 0x1c]
push eax
add ebp, ecx
call fcn.00510349
add esp, 4
test eax, eax
jle 0x409590
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, ebx
je 0x4095fc
push eax
call fcn.0050f9a8
add esp, 4
test eax, eax
jne 0x409601
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x18], 0
push esi
lea ecx, [esp + 0x28]
call fcn.004047d0
mov byte [esp + 0x4c], 1
mov ecx, dword [esp + 0x20]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x4c]
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], 0
call fcn.00404a40
mov byte [esp + 0x6c], 2
mov byte [esp + 0x6c], 1
call fcn.0040ad40
push esi
call fcn.00410507
add esp, 0x24
mov byte [esp + 0x4c], 0
cmp dword [esp + 0x3c], 0x10
jb 0x40966b
mov eax, dword [esp + 0x28]
push eax
call fcn.00410507
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], 0
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], vtable.CBaseFile.0
cmp eax, ebx
je 0x4096a1
push eax
call fcn.0050f9a8
add esp, 4
test eax, eax
jne 0x4096a6
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x18], 0
mov eax, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0050e8a6
add esp, 0x3c
ret 4
xor ecx, ecx
jmp 0x4095d2