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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8e03
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x6c], edi
xorps xmm0, xmm0
mov dword [ebp - 0x68], edi
movdqu xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], vtable.CFile.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea esi, [edi + 0x54]
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x48], esi
call dword [eax + 4]
mov byte [ebp - 4], 1
cmp dword [edi + 0x14], 0x10
jb 0x4c87ad
mov edi, dword [edi]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x4c87ff
mov dword [ebp - 0x20], 0
mov ecx, esi
mov byte [ebp - 4], 0
mov eax, dword [esi]
call dword [eax + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.CFile.0
call dword [0x530444]
xor eax, eax
jmp 0x4c8a2d
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call edi
inc eax
push eax
call fcn.004d9ce4
add esp, 4
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
call edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
call edi
push 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
call edi
mov edi, dword [ebp - 0x64]
lea ecx, [ebp - 0x24]
mov byte [eax + edi], 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
call dword [eax + 0xc]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 1
cmp byte [edi], 0
jne 0x4c8896
xor ecx, ecx
jmp 0x4c88a9
mov ecx, edi
lea edx, [ecx + 1]
jmp 0x4c88a0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c88a0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x44]
call fcn.004270f0
push 0x5c
mov byte [ebp - 4], 3
call fcn.004d9d79
mov edi, eax
add esp, 4
mov dword [ebp - 0x70], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x4c88eb
push 0x5c
push 0
push edi
call fcn.004dc9b0
add esp, 0xc
mov ecx, edi
push 0
push 0x529344
call fcn.004cafd0
jmp 0x4c88ed
xor eax, eax
mov edi, dword [ebp - 0x6c]
mov ecx, edi
mov byte [ebp - 4], 5
mov dword [edi + 0x48], eax
lea eax, [ebp - 0x44]
push eax
call fcn.004c9be0
push dword [edi + 0x48]
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.004ca0f0
mov dword [ebp - 4], 3
mov edi, 1
jmp 0x4c89c2
push dword [ebp - 0x64]
call fcn.004da594
add esp, 4
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
mov byte [eax], 0
cmp dword [ebp - 0x30], 0x10
jb 0x4c89f3
push dword [ebp - 0x44]
call fcn.004d9d65
add esp, 4
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [esi]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call dword [edx + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.CFile.0
call dword [0x530444]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret