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

Disassembly:
push 0x738
mov eax, 0x537e1d
call fcn.00509264
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.0049a38c
xor ebx, ebx
lea ecx, [ebp - 0x508]
push ebx
push ebx
push esi
mov dword [ebp - 4], ebx
call fcn.0049eca5
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0049805f
mov byte [ebp - 4], 1
mov esi, ebx
mov edi, ebx
call fcn.0049bcf6
push eax
lea ecx, [ebp - 0x94]
call fcn.0049805f
mov byte [ebp - 4], 2
call fcn.0049bd02
mov ecx, eax
call fcn.0049892f
test al, al
je 0x4a96d4
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.004982cc
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0049877e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a9685
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00498187
jmp 0x4a984e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4a9671
and dword [ebp - 0x744], 0
push edi
call fcn.004ed091
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 0x4a983b
push esi
call fcn.00504d2f
pop ecx
xor esi, esi
jmp 0x4a9671
call fcn.0049bd02
push eax
lea ecx, [ebp - 0x94]
call fcn.004982cc
call fcn.0049bf6a
test al, al
je 0x4a96f7
call fcn.0049bd08
mov ebx, eax
jmp 0x4a975c
call fcn.0049bd0e
push eax
lea ecx, [ebp - 0x220]
call fcn.0049805f
push ebx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0049877e
push eax
call fcn.004b623e
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x73c], eax
call fcn.0049877e
push eax
call fcn.004cb443
mov ebx, eax
mov eax, dword [ebp - 0x73c]
pop ecx
pop ecx
test eax, eax
je 0x4a974d
push eax
call fcn.00504d2f
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.00498187
test ebx, ebx
je 0x4a9671
and dword [ebp - 0x740], 0
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x118]
call fcn.0049805f
push 0x53cde4
push 0x53cde8
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.00498af9
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x740]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0049877e
push eax
push ebx
call fcn.004cae1a
add esp, 0x14
test eax, eax
je 0x4a97d3
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00498187
jmp 0x4a9671
mov edi, dword [ebp - 0x50c]
test edi, edi
je 0x4a97bf
push edi
call fcn.004ed091
push edi
mov esi, eax
push esi
push dword [ebp - 0x740]
push ebx
call fcn.004cb87a
add esp, 0x14
test eax, eax
je 0x4a981c
cmp eax, 0x600
je 0x4a981c
push esi
call fcn.00504d2f
pop ecx
xor esi, esi
call fcn.0049bf6a
test al, al
jne 0x4a97bf
push ebx
call fcn.004cac02
pop ecx
jmp 0x4a97bf
call fcn.0049bf6a
test al, al
jne 0x4a982c
push ebx
call fcn.004cac02
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00498187
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00498187
test esi, esi
jne 0x4a98c2
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x19c]
call fcn.0049877e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a98c2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4a98c2
and dword [ebp - 0x73c], 0
push edi
call fcn.004ed091
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 0x4a98c2
push esi
call fcn.00504d2f
pop ecx
xor esi, esi
xor ebx, ebx
test esi, esi
je 0x4a98da
push edi
push esi
call fcn.004a9558
push esi
mov ebx, eax
call fcn.00504d2f
add esp, 0xc
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.00498187
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.0049a808
mov eax, ebx
call fcn.00509213
ret