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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b9af8
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x655e0c
mov eax, dword [eax]
sub esp, 0xc
lea ecx, [ebp - 0x34]
push 3
push 1
push SysReAllocString
push eax
call fcn.00415b70
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x34]
test eax, eax
jne 0x656075
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x28]
push 0
push eax
push 8
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x28], 0
push eax
push esi
call ebx
test eax, eax
jne 0x655e57
call fcn.00415b30
cmp dword [ebp - 0x5c], 0x53534e53
je 0x655e6a
cmp dword [ebp - 0x58], 1
jne 0x65606c
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x655e9d
call fcn.00415b30
test eax, eax
js 0x655f0c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x28], ecx
mov edi, 8
test ecx, ecx
jb 0x656066
ja 0x655ec0
cmp eax, edi
jbe 0x656066
nop word [eax + eax]
push 0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x20], 0
push eax
push edi
push esi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x655ee9
call fcn.00415b30
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
jne 0x655f1a
call fcn.00415b30
test eax, eax
jmp 0x655f1e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x8c], eax
jmp 0x655ea0
cmp dword [ebp - 0x18], 2
jne 0x656066
cmp word [ebp - 0x20], 0
je 0x656066
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 5
lea eax, [ebp - 0x54]
push eax
push esi
call ebx
test eax, eax
jne 0x655f4e
call fcn.00415b30
movzx eax, word [ebp - 0x20]
add eax, 2
add edi, eax
cmp byte [ebp - 0x54], 6
jne 0x65604d
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 8
lea eax, [ebp - 0x84]
push eax
push esi
call ebx
test eax, eax
jne 0x655f87
call fcn.00415b30
test eax, eax
jmp 0x655f8b
cmp dword [ebp - 0x18], 8
jne 0x65604d
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x88], 0
push eax
push 4
lea eax, [ebp - 0x88]
mov dword [ebp - 0x18], 0
push eax
push esi
call ebx
test eax, eax
jne 0x655fbd
call fcn.00415b30
mov ecx, dword [ebp - 0x88]
test ecx, ecx
je 0x65604d
movzx eax, word [ebp - 0x20]
cmp ecx, eax
jae 0x65604d
push 0
push ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
call fcn.0041b2e0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0x10
lea ecx, [ebp - 0x34]
push dword [ebp - 0x88]
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.0063b480
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004057b0
add esp, 8
mov byte [ebp - 4], 2
call fcn.00451ae0
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, eax
call fcn.0058b550
test al, al
jne 0x65609e
lea ecx, [ebp - 0x7c]
call fcn.00404490
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.00407a10
mov esi, dword [ebp - 0x34]
xor eax, eax
cmp eax, dword [ebp - 0x28]
ja 0x656066
jb 0x655ec0
cmp edi, dword [ebp - 0x8c]
jb 0x655ec0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x656075
push esi
call edi
xor esi, esi
xor bl, bl
test esi, esi
je 0x65607e
push esi
call edi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x90]
lea eax, [ebp - 0x7c]
lea esi, [edi + 4]
cmp esi, eax
je 0x6560c1
cmp dword [ebp - 0x68], 8
mov ecx, esi
push dword [ebp - 0x6c]
cmovae eax, dword [ebp - 0x7c]
push eax
call fcn.004044f0
lea ecx, [edi + 0x1c]
cmp ecx, esi
je 0x6560da
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x6560d3
mov esi, dword [esi]
push eax
push esi
call fcn.004044f0
mov esi, dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x6560ec
push esi
call edi
xor esi, esi
lea ecx, [ebp - 0x7c]
call fcn.00404490
lea ecx, [ebp - 0x4c]
call fcn.00407a10
mov bl, 1
jmp 0x656077