Function at 0x101057f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 0x14], 0
jne 0x10105806
mov eax, 1
jmp 0x10105a7b
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x30]
call fcn.10005d80
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x20]
call fcn.100ae090
lea ecx, [ebp - 0x30]
call fcn.10004400
movzx edx, al
test edx, edx
je 0x1010584c
mov dword [ebp - 0x34], 1
lea ecx, [ebp - 0x20]
call fcn.10012580
lea ecx, [ebp - 0x30]
call fcn.10005e00
mov eax, dword [ebp - 0x34]
jmp 0x10105a7b
push 4
call fcn.1017072e
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x1010586c
mov ecx, dword [ebp - 0x38]
call fcn.1010c140
mov dword [ebp - 0x54], eax
jmp 0x10105873
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x30]
call fcn.10005e60
lea ecx, [eax + eax + 2]
push ecx
push 0
lea ecx, [ebp - 0x30]
call fcn.10005e40
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 0x101058d2
mov dword [ebp - 0x3c], 1
lea ecx, [ebp - 0x20]
call fcn.10012580
lea ecx, [ebp - 0x30]
call fcn.10005e00
mov eax, dword [ebp - 0x3c]
jmp 0x10105a7b
mov dword [ebp - 8], 0
push 0x101d8b84
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.101755ae
add esp, 0xc
test eax, eax
je 0x10105929
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10170e80
add esp, 4
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x20]
call fcn.1009d390
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x20]
call fcn.10012580
lea ecx, [ebp - 0x30]
call fcn.10005e00
mov eax, dword [ebp - 0x40]
jmp 0x10105a7b
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.10175b64
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.10175a6c
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.10175394
add esp, 4
push 0x101d8b88
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 8]
push eax
call fcn.101755ae
add esp, 0xc
test eax, eax
je 0x101059af
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10170e80
add esp, 4
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x20]
call fcn.1009d390
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x20]
call fcn.10012580
lea ecx, [ebp - 0x30]
call fcn.10005e00
mov eax, dword [ebp - 0x44]
jmp 0x10105a7b
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.1016f15a
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], eax
push 0x101d8b90
lea ecx, [ebp - 0xc]
call fcn.10005d80
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.10175ea6
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.10175394
add esp, 4
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0xc]
call fcn.10005e20
mov eax, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.10170335
add esp, 4
lea ecx, [ebp - 0xc]
call fcn.10004390
push eax
lea ecx, [ebp - 0x20]
call fcn.100ae0c0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10170e80
add esp, 4
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.1009d390
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0xc]
call fcn.10005e00
lea ecx, [ebp - 0x20]
call fcn.10012580
lea ecx, [ebp - 0x30]
call fcn.10005e00
mov eax, dword [ebp - 0x50]
mov esp, ebp
pop ebp
ret 0x10