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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3d60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
cmp eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], esi
jne 0x4c8935
lea ecx, [ebp - 0x168]
call fcn.004d3c2b
push 0xff
lea eax, [ebp - 0x15c]
push 0x614348
push eax
mov dword [ebp - 0x168], 0x5f4dbc
call fcn.004d27f0
add esp, 0xc
lea ecx, [ebp - 0x168]
mov byte [ebp - 0x5e], 0
push 0x600808
push ecx
call fcn.004d3d02
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x4c8996
lea ecx, [ebp - 0x274]
call fcn.004d3c2b
push 0xff
lea edx, [ebp - 0x268]
push 0x614354
push edx
mov dword [ebp - 0x274], 0x5f4dbc
call fcn.004d27f0
add esp, 0xc
lea eax, [ebp - 0x274]
mov byte [ebp - 0x16a], 0
push 0x600808
push eax
call fcn.004d3d02
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
push ecx
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.004e32aa
add esp, 4
lea edx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edi
push edi
push edx
push ebx
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esi + 0x814], edi
je 0x4c8a0f
mov ecx, dword [esi + 0x81c]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esi + 0x818]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x81c], edi
mov dword [esi + 0x818], edi
mov dword [esi + 0x814], edi
jmp 0x4c8a1f
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4c8a22
push eax
call fcn.004d28ee
add esp, 4
mov dword [esi + 4], edi
mov ecx, esi
call fcn.004c8d80
cmp ebx, 0x36
jae 0x4c8a4f
push 0x6142a4
lea ecx, [ebp - 0x380]
call fcn.004c76c0
lea ecx, [ebp - 0x380]
push 0x600808
push ecx
call fcn.004d3d02
mov esi, dword [ebp - 0x14]
mov dword [ebp + 8], edi
cmp word [esi], 0x4d42
je 0x4c8a7d
push 0x6142a4
lea ecx, [ebp - 0x48c]
call fcn.004c76c0
lea edx, [ebp - 0x48c]
push 0x600808
push edx
call fcn.004d3d02
cmp dword [esi + 2], ebx
ja 0x4c8be4
mov eax, dword [esi + 0xe]
add esi, 0xe
cmp eax, 0x28
je 0x4c8ae1
cmp eax, 0xc
jne 0x4c8be4
mov eax, esi
xor ecx, ecx
xor edx, edx
mov dword [ebp + 8], 1
mov cx, word [eax + 4]
mov dx, word [eax + 6]
mov dword [ebp - 0x58], ecx
mov cx, word [eax + 8]
mov dword [ebp - 0x54], edx
mov dx, word [eax + 0xa]
lea esi, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x28
mov word [ebp - 0x50], cx
mov word [ebp - 0x4e], dx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
push esi
call fcn.004c8cc0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], eax
add esp, 4
shl eax, 2
neg ecx
sbb ecx, ecx
mov dword [ebp - 0x1c], eax
and ecx, 0xffffffe4
add ecx, 0x28
lea edx, [ecx + eax + 0xa]
cmp ebx, edx
jb 0x4c8be4
mov ecx, dword [ebp - 0x14]
sub ebx, dword [ecx + 0xa]
cmp ebx, edi
mov dword [ebp - 0x20], ebx
jle 0x4c8be4
lea eax, [eax + ebx + 0x28]
push eax
mov dword [ebp - 0x30], eax
call fcn.004d29d7
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x4c8be4
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov ecx, 0xa
mov edi, ebx
test eax, eax
rep movsd dword es:[edi], dword [esi]
jne 0x4c8b78
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov edx, ecx
lea edi, [ebx + 0x28]
lea esi, [eax + 0x36]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4c8bb3
mov ecx, dword [ebp - 0x14]
lea eax, [ebx + 0x28]
xor edi, edi
lea esi, [ecx + 0x1a]
cmp edi, dword [ebp - 0x24]
jge 0x4c8bb0
mov edx, esi
add esi, 3
add eax, 4
inc edi
mov cx, word [edx]
mov word [ebp + 8], cx
mov cl, byte [edx + 2]
mov dl, byte [ebp + 8]
mov byte [eax - 4], dl
mov dl, byte [ebp + 9]
mov byte [eax - 3], dl
mov byte [eax - 2], cl
mov byte [eax - 1], 0
jmp 0x4c8b83
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [eax + 0xa]
add esi, eax
lea edi, [ecx + ebx + 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4c8c05
test ebx, ebx
je 0x4c8be4
push ebx
call fcn.004d28ee
add esp, 4
push 0x6142a4
lea ecx, [ebp - 0x598]
call fcn.004c76c0
lea eax, [ebp - 0x598]
push 0x600808
push eax
call fcn.004d3d02
mov esi, dword [ebp - 0x34]
mov eax, dword [esi + 4]
test eax, eax
je 0x4c8c18
push eax
call fcn.004d28ee
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [esi + 4], ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
push edx
call fcn.004e32d3
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4