Function at 0x465d31
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x73c
mov eax, 0x500d68
call fcn.004da051
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.0043d80f
xor ebx, ebx
push ebx
push ebx
push esi
lea ecx, [ebp - 0x508]
mov dword [ebp - 4], ebx
call fcn.0043d87f
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0043afad
mov byte [ebp - 4], 1
mov dword [ebp - 0x73c], ebx
xor esi, esi
call fcn.0043b925
push eax
lea ecx, [ebp - 0x94]
call fcn.0043afad
mov byte [ebp - 4], 2
call fcn.0043b92b
mov ecx, eax
call fcn.0043ac95
test al, al
je 0x465e50
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0043ad11
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0043ab14
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x465df7
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0043ab6a
jmp 0x465fda
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x465de3
push esi
mov dword [ebp - 0x744], ebx
call fcn.004d4af2
pop ecx
push ebx
lea ecx, [ebp - 0x744]
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x73c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x744], esi
je 0x465fc3
push dword [ebp - 0x73c]
call fcn.004d69c1
pop ecx
mov dword [ebp - 0x73c], ebx
jmp 0x465de3
call fcn.0043b92b
push eax
lea ecx, [ebp - 0x94]
call fcn.0043ad11
call fcn.0043b937
test al, al
je 0x465e73
call fcn.0043b93d
mov edi, eax
jmp 0x465ed8
call fcn.0043b931
push eax
lea ecx, [ebp - 0x220]
call fcn.0043afad
push ebx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0043ab14
push eax
call fcn.0043d695
pop ecx
pop ecx
mov edi, eax
push edi
lea ecx, [ebp - 0x94]
call fcn.0043ab14
push eax
call fcn.0046cbb1
pop ecx
pop ecx
mov dword [ebp - 0x740], eax
cmp edi, ebx
je 0x465ec3
push edi
call fcn.004d69c1
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.0043ab6a
mov edi, dword [ebp - 0x740]
cmp edi, ebx
je 0x465de3
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x748], ebx
call fcn.0043afad
push 0x50ab0c
push 0x50ab08
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.0043b10d
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0043ab14
push eax
push edi
call fcn.0046b12b
add esp, 0x14
test eax, eax
je 0x465f4e
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0043ab6a
jmp 0x465de3
mov esi, dword [ebp - 0x50c]
cmp esi, ebx
je 0x465f3a
push esi
call fcn.004d4af2
push esi
push eax
push dword [ebp - 0x748]
mov dword [ebp - 0x73c], eax
push edi
call fcn.0046cc18
add esp, 0x14
cmp eax, ebx
je 0x465fa4
cmp eax, 0x600
je 0x465fa4
push dword [ebp - 0x73c]
call fcn.004d69c1
pop ecx
mov dword [ebp - 0x73c], ebx
call fcn.0043b937
test al, al
jne 0x465f3a
push edi
call fcn.0046cc33
pop ecx
jmp 0x465f3a
call fcn.0043b937
test al, al
jne 0x465fb4
push edi
call fcn.0046cc33
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0043ab6a
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0043ab6a
cmp dword [ebp - 0x73c], ebx
jne 0x466056
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x19c]
call fcn.0043ab14
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x466056
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x466056
push esi
mov dword [ebp - 0x740], ebx
call fcn.004d4af2
pop ecx
push ebx
lea ecx, [ebp - 0x740]
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x73c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x740], esi
je 0x466056
push dword [ebp - 0x73c]
call fcn.004d69c1
pop ecx
mov dword [ebp - 0x73c], ebx
xor edi, edi
cmp dword [ebp - 0x73c], ebx
je 0x46607c
push esi
push dword [ebp - 0x73c]
call fcn.00464a99
push dword [ebp - 0x73c]
mov edi, eax
call fcn.004d69c1
add esp, 0xc
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], bl
call fcn.0043ab6a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.0043b78e
mov eax, edi
call fcn.004da0d4
ret