Function at 0x10007667
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x124
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 4], 0xffffffff
jne 0x1000769a
mov ecx, dword [ebp - 0x54]
call fcn.10007889
xor eax, eax
jmp 0x10007883
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x100076c7
or eax, 0xffffffff
jmp 0x10007883
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x20], 9
mov edx, 0x2000
sub edx, dword [ebp - 0x20]
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x89
push 8
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
add edx, 1
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
jbe 0x10007770
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x54]
call fcn.1000f8b3
mov dword [ebp - 0x10], eax
jmp 0x10007876
mov edx, 1
test edx, edx
je 0x1000786e
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp - 0x54]
add eax, 0x124
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x100077ac
jmp 0x1000786e
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [ebp - 0x40], 8
mov edx, dword [ebp - 0x40]
imul edx, edx, 3
add edx, 1
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov byte [ecx], 0x92
mov edx, dword [ebp - 0x40]
push edx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x40]
push edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x38]
lea eax, [edx + ecx + 1]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
lea edx, [ecx + eax + 1]
add edx, dword [ebp - 0x40]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0
mov eax, dword [ebp - 0x40]
imul eax, eax, 3
add eax, 1
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x54]
call fcn.1000f8b3
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x54]
call fcn.10007889
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4