Function at 0x101000f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 0x14], 0
jne 0x10100106
mov eax, 1
jmp 0x1010037b
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x30]
call fcn.1000ba00
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x20]
call fcn.100ac3e0
lea ecx, [ebp - 0x30]
call fcn.10008000
movzx edx, al
test edx, edx
je 0x1010014c
mov dword [ebp - 0x34], 1
lea ecx, [ebp - 0x20]
call fcn.10016fd0
lea ecx, [ebp - 0x30]
call fcn.1000ba80
mov eax, dword [ebp - 0x34]
jmp 0x1010037b
push 4
call fcn.1016683f
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x1010016c
mov ecx, dword [ebp - 0x38]
call fcn.10105050
mov dword [ebp - 0x54], eax
jmp 0x10100173
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x30]
call fcn.1000bae0
lea ecx, [eax + eax + 2]
push ecx
push 0
lea ecx, [ebp - 0x30]
call fcn.1000bac0
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
call eax
cmp dword [ebp - 0x2c], 0
jne 0x101001d2
mov dword [ebp - 0x3c], 1
lea ecx, [ebp - 0x20]
call fcn.10016fd0
lea ecx, [ebp - 0x30]
call fcn.1000ba80
mov eax, dword [ebp - 0x3c]
jmp 0x1010037b
mov dword [ebp - 8], 0
push 0x101cde3c
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.1016bf8e
add esp, 0xc
test eax, eax
je 0x10100229
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10169dec
add esp, 4
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x20]
call fcn.10099a20
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x20]
call fcn.10016fd0
lea ecx, [ebp - 0x30]
call fcn.1000ba80
mov eax, dword [ebp - 0x40]
jmp 0x1010037b
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.1016c6e8
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.1016c5f0
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.1016bd74
add esp, 4
push 0x101cde40
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 8]
push eax
call fcn.1016bf8e
add esp, 0xc
test eax, eax
je 0x101002af
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10169dec
add esp, 4
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x20]
call fcn.10099a20
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x20]
call fcn.10016fd0
lea ecx, [ebp - 0x30]
call fcn.1000ba80
mov eax, dword [ebp - 0x44]
jmp 0x1010037b
mov eax, dword [ebp - 0x28]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10165c5a
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], eax
push 0x101cde48
lea ecx, [ebp - 0xc]
call fcn.1000ba00
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 2
mov eax, dword [ebp - 4]
push eax
call fcn.1016ca2a
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 8]
push ecx
call fcn.1016bd74
add esp, 4
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0xc]
call fcn.1000baa0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.101662ff
add esp, 4
lea ecx, [ebp - 0xc]
call fcn.10007f90
push eax
lea ecx, [ebp - 0x20]
call fcn.100ac410
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10169dec
add esp, 4
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.10099a20
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0xc]
call fcn.1000ba80
lea ecx, [ebp - 0x20]
call fcn.10016fd0
lea ecx, [ebp - 0x30]
call fcn.1000ba80
mov eax, dword [ebp - 0x50]
mov esp, ebp
pop ebp
ret 0x10