Function at 0x657590
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x7d3d1e
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
push 0
mov ebp, ecx
push 0x831418
call fcn.00763ab0
mov esi, dword [esp + 0xc4]
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
add esp, 8
lea eax, [esp + 0x1c]
lea edi, [ebp + 0x4188]
push 0
push eax
push 4
push edi
push esi
call ebx
mov edi, dword [edi]
test edi, edi
je 0x657800
lea ecx, [edi + edi*4]
shl ecx, 4
add ecx, 4
push ecx
call fcn.007a2d8d
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0xb4], 0
je 0x657631
push fcn.0044faf0
mov dword [eax], edi
push fcn.0044fa80
add eax, 4
push edi
push 0x50
push eax
mov dword [esp + 0x38], eax
call fcn.007a3333
mov eax, dword [esp + 0x24]
jmp 0x657633
xor eax, eax
mov dword [esp + 0xb4], 0xffffffff
lea edx, [esp + 0x1c]
mov dword [ebp + 0x418c], eax
push 0
push edx
lea eax, [esp + 0x1c]
push 4
push eax
push esi
call ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x657800
lea ecx, [eax*4]
push ecx
call fcn.007a2d8d
mov ecx, dword [esp + 0x18]
add esp, 4
xor edi, edi
mov dword [esp + 0x20], eax
test ecx, ecx
jle 0x6576ba
mov dword [esp + 0x10], eax
push 0x104
call fcn.007a2d8d
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0x104
push eax
push esi
mov dword [edx], eax
call ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc edi
add ecx, 4
cmp edi, eax
mov dword [esp + 0x10], ecx
jl 0x657683
mov eax, dword [ebp + 0x4188]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x24], edi
jle 0x6577c8
mov dword [esp + 0x10], 0x64
jmp 0x6576e5
mov esi, dword [esp + 0xbc]
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
lea edx, [esp + 0x1c]
push 0
push edx
lea eax, [esp + 0x32]
push 2
push eax
push esi
call ebx
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x22]
push 2
push edx
push esi
call ebx
movsx eax, word [esp + 0x2a]
mov ecx, dword [esp + 0x20]
push 0
push 0x80
push 3
mov edx, dword [ecx + eax*4]
push 0
push 0
push SysReAllocString
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
xor ebx, ebx
mov esi, eax
cmp word [esp + 0x1a], bx
jle 0x657751
mov eax, dword [ebp + 0x418c]
mov ecx, edi
push esi
add ecx, eax
call fcn.004509e0
movsx eax, word [esp + 0x1a]
inc ebx
cmp ebx, eax
jl 0x657737
mov ecx, dword [ebp + 0x418c]
mov edx, dword [0x8b16a4]
push esi
mov dword [edi + ecx + 0x28], edx
mov eax, dword [ebp + 0x418c]
mov edx, dword [edi + eax]
lea ecx, [edi + eax]
call dword [edx + 0xc]
mov eax, dword [esp + 0x10]
cdq
idiv dword [ebp + 0x4188]
mov ebx, eax
lea eax, [esp + 0x2c]
push ebx
push 0x8313f4
push eax
call fcn.007a3155
lea ecx, [esp + 0x38]
push ebx
push ecx
call fcn.00763ab0
add esp, 0x14
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x4188]
inc eax
add esi, 0x64
add edi, 0x50
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], esi
jl 0x6576d8
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
jle 0x6577f3
mov esi, dword [esp + 0x20]
mov edx, dword [esi]
push edx
call fcn.007a02e0
add esp, 4
mov dword [esi], 0
mov eax, dword [esp + 0x14]
inc edi
add esi, 4
cmp edi, eax
jl 0x6577d6
mov eax, dword [esp + 0x20]
push eax
call fcn.007a02e0
add esp, 4
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 4