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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rdi, rcx
mov rcx, qword [0x140173048]
lea r12, [0x140173048]
lea r13, [0x140159dc8]
cmp rcx, r12
je 0x1400d0c70
test byte [rcx + 0x1c], 4
je 0x1400d0c70
cmp byte [rcx + 0x19], 4
jb 0x1400d0c70
mov rcx, qword [rcx + 0x10]
mov edx, 0x81
mov r8, r13
call fcn.14000c328
xor ebx, ebx
lea rcx, [rbp - 0x49]
xor edx, edx
mov dword [rbp + 0x6f], ebx
mov r8d, 0x80
call sub.msvcrt.dll_memset
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x1400d0cfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x1400d0cb5
mov ebx, eax
jmp 0x1400d0cbe
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x1400d105c
test byte [rcx + 0x1c], 4
je 0x1400d103a
cmp byte [rcx + 0x19], 2
jb 0x1400d103a
mov rcx, qword [rcx + 0x10]
mov edx, 0x82
mov r9d, ebx
mov r8, r13
call fcn.14000c354
jmp 0x1400d1033
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2000080
mov edx, 0xc0000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400d0d92
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x1400d0d48
mov ebx, eax
jmp 0x1400d0d51
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x1400d1024
test byte [rcx + 0x1c], 4
je 0x1400d1024
cmp byte [rcx + 0x19], 2
jb 0x1400d1024
mov rcx, qword [rcx + 0x10]
mov edx, 0x83
mov r9, rdi
mov dword [rsp + 0x20], ebx
mov r8, r13
call fcn.1400151b8
jmp 0x1400d1024
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov edx, 0x90020
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x1400d0e12
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x1400d0ddb
mov ebx, eax
jmp 0x1400d0de4
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x1400d1015
test byte [rcx + 0x1c], 4
je 0x1400d1015
cmp byte [rcx + 0x19], 2
jb 0x1400d1015
mov edx, 0x84
jmp 0x1400d1002
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
test eax, eax
je 0x1400d0e78
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x1400d0e41
mov ebx, eax
jmp 0x1400d0e4a
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x1400d1015
test byte [rcx + 0x1c], 4
je 0x1400d1015
cmp byte [rcx + 0x19], 2
jb 0x1400d1015
mov edx, 0x85
jmp 0x1400d1002
lea r9, [rbp + 0x6f]
mov qword [rsp + 0x20], rbx
mov r8d, 0x10000
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x1400d0ee8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x1400d0eb1
mov ebx, eax
jmp 0x1400d0eba
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x1400d1015
test byte [rcx + 0x1c], 4
je 0x1400d1015
cmp byte [rcx + 0x19], 2
jb 0x1400d1015
mov edx, 0x86
jmp 0x1400d1002
movaps xmm0, xmmword [rbp - 0x49]
xor r9d, r9d
movaps xmm1, xmmword [rbp - 0x39]
xor r8d, r8d
movups xmmword [r14 + 0x1e00], xmm0
xor edx, edx
mov rcx, rsi
movaps xmm0, xmmword [rbp - 0x29]
movups xmmword [r14 + 0x1e10], xmm1
movaps xmm1, xmmword [rbp - 0x19]
movups xmmword [r14 + 0x1e20], xmm0
movaps xmm0, xmmword [rbp - 9]
movups xmmword [r14 + 0x1e30], xmm1
movaps xmm1, xmmword [rbp + 7]
movups xmmword [r14 + 0x1e40], xmm0
movaps xmm0, xmmword [rbp + 0x17]
movups xmmword [r14 + 0x1e50], xmm1
movaps xmm1, xmmword [rbp + 0x27]
movups xmmword [r14 + 0x1e60], xmm0
movups xmmword [r14 + 0x1e70], xmm1
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
test eax, eax
je 0x1400d0fa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x1400d0f77
mov ebx, eax
jmp 0x1400d0f80
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x1400d1015
test byte [rcx + 0x1c], 4
je 0x1400d1015
cmp byte [rcx + 0x19], 2
jb 0x1400d1015
mov edx, 0x87
jmp 0x1400d1002
lea r9, [rbp + 0x6f]
mov qword [rsp + 0x20], rbx
mov r8d, 0x10000
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x1400d1015
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x1400d0fdc
mov ebx, eax
jmp 0x1400d0fe5
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x1400d1015
test byte [rcx + 0x1c], 4
je 0x1400d1015
cmp byte [rcx + 0x19], 2
jb 0x1400d1015
mov edx, 0x88
mov rcx, qword [rcx + 0x10]
mov r9, rdi
mov r8, r13
mov dword [rsp + 0x20], ebx
call fcn.1400151b8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x1400d105c
test byte [rcx + 0x1c], 4
je 0x1400d105c
cmp byte [rcx + 0x19], 4
jb 0x1400d105c
mov rcx, qword [rcx + 0x10]
mov edx, 0x89
mov r8, r13
call fcn.14000c328
lea r11, [rsp + 0xc0]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret