Function at 0x100014d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4dc
push ebx
push esi
push edi
push 0x10034b20
lea eax, [ebp - 0x4dc]
push 0x10020770
push eax
call fcn.1000fd5e
push 0x180
lea ecx, [ebp - 0x4dc]
push 0x8002
push ecx
call fcn.10016520
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
mov dword [ebp - 8], esi
jne 0x1000155a
push 0x180
lea edx, [ebp - 0x4dc]
push 0x8301
push edx
call fcn.10016520
add esp, 0xc
cmp eax, esi
je 0x100016b2
push eax
call fcn.10015ca7
push 0x180
lea eax, [ebp - 0x4dc]
push 0x8002
push eax
call fcn.10016520
add esp, 0x10
mov dword [ebp - 8], eax
mov esi, eax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x3c]
push ecx
push 0x10020780
push edx
call fcn.1000fd5e
lea edi, [ebp - 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0xc]
not ecx
dec ecx
push eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0xdc]
push 0x10020788
push ecx
call fcn.1000fd5e
lea edi, [ebp - 0xdc]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push 0xa
dec ecx
push 0xd
push edx
lea eax, [ebp - 0x5c]
mov edi, ecx
push str._d_c_c
push eax
mov dword [ebp - 0x1c], edi
call fcn.1000fd5e
push 2
push 0
push esi
call fcn.10012b15
push esi
call fcn.100169e6
push 0
push 0
push esi
mov ebx, eax
call fcn.10012b15
mov edx, dword [ebp - 0x18]
lea ecx, [ebx + edi]
add esp, 0x48
lea eax, [ecx + edx + 4]
push eax
call fcn.1000fbdf
mov edi, eax
push ebx
push edi
push esi
mov dword [ebp - 4], edi
call fcn.100167f0
xor eax, eax
add esp, 0x10
add edi, ebx
cmp ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], eax
jle 0x1000162a
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
lea edi, [ebp - 0x3c]
lea esi, [eax + edx]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x100016b9
inc eax
cmp eax, ebx
jl 0x1000160c
mov esi, dword [ebp - 8]
push 2
push 0
push esi
call fcn.10012b15
mov edx, dword [ebp + 8]
push 0xa
push 0xd
push edx
lea eax, [ebp - 0x3c]
push str.__s__c_c
push eax
call fcn.1000fd5e
lea edi, [ebp - 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push esi
call fcn.10012baf
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0xa
push 0xd
push edx
push eax
lea ecx, [ebp - 0xdc]
push str._s_d_c_c
push ecx
call fcn.1000fd5e
lea edi, [ebp - 0xdc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x44
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ebp - 0xdc]
push ecx
push edx
push esi
call fcn.10012baf
mov eax, dword [ebp - 4]
push eax
call fcn.1000fbb0
push esi
call fcn.10015ca7
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
add eax, ecx
cmp eax, ebx
jge 0x10001732
mov edx, dword [ebp - 4]
lea esi, [eax + edx]
mov dword [ebp + 8], esi
cmp byte [esi], 0x5b
je 0x100016ed
mov ecx, dword [ebp - 0x1c]
lea edi, [ebp - 0xdc]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x100016f8
mov esi, dword [ebp + 8]
inc eax
inc esi
cmp eax, ebx
mov dword [ebp + 8], esi
jl 0x100016cb
jmp 0x10001732
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], eax
lea edx, [eax + ecx]
jmp 0x1000172a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], eax
add eax, ecx
cmp eax, ebx
jge 0x10001728
mov cl, byte [eax + edx]
cmp cl, 0xd
je 0x1000171b
cmp cl, 0xa
je 0x10001727
inc eax
cmp eax, ebx
jl 0x10001707
jmp 0x10001728
cmp byte [eax + edx + 1], 0xa
jne 0x10001727
add eax, 2
jmp 0x10001728
inc eax
add edx, eax
sub ebx, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp - 8]
push 0
push 0
push esi
call fcn.10012b15
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
push eax
push ebx
push esi
call fcn.10012baf
lea edi, [ebp - 0xdc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0xdc]
push ecx
push esi
call fcn.10012baf
lea edi, [ebp - 0x5c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x5c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call fcn.10012baf
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push eax
push ecx
push esi
call fcn.10012baf
push ebx
call fcn.1000fbb0
add esp, 0x40
push esi
call fcn.10015ca7
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret