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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x20c], 0
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x240], edi
test esi, esi
je 0x488e05
cmp esi, 0xffffffff
je 0x488e05
test edi, edi
je 0x488e05
mov edx, dword [ebp + 0x2c]
mov eax, edx
shr eax, 0x10
test ax, ax
jne 0x488ccf
test dx, dx
jne 0x488ccf
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
mov ecx, eax
mov dword [ebp - 0x254], 0
movzx eax, dx
add ecx, eax
test ecx, ecx
jle 0x488cbc
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add eax, 0x10
mov dword [ebp - 0x24c], eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x24c]
cmp ecx, eax
ja 0x489089
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x489089
push 0
lea eax, [ebp - 0x20c]
push eax
push 8
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
neg eax
je 0x489089
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
push ecx
push 0x10
test eax, eax
jns 0x488e19
and eax, 0x7fffffff
lea ecx, [ebp - 0x22c]
add eax, dword [ebp + 0x10]
push ecx
mov edx, eax
mov ecx, esi
call fcn.0048e730
add esp, 0xc
test eax, eax
je 0x489089
movdqu xmm0, xmmword [ebp + 0x30]
mov ecx, dword [ebp + 0x10]
sub esp, 0x28
mov edx, dword [ebp + 8]
mov eax, esp
sub esp, 0x10
movdqu xmmword [eax], xmm0
movdqu xmm0, xmmword [ebp + 0x40]
movdqu xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp + 0x50]
movq qword [eax + 0x20], xmm0
mov eax, esp
movdqu xmm0, xmmword [ebp - 0x22c]
movdqu xmmword [eax], xmm0
mov eax, dword [ebp - 0x210]
and eax, 0x7fffffff
add eax, ecx
test edx, edx
jne 0x488ddd
push edx
movzx edx, word [ebp - 0x214]
push edi
push eax
push ecx
push dword [ebp + 0xc]
push 1
jmp 0x488df3
push dword [ebp - 0x214]
push edi
push eax
push ecx
push dword [ebp + 0xc]
lea eax, [edx + 1]
mov edx, dword [ebp - 0x248]
push eax
mov ecx, esi
call fcn.00488c60
add esp, 0x50
test eax, eax
je 0x48902c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, esi
lea edx, [eax + edx]
call fcn.0048e730
add esp, 0xc
test eax, eax
je 0x489089
push 0x100
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x488e05
mov edx, dword [ebp - 0x23c]
lea eax, [ebp - 0x20c]
sub edx, dword [ebp + 0x3c]
mov ecx, esi
add edx, dword [ebp + 0x44]
push eax
push 0x100
push edi
call fcn.0048e730
add esp, 0xc
test eax, eax
je 0x4890d7
push 0x100
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x244], eax
test eax, eax
je 0x488e05
mov eax, dword [0x6119bc]
mov ecx, eax
mov edx, dword [ebp - 0x248]
inc eax
mov dword [0x6119bc], eax
lea eax, [ebp - 0x244]
push eax
push edi
call fcn.00488a70
add eax, 0xfffffffe
add esp, 8
cmp eax, 0x26
ja case.0x488ecd.4
movzx eax, byte [eax + 0x489118]
jmp dword [eax*4 + 0x4890fc]
mov eax, dword [ebp - 0x240]
inc dword [eax + 8]
jmp 0x488f13
mov eax, dword [ebp - 0x240]
inc dword [eax + 0x10]
jmp 0x488f13
mov eax, dword [ebp - 0x240]
inc dword [eax + 0x14]
jmp 0x488f13
mov eax, dword [ebp - 0x240]
inc dword [eax + 4]
jmp 0x488f13
mov eax, dword [ebp - 0x240]
inc dword [eax + 0xc]
jmp 0x488f13
mov eax, dword [ebp - 0x240]
inc dword [eax]
mov eax, dword [ebp + 0x1c]
test eax, 0xf0000000
je 0x488fee
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.00540250
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x20c]
add esp, 0xc
and eax, 0xfffffff
add eax, dword [ebp + 0x10]
mov edx, eax
mov dword [ebp - 0x250], eax
push ecx
lea ecx, [ebp - 0x218]
push 4
push ecx
mov ecx, esi
call fcn.0048e730
add esp, 0xc
test eax, eax
je 0x4890a0
mov edx, dword [ebp - 0x250]
lea eax, [ebp - 0x20c]
push eax
movzx eax, word [ebp - 0x218]
add edx, 2
add eax, eax
mov ecx, esi
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0048e730
add esp, 0xc
test eax, eax
je 0x489069
push 0x100
lea eax, [ebp - 0x208]
mov dword [ebp - 0x21c], 0
push eax
push 0x100
push dword [ebp - 0x244]
lea eax, [ebp - 0x21c]
push eax
call fcn.00556034
mov edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x244]
add esp, 0x14
push edi
call fcn.00488950
add esp, 4
jmp 0x489006
mov edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x244]
push ecx
push edi
mov ecx, eax
call fcn.00488a70
add esp, 8
push edi
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
mov eax, dword [ebp - 0x244]
test eax, eax
je case.0x488ecd.4
push eax
push 0
call ebx
push eax
call edi
mov edi, dword [ebp - 0x240]
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebp - 0x254]
add dword [ebp - 0x24c], 8
inc edx
movzx ecx, ax
mov eax, dword [ebp + 0x2e]
movzx eax, ax
add ecx, eax
mov dword [ebp - 0x254], edx
cmp edx, ecx
jl 0x488cf6
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
push edi
push 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x489089
push eax
push 0
call ebx
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
push edi
push 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x4890c0
push eax
push 0
call ebx
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053cd12
mov esp, ebp
pop ebp
ret