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

Disassembly:
push 0x738
mov eax, 0x534cbf
call fcn.00505804
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.00496a34
xor ebx, ebx
lea ecx, [ebp - 0x508]
push ebx
push ebx
push esi
mov dword [ebp - 4], ebx
call fcn.0049b365
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004946ff
mov byte [ebp - 4], 1
mov esi, ebx
mov edi, ebx
call fcn.004983b6
push eax
lea ecx, [ebp - 0x94]
call fcn.004946ff
mov byte [ebp - 4], 2
call fcn.004983c2
mov ecx, eax
call fcn.00494fd7
test al, al
je 0x4c135f
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0049496f
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0049492b
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4c1310
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00494827
jmp 0x4c14d9
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4c12fc
and dword [ebp - 0x744], 0
push edi
call fcn.004e9741
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 0x4c14c6
push esi
call fcn.005012cf
pop ecx
xor esi, esi
jmp 0x4c12fc
call fcn.004983c2
push eax
lea ecx, [ebp - 0x94]
call fcn.0049496f
call fcn.0049862a
test al, al
je 0x4c1382
call fcn.004983c8
mov ebx, eax
jmp 0x4c13e7
call fcn.004983ce
push eax
lea ecx, [ebp - 0x220]
call fcn.004946ff
push ebx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0049492b
push eax
call fcn.0049d5a5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x73c], eax
call fcn.0049492b
push eax
call fcn.004b5167
mov ebx, eax
mov eax, dword [ebp - 0x73c]
pop ecx
pop ecx
test eax, eax
je 0x4c13d8
push eax
call fcn.005012cf
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.00494827
test ebx, ebx
je 0x4c12fc
and dword [ebp - 0x740], 0
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x118]
call fcn.004946ff
push 0x537e08
push 0x537e0c
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.004951a1
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x740]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0049492b
push eax
push ebx
call fcn.004b4b3e
add esp, 0x14
test eax, eax
je 0x4c145e
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00494827
jmp 0x4c12fc
mov edi, dword [ebp - 0x50c]
test edi, edi
je 0x4c144a
push edi
call fcn.004e9741
push edi
mov esi, eax
push esi
push dword [ebp - 0x740]
push ebx
call fcn.004b559e
add esp, 0x14
test eax, eax
je 0x4c14a7
cmp eax, 0x600
je 0x4c14a7
push esi
call fcn.005012cf
pop ecx
xor esi, esi
call fcn.0049862a
test al, al
jne 0x4c144a
push ebx
call fcn.004b4926
pop ecx
jmp 0x4c144a
call fcn.0049862a
test al, al
jne 0x4c14b7
push ebx
call fcn.004b4926
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00494827
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00494827
test esi, esi
jne 0x4c154d
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x19c]
call fcn.0049492b
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c154d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4c154d
and dword [ebp - 0x73c], 0
push edi
call fcn.004e9741
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 0x4c154d
push esi
call fcn.005012cf
pop ecx
xor esi, esi
xor ebx, ebx
test esi, esi
je 0x4c1565
push edi
push esi
call fcn.004c11e3
push esi
mov ebx, eax
call fcn.005012cf
add esp, 0xc
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.00494827
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.00496eb0
mov eax, ebx
call fcn.005057b3
ret