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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
mov eax, dword [0x6f2220]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x118], 0xffffffff
mov dword [ebp - 0x124], 1
mov dword [ebp - 0x340], 0x692978
xor eax, eax
shl eax, 6
add eax, 0x7e0d70
mov dword [ebp - 0x344], eax
mov ecx, dword [ebp - 0x344]
mov dword [ebp - 0x348], ecx
mov edx, dword [ebp - 0x340]
mov al, byte [edx]
mov byte [ebp - 0x349], al
mov ecx, dword [ebp - 0x344]
mov dl, byte [ebp - 0x349]
mov byte [ecx], dl
mov eax, dword [ebp - 0x340]
add eax, 1
mov dword [ebp - 0x340], eax
mov ecx, dword [ebp - 0x344]
add ecx, 1
mov dword [ebp - 0x344], ecx
cmp byte [ebp - 0x349], 0
jne 0x4c852c
cmp dword [ebp - 0x118], 0xffffffff
jne 0x4c85bd
push 0x6a1de0
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push 0
push 0
push 3
push 0
push 0
push closesocket
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
jne 0x4c85bd
jmp 0x4c8834
push 0
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
add eax, 3
and eax, 0xfffffffc
call fcn.00676300
mov dword [ebp - 0x350], esp
mov edx, dword [ebp - 0x350]
mov dword [ebp - 0x120], edx
push 0
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x124], 0
je 0x4c8644
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x120]
push eax
push 0x2f
call fcn.0052e8d0
mov ecx, 1
test ecx, ecx
je 0x4c8834
mov byte [ebp - 0x338], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x337]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x230], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x338]
push edx
push 0x699ecc
mov eax, dword [ebp - 0x120]
push eax
call fcn.0067602d
add esp, 0xc
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x354], ecx
mov edx, dword [ebp - 0x354]
inc edx
mov dword [ebp - 0x358], edx
mov eax, dword [ebp - 0x354]
mov cl, byte [eax]
mov byte [ebp - 0x359], cl
inc dword [ebp - 0x354]
cmp byte [ebp - 0x359], 0
jne 0x4c86b7
mov edx, dword [ebp - 0x354]
sub edx, dword [ebp - 0x358]
mov dword [ebp - 0x360], edx
jne 0x4c86ed
jmp 0x4c8834
lea eax, [ebp - 0x338]
mov dword [ebp - 0x364], eax
mov ecx, dword [ebp - 0x364]
inc ecx
mov dword [ebp - 0x368], ecx
mov edx, dword [ebp - 0x364]
mov al, byte [edx]
mov byte [ebp - 0x369], al
inc dword [ebp - 0x364]
cmp byte [ebp - 0x369], 0
jne 0x4c8706
mov ecx, dword [ebp - 0x364]
sub ecx, dword [ebp - 0x368]
mov dword [ebp - 0x370], ecx
mov edx, dword [ebp - 0x370]
mov eax, dword [ebp - 0x120]
lea ecx, [eax + edx + 1]
mov dword [ebp - 0x120], ecx
push 0xf
push 0x6a1dd0
lea edx, [ebp - 0x338]
push edx
call fcn.006757a0
add esp, 0xc
test eax, eax
jne 0x4c878a
push 0x70f380
lea eax, [ebp - 0x230]
push eax
push 0x6a1dc8
lea ecx, [ebp - 0x338]
push ecx
call fcn.0067602d
add esp, 0x10
jmp 0x4c882f
push 1
push 0x699cd8
lea edx, [ebp - 0x338]
push edx
call fcn.006757a0
add esp, 0xc
test eax, eax
jne 0x4c882f
movzx eax, byte [0x70f380]
test eax, eax
je 0x4c882f
lea ecx, [ebp - 0x338]
mov dword [ebp - 0x374], ecx
mov edx, dword [ebp - 0x374]
inc edx
mov dword [ebp - 0x378], edx
mov eax, dword [ebp - 0x374]
mov cl, byte [eax]
mov byte [ebp - 0x379], cl
inc dword [ebp - 0x374]
cmp byte [ebp - 0x379], 0
jne 0x4c87cc
mov edx, dword [ebp - 0x374]
sub edx, dword [ebp - 0x378]
mov dword [ebp - 0x380], edx
je 0x4c882f
lea eax, [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x230]
push ecx
push 0x6a1dc0
lea edx, [ebp - 0x338]
push edx
call fcn.0067602d
add esp, 0x10
mov eax, dword [0x70f37c]
or eax, dword [ebp - 0x33c]
mov dword [0x70f37c], eax
jmp 0x4c8644
lea esp, [ebp - 0x384]
mov ecx, dword [ebp - 4]
call fcn.00674e87
pop edi
mov esp, ebp
pop ebp
ret