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

Disassembly:
push 0x738
mov eax, 0x537725
call fcn.00508cc4
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.00499d7f
xor ebx, ebx
lea ecx, [ebp - 0x508]
push ebx
push ebx
push esi
mov dword [ebp - 4], ebx
call fcn.0049e6ad
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.00497a4e
mov byte [ebp - 4], 1
mov esi, ebx
mov edi, ebx
call fcn.0049b6fe
push eax
lea ecx, [ebp - 0x94]
call fcn.00497a4e
mov byte [ebp - 4], 2
call fcn.0049b70a
mov ecx, eax
call fcn.00498322
test al, al
je 0x4a9141
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00497cab
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0049816d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a90f2
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00497b76
jmp 0x4a92bb
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4a90de
and dword [ebp - 0x744], 0
push edi
call fcn.004eca81
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 0x4a92a8
push esi
call fcn.0050478f
pop ecx
xor esi, esi
jmp 0x4a90de
call fcn.0049b70a
push eax
lea ecx, [ebp - 0x94]
call fcn.00497cab
call fcn.0049b972
test al, al
je 0x4a9164
call fcn.0049b710
mov ebx, eax
jmp 0x4a91c9
call fcn.0049b716
push eax
lea ecx, [ebp - 0x220]
call fcn.00497a4e
push ebx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0049816d
push eax
call fcn.004a08ed
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x73c], eax
call fcn.0049816d
push eax
call fcn.004caea1
mov ebx, eax
mov eax, dword [ebp - 0x73c]
pop ecx
pop ecx
test eax, eax
je 0x4a91ba
push eax
call fcn.0050478f
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.00497b76
test ebx, ebx
je 0x4a90de
and dword [ebp - 0x740], 0
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x118]
call fcn.00497a4e
push 0x53bde4
push 0x53bde8
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.004984ec
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x740]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0049816d
push eax
push ebx
call fcn.004ca878
add esp, 0x14
test eax, eax
je 0x4a9240
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00497b76
jmp 0x4a90de
mov edi, dword [ebp - 0x50c]
test edi, edi
je 0x4a922c
push edi
call fcn.004eca81
push edi
mov esi, eax
push esi
push dword [ebp - 0x740]
push ebx
call fcn.004cb2d8
add esp, 0x14
test eax, eax
je 0x4a9289
cmp eax, 0x600
je 0x4a9289
push esi
call fcn.0050478f
pop ecx
xor esi, esi
call fcn.0049b972
test al, al
jne 0x4a922c
push ebx
call fcn.004ca660
pop ecx
jmp 0x4a922c
call fcn.0049b972
test al, al
jne 0x4a9299
push ebx
call fcn.004ca660
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00497b76
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00497b76
test esi, esi
jne 0x4a932f
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x19c]
call fcn.0049816d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a932f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4a932f
and dword [ebp - 0x73c], 0
push edi
call fcn.004eca81
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 0x4a932f
push esi
call fcn.0050478f
pop ecx
xor esi, esi
xor ebx, ebx
test esi, esi
je 0x4a9347
push edi
push esi
call fcn.004a8fc5
push esi
mov ebx, eax
call fcn.0050478f
add esp, 0xc
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.00497b76
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.0049a1fb
mov eax, ebx
call fcn.00508c73
ret