Function at 0x100ca410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d4a8e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1013d900]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
cmp dword [ebp + 8], 0
jne 0x100ca455
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x34]
call fcn.100cdd90
xor al, al
jmp 0x100ca69d
mov ecx, dword [ebp - 0x34]
call fcn.100c8a40
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.100cbd90
mov dword [ebp - 0x14], 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.10059c92
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.100675c5
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.10059c92
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x100ca4bb
push 0
push 0
push 0
push 0xd
mov ecx, dword [ebp - 0x34]
call fcn.100cdd90
xor al, al
jmp 0x100ca69d
lea ecx, [ebp - 0x20]
call fcn.100cbc50
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.100cc840
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
call fcn.10032528
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
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.1005cfd0
add esp, 0x10
cmp eax, 1
je 0x100ca53a
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x34]
call fcn.100cdd90
mov byte [ebp - 0x25], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10009920
mov al, byte [ebp - 0x25]
jmp 0x100ca69d
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
test edx, edx
je 0x100ca5fd
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
cmp ecx, 0xa
jne 0x100ca58f
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
add edx, 1
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.100cc9d0
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
jmp 0x100ca5f8
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
cmp ecx, 0xd
jne 0x100ca5ef
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
test edx, edx
jle 0x100ca5b7
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
call fcn.100cc9d0
push 0xa
lea ecx, [ebp - 0x20]
call fcn.100cbd00
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx + 1]
cmp eax, 0xa
jne 0x100ca5de
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
jmp 0x100ca5ed
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
jmp 0x100ca5f8
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x100ca54f
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
je 0x100ca618
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x20]
call fcn.100cc9d0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10032562
add esp, 4
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp + 0xc]
push edx
push 0
lea ecx, [ebp - 0x20]
call fcn.100cbcc0
push eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x34]
call fcn.100cc290
movzx ecx, al
test ecx, ecx
je 0x100ca676
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10009920
mov al, byte [ebp - 0x2d]
jmp 0x100ca69d
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10009920
mov al, byte [ebp - 0x2e]
jmp 0x100ca69d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8