Function at 0x14006ad00
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
movzx r15d, r9b
movzx r13d, r9b
lea r8d, [rdx + 1]
and r13b, 2
and r15b, 1
call fcn.14005c450
mov rcx, qword [r12]
xor esi, esi
mov ebp, esi
mov edi, esi
mov dword [rsp + 0x80], esi
mov r14, rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x80]
cmp ebx, 0x4b0
jne 0x14006aec5
lea r8d, [rsi + 2]
lea rdx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006ae66
nop word [rax + rax]
cmp dword [rsp + 0x80], 2
jb 0x14006ae66
movzx ecx, byte [rsp + 0x89]
movzx eax, byte [rsp + 0x88]
shl ecx, 8
or ecx, eax
cmp ecx, 0xa
je 0x14006ae61
cmp ecx, 0xd
je 0x14006adc6
add edi, 2
jmp 0x14006ae24
mov rcx, qword [r12]
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov r8d, 2
mov dword [rsp + 0x80], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006ae66
cmp dword [rsp + 0x80], 2
jb 0x14006ae66
movzx ecx, byte [rsp + 0x89]
movzx eax, byte [rsp + 0x88]
shl ecx, 8
or ecx, eax
cmp ecx, 0xa
je 0x14006ae5a
test r13b, r13b
jne 0x14006ae66
add edi, 4
mov ebp, esi
mov rcx, qword [r12]
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov r8d, 2
mov dword [rsp + 0x80], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14006ad90
jmp 0x14006ae66
mov ebp, 4
jmp 0x14006ae66
mov ebp, 2
lea r13d, [rdi + r14]
test r15b, r15b
je 0x14006aeb8
mov r15, qword [rsp + 0x78]
lea edx, [rdi + 8]
mov rcx, r15
call fcn.1400632e0
mov rcx, qword [r12]
mov rbx, qword [r15]
movsxd rdx, r14d
xor r8d, r8d
call fcn.14005c450
mov rcx, qword [r12]
lea r9, [rsp + 0x88]
mov r8d, edi
mov rdx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [r15]
movsxd r11, edi
mov dword [r11 + rcx], esi
lea ecx, [rbp + r13]
movsxd rdx, ecx
jmp 0x14006b169
cmp ebx, 0x4b1
jne 0x14006b02c
lea rdx, [rsp + 0x88]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006afc7
nop dword [rax]
cmp dword [rsp + 0x80], 2
jb 0x14006afc7
movzx ecx, byte [rsp + 0x88]
movzx eax, byte [rsp + 0x89]
shl ecx, 8
or ecx, eax
cmp ecx, 0xa
je 0x14006afc2
cmp ecx, 0xd
je 0x14006af26
add edi, 2
jmp 0x14006af85
mov rcx, qword [r12]
mov ebp, 2
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov r8d, ebp
mov dword [rsp + 0x80], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006afc7
cmp dword [rsp + 0x80], ebp
jb 0x14006afc7
movzx ecx, byte [rsp + 0x88]
movzx eax, byte [rsp + 0x89]
shl ecx, 8
or ecx, eax
cmp ecx, 0xa
je 0x14006afbb
test r13b, r13b
jne 0x14006afc7
add edi, 4
mov ebp, esi
mov rcx, qword [r12]
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov r8d, 2
mov dword [rsp + 0x80], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14006aef0
jmp 0x14006afc7
mov ebp, 4
jmp 0x14006afc7
mov ebp, 2
lea r13d, [rdi + r14]
test r15b, r15b
je 0x14006b161
mov r15, qword [rsp + 0x78]
lea edx, [rdi + 8]
mov rcx, r15
call fcn.1400632e0
mov rcx, qword [r12]
mov rbx, qword [r15]
movsxd rdx, r14d
xor r8d, r8d
call fcn.14005c450
mov rcx, qword [r12]
lea r9, [rsp + 0x88]
mov r8d, edi
mov rdx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [r15]
mov edx, edi
call fcn.14005f9f0
mov rax, qword [r15]
movsxd r9, edi
mov dword [r9 + rax], esi
jmp 0x14006b161
lea rdx, [rsp + 0x88]
mov r8d, 1
mov byte [rsp + 0x88], sil
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006b10f
cmp dword [rsp + 0x80], 1
jb 0x14006b10f
movzx eax, byte [rsp + 0x88]
cmp al, 0xa
je 0x14006b10a
cmp al, 0xd
je 0x14006b076
inc edi
jmp 0x14006b0c5
mov rcx, qword [r12]
mov ebp, 1
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov r8d, ebp
mov dword [rsp + 0x80], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006b10f
cmp dword [rsp + 0x80], ebp
jb 0x14006b10f
cmp byte [rsp + 0x88], 0xa
je 0x14006b103
test r13b, r13b
jne 0x14006b10f
add edi, 2
mov ebp, esi
mov rcx, qword [r12]
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov r8d, 1
mov byte [rsp + 0x88], sil
mov dword [rsp + 0x80], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14006b050
jmp 0x14006b10f
mov ebp, 2
jmp 0x14006b10f
mov ebp, 1
lea r13d, [rdi + r14]
test r15b, r15b
je 0x14006b161
mov r15, qword [rsp + 0x78]
lea edx, [rdi + 8]
mov rcx, r15
call fcn.1400632e0
mov rcx, qword [r12]
mov rbx, qword [r15]
movsxd rdx, r14d
xor r8d, r8d
call fcn.14005c450
mov rcx, qword [r12]
lea r9, [rsp + 0x88]
mov r8d, edi
mov rdx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, qword [r15]
movsxd r11, edi
mov dword [r11 + rax], esi
lea eax, [rbp + r13]
movsxd rdx, eax
mov rcx, qword [r12]
xor r8d, r8d
call fcn.14005c450
mov rbx, qword [rsp + 0x70]
lea r11d, [rdi + rbp]
test r11d, r11d
setg sil
mov eax, esi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret