Function at 0x100adf80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
call fcn.100ae2f0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x100ae2c2
mov edx, dword [ebp + 8]
push edx
call fcn.100ae3a0
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
xor ecx, ecx
cmp dword [eax + 0x101de860], 0
setg cl
movzx edx, cl
test edx, edx
jne 0x100adfef
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0
jmp 0x100ae2c0
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
mov ecx, dword [eax + 0x101de864]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [0x101de7c0]
jb 0x100ae077
mov eax, dword [ebp - 0x18]
add eax, dword [ebp + 0x10]
cmp eax, dword [0x101de7c4]
jae 0x100ae077
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
imul edx, edx, 0xc
mov eax, dword [edx + 0x101de868]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x14], 0
je 0x100ae04b
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
cmp dword [ebp - 0x10], 0
je 0x100ae06c
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
mov ecx, dword [eax + 0x101de864]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
imul edx, edx, 0xc
mov dword [edx + 0x101de864], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x100ae2c0
cmp dword [ebp + 0x10], 0
jbe 0x100ae104
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [0x101de7c0]
jae 0x100ae104
mov edx, dword [0x101de7c0]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x1c]
jae 0x100ae0a6
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [0x101de7f0]
add eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1014c8e0
add esp, 0xc
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x1c]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xc
mov edx, dword [ecx + 0x101de864]
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
mov dword [eax + 0x101de864], edx
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xc
mov edx, dword [ecx + 0x101de864]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], 0
jbe 0x100ae1b1
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [0x101de7c8]
jae 0x100ae1b1
mov edx, dword [0x101de7c8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x20]
jae 0x100ae137
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
mov ecx, dword [eax + 0x101de868]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x100ae16c
mov dword [ebp - 4], 0
jmp 0x100ae1b1
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x20]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xc
mov edx, dword [ecx + 0x101de864]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
mov dword [eax + 0x101de864], edx
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xc
mov edx, dword [ecx + 0x101de864]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x100ae23d
cmp dword [ebp + 0x10], 0
jbe 0x100ae23d
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [0x101de7c4]
jae 0x100ae23d
mov edx, dword [0x101de7c4]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x24]
jae 0x100ae1e6
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.1014e270
add esp, 0xc
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x24]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x24]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
mov ecx, dword [eax + 0x101de864]
add ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 8]
imul edx, edx, 0xc
mov dword [edx + 0x101de864], ecx
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
mov ecx, dword [eax + 0x101de864]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x24]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], 0
je 0x100ae2ac
cmp dword [ebp + 0x10], 0
je 0x100ae2ac
mov eax, dword [0x101de7c4]
add eax, dword [0x101de7e4]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x28]
jbe 0x100ae268
mov edx, dword [ebp - 0x28]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [0x101de7c4]
add ecx, dword [0x101de7e8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.1014c8e0
add esp, 0xc
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
mov ecx, dword [eax + 0x101de864]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
imul edx, edx, 0xc
mov dword [edx + 0x101de864], ecx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x100ae2c0
cmp dword [ebp + 0x14], 0
je 0x100ae2c0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
jmp 0x100ae2df
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x14