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

Disassembly:
push 0x738
mov eax, 0x53554a
call fcn.00506ba4
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.004986fc
xor ebx, ebx
lea ecx, [ebp - 0x508]
push ebx
push ebx
push esi
mov dword [ebp - 4], ebx
call fcn.0049d026
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004963cf
mov byte [ebp - 4], 1
mov esi, ebx
mov edi, ebx
call fcn.0049a077
push eax
lea ecx, [ebp - 0x94]
call fcn.004963cf
mov byte [ebp - 4], 2
call fcn.0049a083
mov ecx, eax
call fcn.00496c9f
test al, al
je 0x4a7a55
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0049663c
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00496aee
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a7a06
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.004964f7
jmp 0x4a7bcf
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4a79f2
and dword [ebp - 0x744], 0
push edi
call fcn.004eaf82
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 0x4a7bbc
push esi
call fcn.0050266f
pop ecx
xor esi, esi
jmp 0x4a79f2
call fcn.0049a083
push eax
lea ecx, [ebp - 0x94]
call fcn.0049663c
call fcn.0049a2eb
test al, al
je 0x4a7a78
call fcn.0049a089
mov ebx, eax
jmp 0x4a7add
call fcn.0049a08f
push eax
lea ecx, [ebp - 0x220]
call fcn.004963cf
push ebx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00496aee
push eax
call fcn.004c75c5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x73c], eax
call fcn.00496aee
push eax
call fcn.004c96a3
mov ebx, eax
mov eax, dword [ebp - 0x73c]
pop ecx
pop ecx
test eax, eax
je 0x4a7ace
push eax
call fcn.0050266f
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.004964f7
test ebx, ebx
je 0x4a79f2
and dword [ebp - 0x740], 0
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x118]
call fcn.004963cf
push 0x539de4
push 0x539de8
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.00496e69
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x740]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00496aee
push eax
push ebx
call fcn.004c907a
add esp, 0x14
test eax, eax
je 0x4a7b54
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.004964f7
jmp 0x4a79f2
mov edi, dword [ebp - 0x50c]
test edi, edi
je 0x4a7b40
push edi
call fcn.004eaf82
push edi
mov esi, eax
push esi
push dword [ebp - 0x740]
push ebx
call fcn.004c9ada
add esp, 0x14
test eax, eax
je 0x4a7b9d
cmp eax, 0x600
je 0x4a7b9d
push esi
call fcn.0050266f
pop ecx
xor esi, esi
call fcn.0049a2eb
test al, al
jne 0x4a7b40
push ebx
call fcn.004c8e62
pop ecx
jmp 0x4a7b40
call fcn.0049a2eb
test al, al
jne 0x4a7bad
push ebx
call fcn.004c8e62
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.004964f7
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.004964f7
test esi, esi
jne 0x4a7c43
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x19c]
call fcn.00496aee
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a7c43
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4a7c43
and dword [ebp - 0x73c], 0
push edi
call fcn.004eaf82
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 0x4a7c43
push esi
call fcn.0050266f
pop ecx
xor esi, esi
xor ebx, ebx
test esi, esi
je 0x4a7c5b
push edi
push esi
call fcn.004a78d9
push esi
mov ebx, eax
call fcn.0050266f
add esp, 0xc
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.004964f7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.00498b78
mov eax, ebx
call fcn.00506b53
ret