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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x37c
mov eax, dword [0x6f2220]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x348], ecx
mov ecx, dword [ebp - 0x348]
add ecx, 0x10
call fcn.00479a90
push 0
lea ecx, [ebp - 0x258]
call fcn.00443540
mov eax, dword [ebp - 0x348]
add eax, 0x10
push eax
lea ecx, [ebp - 0x258]
call fcn.00479020
lea ecx, [ebp - 0x258]
call fcn.00479a90
mov dword [ebp - 0x118], 0xffffffff
mov dword [ebp - 0x124], 1
cmp dword [ebp - 0x118], 0xffffffff
jne 0x4788c5
push 0x699f18
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push 0
push 0
push 3
push 0
push 0
push closesocket
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
jne 0x4788c5
jmp 0x478b6c
push 0
mov eax, dword [ebp - 0x118]
push eax
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 - 0x34c], esp
mov ecx, dword [ebp - 0x34c]
mov dword [ebp - 0x120], ecx
push 0
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x124], 0
je 0x47894c
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x120]
push edx
push 0x2f
call fcn.0052e8d0
mov eax, 1
test eax, eax
je 0x478b6c
mov byte [ebp - 0x248], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x247]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x248]
push ecx
push 0x699ecc
mov edx, dword [ebp - 0x120]
push edx
call fcn.0067602d
add esp, 0xc
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x350], eax
mov ecx, dword [ebp - 0x350]
inc ecx
mov dword [ebp - 0x354], ecx
mov edx, dword [ebp - 0x350]
mov al, byte [edx]
mov byte [ebp - 0x355], al
inc dword [ebp - 0x350]
cmp byte [ebp - 0x355], 0
jne 0x4789a6
mov ecx, dword [ebp - 0x350]
sub ecx, dword [ebp - 0x354]
mov dword [ebp - 0x35c], ecx
jne 0x4789dc
jmp 0x478b6c
lea edx, [ebp - 0x248]
mov dword [ebp - 0x360], edx
mov eax, dword [ebp - 0x360]
inc eax
mov dword [ebp - 0x364], eax
mov ecx, dword [ebp - 0x360]
mov dl, byte [ecx]
mov byte [ebp - 0x365], dl
inc dword [ebp - 0x360]
cmp byte [ebp - 0x365], 0
jne 0x4789f5
mov eax, dword [ebp - 0x360]
sub eax, dword [ebp - 0x364]
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x36c]
mov edx, dword [ebp - 0x120]
lea eax, [edx + ecx + 1]
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x140]
call fcn.0041d580
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x2dc], edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2dc]
sub eax, 1
push eax
lea ecx, [ebp - 0x140]
call fcn.004107c0
cmp dword [ebp - 0x128], 0x10
jb 0x478a86
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x2f4], ecx
jmp 0x478a92
lea edx, [ebp - 0x13c]
mov dword [ebp - 0x2f4], edx
push 0
push 0
lea ecx, [ebp - 0x294]
call fcn.0040e130
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x370], eax
mov ecx, dword [ebp - 0x370]
inc ecx
mov dword [ebp - 0x374], ecx
mov edx, dword [ebp - 0x370]
mov al, byte [edx]
mov byte [ebp - 0x375], al
inc dword [ebp - 0x370]
cmp byte [ebp - 0x375], 0
jne 0x478aba
mov ecx, dword [ebp - 0x370]
sub ecx, dword [ebp - 0x374]
mov dword [ebp - 0x37c], ecx
mov edx, dword [ebp - 0x37c]
push edx
mov eax, dword [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x294]
call fcn.004106e0
sub esp, 0x1c
mov ecx, esp
lea edx, [ebp - 0x294]
push edx
push ecx
mov ecx, dword [ebp - 0x348]
call fcn.00478050
lea ecx, [ebp - 0x274]
call fcn.004787d0
lea eax, [ebp - 0x274]
push eax
mov ecx, dword [ebp - 0x348]
add ecx, 0x10
call fcn.00478f10
push 0
push 1
lea ecx, [ebp - 0x274]
call fcn.00479310
push 0
push 1
lea ecx, [ebp - 0x294]
call fcn.0040e130
push 0
push 1
lea ecx, [ebp - 0x140]
call fcn.0040e130
jmp 0x47894c
lea esp, [ebp - 0x380]
mov ecx, dword [ebp - 4]
call fcn.00674e87
pop edi
mov esp, ebp
pop ebp
ret