Function at 0x478410
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]
call fcn.00479a90
push 0
lea ecx, [ebp - 0x258]
call fcn.00443540
mov eax, dword [ebp - 0x348]
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 0x47850f
call fcn.004b13e0
cmp eax, 1
jne 0x47849f
push 0x699f04
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
jmp 0x4784df
call fcn.004b13e0
cmp eax, 2
jne 0x4784c0
push 0x699eec
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
jmp 0x4784df
call fcn.004b13e0
cmp eax, 3
jne 0x4784df
push 0x699ed4
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push 0
push 0
push 3
push 0
push 0
push closesocket
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
jne 0x47850f
jmp 0x4787b3
push 0
mov edx, dword [ebp - 0x118]
push edx
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 eax, dword [ebp - 0x34c]
mov dword [ebp - 0x120], eax
push 0
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x124], 0
je 0x478596
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
push 0x2f
call fcn.0052e8d0
mov edx, 1
test edx, edx
je 0x4787b3
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 eax, [ebp - 0x248]
push eax
push 0x699ecc
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.0067602d
add esp, 0xc
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x350], edx
mov eax, dword [ebp - 0x350]
inc eax
mov dword [ebp - 0x354], eax
mov ecx, dword [ebp - 0x350]
mov dl, byte [ecx]
mov byte [ebp - 0x355], dl
inc dword [ebp - 0x350]
cmp byte [ebp - 0x355], 0
jne 0x4785f0
mov eax, dword [ebp - 0x350]
sub eax, dword [ebp - 0x354]
mov dword [ebp - 0x35c], eax
jne 0x478626
jmp 0x4787b3
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x360], ecx
mov edx, dword [ebp - 0x360]
inc edx
mov dword [ebp - 0x364], edx
mov eax, dword [ebp - 0x360]
mov cl, byte [eax]
mov byte [ebp - 0x365], cl
inc dword [ebp - 0x360]
cmp byte [ebp - 0x365], 0
jne 0x47863f
mov edx, dword [ebp - 0x360]
sub edx, dword [ebp - 0x364]
mov dword [ebp - 0x36c], edx
mov eax, dword [ebp - 0x36c]
mov ecx, dword [ebp - 0x120]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x120], edx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x140]
call fcn.0041d580
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x2dc], ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x2dc]
sub edx, 1
push edx
lea ecx, [ebp - 0x140]
call fcn.004107c0
cmp dword [ebp - 0x128], 0x10
jb 0x4786d0
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x2f4], eax
jmp 0x4786dc
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x2f4], ecx
push 0
push 0
lea ecx, [ebp - 0x294]
call fcn.0040e130
mov edx, dword [ebp - 0x2f4]
mov dword [ebp - 0x370], edx
mov eax, dword [ebp - 0x370]
inc eax
mov dword [ebp - 0x374], eax
mov ecx, dword [ebp - 0x370]
mov dl, byte [ecx]
mov byte [ebp - 0x375], dl
inc dword [ebp - 0x370]
cmp byte [ebp - 0x375], 0
jne 0x478704
mov eax, dword [ebp - 0x370]
sub eax, dword [ebp - 0x374]
mov dword [ebp - 0x37c], eax
mov ecx, dword [ebp - 0x37c]
push ecx
mov edx, dword [ebp - 0x2f4]
push edx
lea ecx, [ebp - 0x294]
call fcn.004106e0
sub esp, 0x1c
mov eax, esp
lea ecx, [ebp - 0x294]
push ecx
push eax
mov ecx, dword [ebp - 0x348]
call fcn.00478050
lea ecx, [ebp - 0x274]
call fcn.004787d0
lea edx, [ebp - 0x274]
push edx
mov ecx, dword [ebp - 0x348]
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 0x478596
lea esp, [ebp - 0x380]
mov ecx, dword [ebp - 4]
call fcn.00674e87
pop edi
mov esp, ebp
pop ebp
ret