Function at 0x1400c1a20
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rsi
push rdi
push r12
sub rsp, 0xd0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x14016bb40]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov r12, rcx
xor ebx, ebx
mov esi, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
test rdx, rdx
je 0x1400c1ac4
mov qword [r11 - 0x30], 7
mov qword [r11 - 0x38], rbx
mov word [r11 - 0x48], bx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r11 - 0x48]
call fcn.14001a580
nop
lea rcx, [r12 + 0x38]
lea rdx, [rsp + 0xa0]
call fcn.140017e50
nop
cmp qword [rsp + 0xb8], 8
jb 0x1400c1ac4
mov rcx, qword [rsp + 0xa0]
call fcn.14005e094
lea rdx, [r12 + 0x38]
lea r8, [0x14011625c]
lea rcx, [rsp + 0xa0]
call fcn.140042620
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140042700
nop
cmp qword [rsp + 0xb8], 8
jb 0x1400c1b04
mov rcx, qword [rsp + 0xa0]
call fcn.14005e094
mov qword [rsp + 0xb8], 7
mov qword [rsp + 0xb0], rbx
mov word [rsp + 0xa0], bx
lea rcx, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rcx, qword [rsp + 0x78]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400c1b67
call fcn.14001d660
jmp 0x1400c1b71
mov rsi, rax
mov qword [rsp + 0x48], rax
mov eax, ebx
lea rdi, [r12 + 0x10]
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 8
jb 0x1400c1b86
mov rcx, qword [rdi]
jmp 0x1400c1b89
mov rcx, rdi
mov word [rcx], bx
test eax, eax
je 0x1400c1ba0
cmp eax, 0xb7
jne 0x1400c1beb
nop word [rax + rax]
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
mov r8d, 2
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400c1bcf
call fcn.14001d660
test eax, eax
jmp 0x1400c1bd4
cmp dword [rsp + 0x44], 2
jne 0x1400c1beb
movzx r8d, word [rsp + 0x40]
mov edx, 1
mov rcx, rdi
call fcn.140016e10
jmp 0x1400c1ba0
cmp qword [r12 + 0x20], 0
je 0x1400c1c3a
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x1400c1c02
mov rcx, qword [rdi]
jmp 0x1400c1c05
mov rcx, rdi
mov rax, qword [rdi + 0x10]
lea rdx, [rcx + rax*2 - 2]
cmp r8, 8
jb 0x1400c1c19
mov rax, qword [rdi]
jmp 0x1400c1c1c
mov rax, rdi
test rdx, rdx
jne 0x1400c1c26
mov rdx, rbx
jmp 0x1400c1c2c
sub rdx, rax
sar rdx, 1
mov r8d, 1
mov rcx, rdi
call fcn.14001a0d0
mov ecx, 0x10088
call fcn.14005e584
mov r11, rax
test rax, rax
je 0x1400c1c91
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbx
mov dword [rax + 0x28], ebx
mov qword [rax + 0x30], rbx
mov qword [rax + 0x40], rbx
lea rdx, [rax + 0x10078]
mov qword [rdx], rbx
mov qword [rax + 0x10080], rbx
lea rcx, [rax + 0x78]
mov qword [rax + 0x60], rcx
mov rax, rcx
neg rax
and eax, 7
add rax, rcx
mov qword [r11 + 0x68], rax
mov qword [r11 + 0x70], rdx
jmp 0x1400c1c94
mov r11, rbx
mov rdx, r11
mov rcx, r12
call fcn.140042760
nop
cmp qword [rdi + 0x18], 8
jb 0x1400c1caa
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, qword [r12]
call fcn.140042840
nop
cmp qword [rsp + 0x90], 8
jb 0x1400c1ccc
mov rcx, qword [rsp + 0x78]
call fcn.14005e094
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], rbx
mov word [rsp + 0x78], bx
test rsi, rsi
je 0x1400c1cf3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400c1d39
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14005e0b0
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop r12
pop rdi
pop rsi
ret