Function at 0x100aeb90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101afb1d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x10245db0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.100abc90
movzx ecx, al
test ecx, ecx
jne 0x100aebd2
xor al, al
jmp 0x100aedb1
push 0
lea edx, [ebp - 0x20]
push edx
push 0x10
mov eax, dword [ebp - 0x1c]
add eax, 0x14c
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xd8
call fcn.100a1710
mov dword [ebp - 4], 0
jmp 0x100aec10
lea ecx, [ebp - 0x38]
call fcn.100a1520
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xd8
call fcn.100a16e0
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.100a1560
mov byte [ebp - 0xd], al
lea ecx, [ebp - 0x44]
call fcn.100504f0
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x100aec83
lea ecx, [ebp - 0x38]
call fcn.100a1540
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
call fcn.100ab330
cmp eax, 4
je 0x100aec60
jmp 0x100aec08
mov ecx, dword [ebp - 0x24]
call fcn.100ae1b0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 4
jge 0x100aec81
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [edx + ecx*4 + 0x13c], eax
jmp 0x100aec08
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100504f0
mov dword [ebp - 0x18], 0
push 0
lea ecx, [ebp - 0x20]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x18], 0
jle 0x100aed24
mov byte [ebp - 0xe], 0
lea ecx, [ebp - 0x10]
call fcn.10043230
push eax
lea ecx, [ebp - 0xe]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 1
push edx
lea ecx, [ebp - 0x54]
call fcn.1005a850
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x54]
call fcn.10055c10
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x15c], 0
je 0x100aed1c
push 0xfc
push 0x101feb80
push 0x101feb74
push 0x101fec44
call fcn.100a3500
add esp, 0x10
lea ecx, [ebp - 0x54]
call fcn.10055cf0
push 0
lea ecx, [ebp - 0x20]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x18], 0
jle 0x100aedaf
mov byte [ebp - 0xf], 0
lea ecx, [ebp - 0x11]
call fcn.10043230
push eax
lea ecx, [ebp - 0xf]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 1
push edx
lea ecx, [ebp - 0x64]
call fcn.1005a850
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x64]
call fcn.10055c10
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x160], 0
je 0x100aeda7
push 0x105
push 0x101fec58
push 0x101fec38
push 0x101fec24
call fcn.100a3500
add esp, 0x10
lea ecx, [ebp - 0x64]
call fcn.10055cf0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4