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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b83c8
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x82f184]
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 0x6550cc
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 0x655335
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 0x655117
call fcn.00415b30
cmp dword [ebp - 0x5c], 0x53534e53
je 0x65512a
cmp dword [ebp - 0x58], 1
jne 0x65532c
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 0x65515d
call fcn.00415b30
test eax, eax
js 0x6551cc
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 0x655326
ja 0x655180
cmp eax, edi
jbe 0x655326
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 0x6551a9
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 0x6551da
call fcn.00415b30
test eax, eax
jmp 0x6551de
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x8c], eax
jmp 0x655160
cmp dword [ebp - 0x18], 2
jne 0x655326
cmp word [ebp - 0x20], 0
je 0x655326
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 0x65520e
call fcn.00415b30
movzx eax, word [ebp - 0x20]
add eax, 2
add edi, eax
cmp byte [ebp - 0x54], 6
jne 0x65530d
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 0x655247
call fcn.00415b30
test eax, eax
jmp 0x65524b
cmp dword [ebp - 0x18], 8
jne 0x65530d
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 0x65527d
call fcn.00415b30
mov ecx, dword [ebp - 0x88]
test ecx, ecx
je 0x65530d
movzx eax, word [ebp - 0x20]
cmp ecx, eax
jae 0x65530d
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.0063a760
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.00451010
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, eax
call fcn.0058a560
test al, al
jne 0x65535e
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 0x655326
jb 0x655180
cmp edi, dword [ebp - 0x8c]
jb 0x655180
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x655335
push esi
call edi
xor esi, esi
xor bl, bl
test esi, esi
je 0x65533e
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.0076d59e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x90]
lea eax, [ebp - 0x7c]
lea esi, [edi + 4]
cmp esi, eax
je 0x655381
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 0x65539a
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x655393
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 0x6553ac
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 0x655337