Function at 0x14001cd00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rdx
mov ecx, dword [rcx + 0x1044]
xor r15d, r15d
test ecx, ecx
je 0x14001cf02
sub ecx, 1
je 0x14001ce78
cmp ecx, 1
je 0x14001cd5a
cmp byte [rdi], r15b
jne 0x14001cf3f
jmp 0x14001cf02
mov rax, qword [rdi + 0x1010]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 0x1008]
mov qword [rsp + 0x40], rax
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
mov rcx, qword [rdx + 0x38]
test rcx, rcx
jne 0x14001cd8b
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
call qword [rax + 0x10]
mov rdx, qword [rdi + 0x1010]
lea rax, [rdi + 0x1018]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov rcx, qword [rdi + 0x1038]
cmp byte [rdx + 0x1c], r15b
jne 0x14001cddf
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x1010]
mov ebp, dword [rcx + 0x10]
jmp 0x14001ce07
mov dword [rsp + 0x48], 0xffffffff
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x4c], 0x40000014
mov ebp, 0x10
mov r8d, ebp
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test eax, eax
je 0x14001ce63
cmp dword [rsp + 0x38], ebp
jne 0x14001ce63
mov byte [rdi + 0x1048], r15b
mov dword [rdi + 0x1044], 1
mov rbx, qword [rdi + 0x1008]
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [rbx + 8]
call sub.VCRUNTIME140.dll_memset
mov qword [rbx + 0x10], r15
mov byte [rbx + 0x1c], r15b
mov rbx, qword [rdi + 0x1010]
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [rbx + 8]
call sub.VCRUNTIME140.dll_memset
mov qword [rbx + 0x10], r15
mov byte [rbx + 0x1c], r15b
jmp 0x14001cf02
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14001cef9
cmp eax, 0x3e5
jmp 0x14001ceee
lea rax, [rdi + 0x1018]
mov qword [rsp + 0x20], rax
lea r9, [rdi + 0x1040]
mov r8d, 0x1000
lea rdx, [rdi + 1]
mov rcx, qword [rdi + 0x1038]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test eax, eax
je 0x14001ced8
mov ecx, dword [rdi + 0x1040]
test ecx, ecx
je 0x14001ced8
mov r8d, ecx
lea rdx, [rdi + 1]
mov rcx, qword [rdi + 0x1008]
call fcn.14001bf70
mov byte [rdi + 0x1048], r15b
mov dword [rdi + 0x1044], 2
jmp 0x14001cf02
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14001cef9
cmp eax, 0x3e5
je 0x14001cef0
cmp eax, 0xea
jne 0x14001cef9
mov byte [rdi + 0x1048], 1
jmp 0x14001cf02
mov rcx, rdi
call fcn.14001cfb0
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14001cf1b
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r15
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400a6140
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400f03d8]
call fcn.14001d760
mov rbx, rax
lea rdx, [0x1400c30a8]
lea rcx, [rsp + 0x48]
call fcn.140005020
nop
mov r8d, 4
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140010130
nop
lea rcx, [rsp + 0x48]
call fcn.140004fe0
lea r8, str.Unknown_execution_state_encountered.
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.14001c1d0
lea rdx, [0x1400e4268]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3