Function at 0x101030d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010f1a6
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x102ac760]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], ecx
cmp dword [ebp + 8], 0
jne 0x10103121
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x90]
call fcn.100fac40
xor al, al
jmp 0x10103390
mov ecx, dword [ebp - 0x90]
call fcn.10101a10
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.1000bae0
mov dword [ebp - 0x14], 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.100b7607
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.100b8672
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.100b7607
add esp, 0xc
cmp dword [ebp - 0x14], 0
jg 0x10103190
push 0
push 0
push 0
push 0xd
mov ecx, dword [ebp - 0x90]
call fcn.100fac40
xor al, al
jmp 0x10103390
lea ecx, [ebp - 0x3c]
call fcn.10005f00
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1000c5f0
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
call fcn.100b0a2f
add esp, 4
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.100b84b8
add esp, 0x10
cmp eax, 1
je 0x10103224
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.100b2d1b
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x90]
call fcn.100fac40
mov byte [ebp - 0x45], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10003150
mov al, byte [ebp - 0x45]
jmp 0x10103390
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x14]
mov byte [edx], 0
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x101032e7
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x10103279
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x3c]
call fcn.10008c00
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
jmp 0x101032e2
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0xd
jne 0x101032d9
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
test ecx, ecx
jle 0x101032a1
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x3c]
call fcn.10008c00
push 0xa
lea ecx, [ebp - 0x3c]
call fcn.1000c5a0
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx + 1]
cmp edx, 0xa
jne 0x101032c8
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
jmp 0x101032d7
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
jmp 0x101032e2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x10103239
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
je 0x10103302
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10008c00
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.100b2d1b
add esp, 4
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
lea ecx, [ebp - 0x3c]
call fcn.10003950
push eax
mov edx, dword [ebp - 0x90]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x90]
mov edx, dword [eax + 8]
call edx
mov ecx, dword [ebp - 0x90]
call fcn.1000c0c0
movzx eax, al
test eax, eax
je 0x10103369
mov byte [ebp - 0x4d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10003150
mov al, byte [ebp - 0x4d]
jmp 0x10103390
mov byte [ebp - 0x4e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10003150
mov al, byte [ebp - 0x4e]
jmp 0x10103390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.100b2738
mov esp, ebp
pop ebp
ret 8