Function at 0x6588a0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x7d3d3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
push edi
mov edi, ecx
mov edx, ebx
lea ecx, [eax + ebx*2]
add edx, ecx
shl edx, 4
mov ebp, dword [edx + edi + 0x40dc]
lea eax, [edx + edi]
mov dword [esp + 0x54], eax
mov esi, dword [ebp]
cmp esi, ebp
je 0x65892c
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x6588f3
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [esi + 8]
mov ecx, dword [0x9e81f0]
cmp eax, ecx
je 0x65890b
push eax
call fcn.0065c240
add esp, 4
jmp 0x658922
mov eax, dword [esi + 4]
cmp esi, dword [eax + 8]
jne 0x65891d
mov esi, eax
mov eax, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x658913
cmp dword [esi + 8], eax
je 0x658924
mov esi, eax
cmp esi, ebp
jne 0x6588e5
mov eax, dword [esp + 0x54]
lea ebp, [eax + 0x40d8]
mov eax, dword [eax + 0x40dc]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebp
call fcn.0065b870
mov edx, dword [edi + 0x40d0]
mov eax, dword [edi + 0x40d4]
mov ecx, dword [esp + 0x58]
lea ebx, [edx + ebx - 1]
lea ecx, [eax + ecx - 1]
mov dword [esp + 0x18], ebx
test ebx, ebx
mov dword [esp + 0x20], ecx
jl 0x658b4d
mov eax, dword [edi + 0x40c8]
cmp ebx, eax
jge 0x658b4d
test ecx, ecx
jl 0x658b4d
cmp ecx, eax
jge 0x658b4d
imul eax, ecx
mov edx, dword [esp + 0x60]
add eax, ebx
mov eax, dword [edx + eax*4]
test eax, eax
jle 0x658b4d
mov edi, dword [esp + 0x5c]
push 0
push 0
push eax
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push edi
call esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x60], 0
test eax, eax
jle 0x658b4d
jmp 0x6589ed
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x5c]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x24]
push 4
push eax
push edi
call esi
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x2c]
push 4
push edx
push edi
call esi
push 0x50
call fcn.007a2d8d
add esp, 4
mov dword [esp + 0x58], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x4c], esi
je 0x658a30
mov ecx, eax
call fcn.0044fa80
mov esi, eax
mov eax, dword [esi]
push edi
mov ecx, esi
mov dword [esp + 0x50], 0xffffffff
call dword [eax + 0xc]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], esi
lea eax, [ecx + ebx*2]
mov ebx, dword [0x9e81f0]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x20]
lea ecx, [eax + edx*8]
mov edx, dword [esp + 0x24]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp + 4]
shl eax, 2
mov dword [esp + 0x34], eax
mov esi, dword [ecx + 4]
cmp esi, ebx
mov edi, ecx
mov dl, 1
je 0x658a99
mov edx, dword [esi + 0xc]
mov edi, esi
cmp eax, edx
setb dl
test dl, dl
je 0x658a92
mov esi, dword [esi]
jmp 0x658a95
mov esi, dword [esi + 8]
cmp esi, ebx
jne 0x658a80
mov bl, byte [ebp + 8]
test bl, bl
je 0x658ac0
lea eax, [esp + 0x34]
lea ecx, [esp + 0x28]
push eax
push edi
push esi
push ecx
mov ecx, ebp
call fcn.0065bec0
mov edx, dword [eax]
mov byte [esp + 0x40], 1
mov dword [esp + 0x3c], edx
jmp 0x658b38
test dl, dl
mov dword [esp + 0x54], edi
je 0x658af8
cmp edi, dword [ecx]
jne 0x658aeb
lea eax, [esp + 0x58]
lea ecx, [esp + 0x34]
push eax
push ecx
push edi
lea edx, [esp + 0x38]
push esi
push edx
mov ecx, ebp
mov byte [esp + 0x6c], 1
call fcn.0065bec0
jmp 0x658b2e
lea ecx, [esp + 0x54]
call fcn.0065c260
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
cmp dword [ecx + 0xc], eax
jae 0x658b20
lea edx, [esp + 0x58]
lea eax, [esp + 0x34]
push edx
push eax
push edi
lea ecx, [esp + 0x3c]
push esi
push ecx
mov ecx, ebp
mov byte [esp + 0x6c], 1
call fcn.0065bec0
jmp 0x658b2e
lea edx, [esp + 0x58]
mov byte [esp + 0x58], 0
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x44]
call fcn.0042f4d0
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x60], eax
jl 0x6589df
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0x10