Function at 0x10006a3b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e2602
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x3c], ecx
cmp dword [ebp + 8], 0
jne 0x10006a76
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x3c]
call fcn.10009f8a
xor al, al
jmp 0x10006cc3
mov ecx, dword [ebp - 0x3c]
call fcn.10005742
mov ecx, dword [ebp - 0x3c]
add ecx, 4
call fcn.100083d0
mov dword [ebp - 0x20], 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [ebp - 0x20], eax
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
cmp dword [ebp - 0x20], 0
jg 0x10006adf
push 0
push 0
push 0
push 0xd
mov ecx, dword [ebp - 0x3c]
call fcn.10009f8a
xor al, al
jmp 0x10006cc3
lea ecx, [ebp - 0x18]
call fcn.10005150
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.10004da0
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x10006b71
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x3c]
call fcn.10009f8a
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10003380
mov al, byte [ebp - 0x2c]
jmp 0x10006cc3
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x20]
mov byte [edx], 0
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x10006c34
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x10006bc6
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x18]
call fcn.10004f06
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
jmp 0x10006c2f
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0xd
jne 0x10006c26
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x1c]
test ecx, ecx
jle 0x10006bee
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10004f06
push 0xa
lea ecx, [ebp - 0x18]
call fcn.10008320
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx + 1]
cmp edx, 0xa
jne 0x10006c15
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
jmp 0x10006c24
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x10006c2f
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x10006b86
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x1c]
test edx, edx
je 0x10006c51
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.10004f06
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
lea ecx, [ebp - 0x18]
call fcn.10008340
push eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x3c]
call dword [eax + 8]
mov ecx, dword [ebp - 0x3c]
call fcn.10003470
and eax, 0xff
test eax, eax
je 0x10006cad
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10003380
mov al, byte [ebp - 0x34]
jmp 0x10006cc3
mov byte [ebp - 0x38], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10003380
mov al, byte [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8