Function at 0x14006b43c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edx, edx
mov r12, rcx
mov rcx, qword [rcx]
mov ebx, r8d
mov r15b, r9b
mov r13b, r9b
lea r8d, [rdx + 1]
and r13b, 2
and r15b, 1
call fcn.14005adf0
xor edi, edi
mov r14, rax
mov ebp, edi
mov esi, edi
cmp ebx, 0x4b0
jne 0x14006b5c0
lea ebx, [rdi + 2]
jmp 0x14006b522
cmp dword [rsp + 0x80], ebx
jb 0x14006b55e
movzx ecx, byte [rsp + 0x89]
movzx eax, byte [rsp + 0x88]
shl ecx, 8
or ecx, eax
cmp ecx, 0xa
je 0x14006b55c
cmp ecx, 0xd
je 0x14006b4c8
add esi, ebx
jmp 0x14006b522
mov rcx, qword [r12]
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov r8d, ebx
mov dword [rsp + 0x80], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x14006b55e
cmp dword [rsp + 0x80], ebx
jb 0x14006b55e
movzx ecx, byte [rsp + 0x89]
movzx eax, byte [rsp + 0x88]
shl ecx, 8
or ecx, eax
cmp ecx, 0xa
je 0x14006b555
cmp r13b, dil
jne 0x14006b55e
add esi, 4
mov ebp, edi
mov rcx, qword [r12]
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov r8d, ebx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x80], edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
jne 0x14006b494
jmp 0x14006b55e
mov ebp, 4
jmp 0x14006b55e
mov ebp, ebx
lea r13d, [rsi + r14]
cmp r15b, dil
je 0x14006b5b3
mov r15, qword [rsp + 0x78]
lea eax, [rsi + 8]
mov rcx, r15
movsxd rdx, eax
call fcn.140061ff8
mov rcx, qword [r12]
mov rbx, qword [r15]
movsxd rdx, r14d
xor r8d, r8d
call fcn.14005adf0
mov rcx, qword [r12]
lea r9, [rsp + 0x88]
mov r8d, esi
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [r15]
movsxd r11, esi
mov dword [r11 + rcx], edi
lea ecx, [rbp + r13]
movsxd rdx, ecx
jmp 0x14006b83d
mov rcx, qword [r12]
mov dword [rsp + 0x80], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x80]
cmp ebx, 0x4b1
jne 0x14006b722
mov ebx, 2
jmp 0x14006b696
cmp dword [rsp + 0x80], ebx
jb 0x14006b6ba
movzx ecx, byte [rsp + 0x88]
movzx eax, byte [rsp + 0x89]
shl ecx, 8
or ecx, eax
cmp ecx, 0xa
je 0x14006b6b8
cmp ecx, 0xd
je 0x14006b622
add esi, ebx
jmp 0x14006b67e
mov rcx, qword [r12]
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov r8d, ebx
mov ebp, ebx
mov dword [rsp + 0x80], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x14006b6ba
cmp dword [rsp + 0x80], ebx
jb 0x14006b6ba
movzx ecx, byte [rsp + 0x88]
movzx eax, byte [rsp + 0x89]
shl ecx, 8
or ecx, eax
cmp ecx, 0xa
je 0x14006b6b1
cmp r13b, dil
jne 0x14006b6ba
add esi, 4
mov ebp, edi
mov rcx, qword [r12]
mov dword [rsp + 0x80], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
jne 0x14006b5ee
jmp 0x14006b6ba
mov ebp, 4
jmp 0x14006b6ba
mov ebp, ebx
lea r13d, [rsi + r14]
cmp r15b, dil
je 0x14006b835
mov r15, qword [rsp + 0x78]
lea eax, [rsi + 8]
mov rcx, r15
movsxd rdx, eax
call fcn.140061ff8
mov rcx, qword [r12]
mov rbx, qword [r15]
movsxd rdx, r14d
xor r8d, r8d
call fcn.14005adf0
mov rcx, qword [r12]
lea r9, [rsp + 0x88]
mov r8d, esi
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [r15]
mov edx, esi
call fcn.14005f07c
mov rax, qword [r15]
movsxd r9, esi
mov dword [r9 + rax], edi
jmp 0x14006b835
mov ebx, 1
jmp 0x14006b7b4
cmp dword [rsp + 0x80], ebx
jb 0x14006b7e0
mov al, byte [rsp + 0x88]
cmp al, 0xa
je 0x14006b7de
cmp al, 0xd
je 0x14006b750
add esi, ebx
jmp 0x14006b79c
mov rcx, qword [r12]
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov r8d, ebx
mov ebp, ebx
mov dword [rsp + 0x80], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x14006b7e0
cmp dword [rsp + 0x80], ebx
jb 0x14006b7e0
cmp byte [rsp + 0x88], 0xa
je 0x14006b7d7
cmp r13b, dil
jne 0x14006b7e0
add esi, 2
mov ebp, edi
mov rcx, qword [r12]
mov dword [rsp + 0x80], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov r8d, ebx
mov byte [rsp + 0x88], dil
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
jne 0x14006b72c
jmp 0x14006b7e0
mov ebp, 2
jmp 0x14006b7e0
mov ebp, ebx
lea r13d, [rsi + r14]
cmp r15b, dil
je 0x14006b835
mov r15, qword [rsp + 0x78]
lea eax, [rsi + 8]
mov rcx, r15
movsxd rdx, eax
call fcn.140061ff8
mov rcx, qword [r12]
mov rbx, qword [r15]
movsxd rdx, r14d
xor r8d, r8d
call fcn.14005adf0
mov rcx, qword [r12]
lea r9, [rsp + 0x88]
mov r8d, esi
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, qword [r15]
movsxd r11, esi
mov dword [r11 + rax], edi
lea eax, [rbp + r13]
movsxd rdx, eax
mov rcx, qword [r12]
xor r8d, r8d
call fcn.14005adf0
mov rbx, qword [rsp + 0x70]
lea r11d, [rsi + rbp]
cmp r11d, edi
setg dil
mov eax, edi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret