Function at 0x439630
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a140
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x5f44b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf0], 0
push 0x596e8c
lea ecx, [ebp - 0xa4]
call fcn.00401600
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00437fd0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x439872
push 0
push 1
push 4
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0xffffffff
jne 0x439705
push 0x596e90
mov ecx, dword [ebp + 8]
call fcn.00401600
mov edx, dword [ebp - 0xf0]
or edx, 1
mov dword [ebp - 0xf0], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.00401640
mov eax, dword [ebp + 8]
jmp 0x4398a2
push 0
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
add ecx, 1
push ecx
call fcn.0047e280
add esp, 4
mov dword [ebp - 0xcc], eax
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x439774
push 0x596e94
mov ecx, dword [ebp + 8]
call fcn.00401600
mov eax, dword [ebp - 0xf0]
or eax, 1
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.00401640
mov eax, dword [ebp + 8]
jmp 0x4398a2
mov ecx, dword [ebp - 0x88]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.0049e690
add esp, 0xc
push 0
lea eax, [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x84]
call fcn.004380d0
cmp dword [ebp - 0x10], 0
je 0x4397f5
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0xd0]
push edx
call fcn.0047e27b
add esp, 4
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x84]
call fcn.00439390
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0xf8], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xf8]
push edx
lea eax, [ebp - 0xc0]
push eax
call fcn.00422760
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xec]
call fcn.004015d0
lea ecx, [ebp - 0xc0]
call fcn.004037a0
test eax, eax
jbe 0x439863
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.004036b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc0]
call fcn.00401640
lea edx, [ebp - 0xa4]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403680
mov eax, dword [ebp - 0xf0]
or eax, 1
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.00401640
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049e381
mov esp, ebp
pop ebp
ret