Function at 0x6576a3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x44]
add ecx, 0x120
call fcn.00661adf
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x120
call fcn.00661990
test eax, eax
je 0x6576ee
mov ecx, dword [ebp - 0x44]
add ecx, 0x120
call fcn.006619a1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
call fcn.0067cb73
add esp, 4
jmp 0x6576bd
push 0
push 0x80
push 4
push 0
push 0
push SysReAllocStringLen
mov ecx, dword [ebp - 0x44]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x65771b
jmp 0x6578d5
mov word [ebp - 0x1c], 0
push 2
push 0
push 0xfffffffffffffffe
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x28]
push eax
push 2
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], 0
push 0x14
push 0
lea ecx, [ebp - 0x18]
push ecx
call fcn.00642ec0
add esp, 0xc
push 0x14
mov edx, dword [ebp - 0x44]
add edx, 0x108
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00642a60
add esp, 0xc
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x11c]
push edx
push 0x14
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x44]
call fcn.00657193
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x11c]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x44]
call fcn.00658340
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
mov dx, word [ebp - 0x1c]
sub dx, 1
mov word [ebp - 0x1c], dx
test ecx, ecx
je 0x6578cb
push 0
lea eax, [ebp - 0x28]
push eax
push 4
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
push eax
push 4
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.00657193
push 1
push 0
push 0xfffffffffffffffc
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x18
je 0x657879
cmp dword [ebp - 0x48], 0x2c
je 0x65782a
jmp 0x6578c6
push 0x2c
call fcn.0067cb4a
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], ecx
push 0
lea edx, [ebp - 0x28]
push edx
push 0x2c
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 4]
push edx
push 0x2c
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x44]
call fcn.00657193
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x44]
add ecx, 0x120
call fcn.00661afd
jmp 0x6578c6
push 0x18
call fcn.0067cb4a
add esp, 4
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x34], edx
push 0
lea eax, [ebp - 0x28]
push eax
push 0x18
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
push eax
push 0x18
mov ecx, dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.00657193
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 0x120
call fcn.00661afd
jmp 0x6577be
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret