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

Disassembly:
push 0x73c
mov eax, 0x500c45
call fcn.004da01f
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.0043d744
xor ebx, ebx
push ebx
push ebx
push esi
lea ecx, [ebp - 0x508]
mov dword [ebp - 4], ebx
call fcn.0043d7b4
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0043af84
mov byte [ebp - 4], 1
mov dword [ebp - 0x73c], ebx
xor esi, esi
call fcn.0043b8cb
push eax
lea ecx, [ebp - 0x94]
call fcn.0043af84
mov byte [ebp - 4], 2
call fcn.0043b8d1
mov ecx, eax
call fcn.0043ac70
test al, al
je 0x465acb
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0043acec
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea ecx, [ebp - 0x94]
call fcn.0043ab5c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x465a72
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0043ab42
jmp 0x465c55
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x465a5e
push esi
mov dword [ebp - 0x744], ebx
call fcn.004d4abd
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 0x465c3e
push dword [ebp - 0x73c]
call fcn.004d6991
pop ecx
mov dword [ebp - 0x73c], ebx
jmp 0x465a5e
call fcn.0043b8d1
push eax
lea ecx, [ebp - 0x94]
call fcn.0043acec
call fcn.0043b8dd
test al, al
je 0x465aee
call fcn.0043b8e3
mov edi, eax
jmp 0x465b53
call fcn.0043b8d7
push eax
lea ecx, [ebp - 0x220]
call fcn.0043af84
push ebx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0043ab5c
push eax
call fcn.00471209
pop ecx
pop ecx
mov edi, eax
push edi
lea ecx, [ebp - 0x94]
call fcn.0043ab5c
push eax
call fcn.0046c874
pop ecx
pop ecx
mov dword [ebp - 0x740], eax
cmp edi, ebx
je 0x465b3e
push edi
call fcn.004d6991
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.0043ab42
mov edi, dword [ebp - 0x740]
cmp edi, ebx
je 0x465a5e
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x748], ebx
call fcn.0043af84
push 0x50ab28
push 0x50ab24
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.0043b0e4
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0043ab5c
push eax
push edi
call fcn.0046adee
add esp, 0x14
test eax, eax
je 0x465bc9
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0043ab42
jmp 0x465a5e
mov esi, dword [ebp - 0x50c]
cmp esi, ebx
je 0x465bb5
push esi
call fcn.004d4abd
push esi
push eax
push dword [ebp - 0x748]
mov dword [ebp - 0x73c], eax
push edi
call fcn.0046c8db
add esp, 0x14
cmp eax, ebx
je 0x465c1f
cmp eax, 0x600
je 0x465c1f
push dword [ebp - 0x73c]
call fcn.004d6991
pop ecx
mov dword [ebp - 0x73c], ebx
call fcn.0043b8dd
test al, al
jne 0x465bb5
push edi
call fcn.0046c8f6
pop ecx
jmp 0x465bb5
call fcn.0043b8dd
test al, al
jne 0x465c2f
push edi
call fcn.0046c8f6
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0043ab42
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0043ab42
cmp dword [ebp - 0x73c], ebx
jne 0x465cd1
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea ecx, [ebp - 0x19c]
call fcn.0043ab5c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x465cd1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x465cd1
push esi
mov dword [ebp - 0x740], ebx
call fcn.004d4abd
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 0x465cd1
push dword [ebp - 0x73c]
call fcn.004d6991
pop ecx
mov dword [ebp - 0x73c], ebx
xor edi, edi
cmp dword [ebp - 0x73c], ebx
je 0x465cf7
push esi
push dword [ebp - 0x73c]
call fcn.00464714
push dword [ebp - 0x73c]
mov edi, eax
call fcn.004d6991
add esp, 0xc
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], bl
call fcn.0043ab42
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.0043b765
mov eax, edi
call fcn.004da0a2
ret