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

Disassembly:
push 0x738
mov eax, 0x536089
call fcn.005078a4
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.004988ff
xor ebx, ebx
lea ecx, [ebp - 0x508]
push ebx
push ebx
push esi
mov dword [ebp - 4], ebx
call fcn.0049d231
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.00496685
mov byte [ebp - 4], 1
mov esi, ebx
mov edi, ebx
call fcn.0049a282
push eax
lea ecx, [ebp - 0x94]
call fcn.00496685
mov byte [ebp - 4], 2
call fcn.0049a28e
mov ecx, eax
call fcn.00496f55
test al, al
je 0x4a7c7f
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.004968e2
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00496da4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a7c30
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.004967ad
jmp 0x4a7df9
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4a7c1c
and dword [ebp - 0x744], 0
push edi
call fcn.004eb6b1
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 0x744]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x744], edi
je 0x4a7de6
push esi
call fcn.0050335f
pop ecx
xor esi, esi
jmp 0x4a7c1c
call fcn.0049a28e
push eax
lea ecx, [ebp - 0x94]
call fcn.004968e2
call fcn.0049a4f6
test al, al
je 0x4a7ca2
call fcn.0049a294
mov ebx, eax
jmp 0x4a7d07
call fcn.0049a29a
push eax
lea ecx, [ebp - 0x220]
call fcn.00496685
push ebx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00496da4
push eax
call fcn.004c78d2
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x73c], eax
call fcn.00496da4
push eax
call fcn.004c99b0
mov ebx, eax
mov eax, dword [ebp - 0x73c]
pop ecx
pop ecx
test eax, eax
je 0x4a7cf8
push eax
call fcn.0050335f
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.004967ad
test ebx, ebx
je 0x4a7c1c
and dword [ebp - 0x740], 0
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x118]
call fcn.00496685
push 0x53ade4
push 0x53ade8
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.0049711f
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x740]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00496da4
push eax
push ebx
call fcn.004c9387
add esp, 0x14
test eax, eax
je 0x4a7d7e
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.004967ad
jmp 0x4a7c1c
mov edi, dword [ebp - 0x50c]
test edi, edi
je 0x4a7d6a
push edi
call fcn.004eb6b1
push edi
mov esi, eax
push esi
push dword [ebp - 0x740]
push ebx
call fcn.004c9de7
add esp, 0x14
test eax, eax
je 0x4a7dc7
cmp eax, 0x600
je 0x4a7dc7
push esi
call fcn.0050335f
pop ecx
xor esi, esi
call fcn.0049a4f6
test al, al
jne 0x4a7d6a
push ebx
call fcn.004c916f
pop ecx
jmp 0x4a7d6a
call fcn.0049a4f6
test al, al
jne 0x4a7dd7
push ebx
call fcn.004c916f
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.004967ad
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.004967ad
test esi, esi
jne 0x4a7e6d
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x19c]
call fcn.00496da4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a7e6d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4a7e6d
and dword [ebp - 0x73c], 0
push edi
call fcn.004eb6b1
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 0x73c]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x73c], edi
je 0x4a7e6d
push esi
call fcn.0050335f
pop ecx
xor esi, esi
xor ebx, ebx
test esi, esi
je 0x4a7e85
push edi
push esi
call fcn.004a7b03
push esi
mov ebx, eax
call fcn.0050335f
add esp, 0xc
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.004967ad
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.00498d7b
mov eax, ebx
call fcn.00507853
ret