Function at 0x14003ca70
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx edi, dl
mov rbx, rcx
xor r13d, r13d
mov dword [rbp - 0x45], r13d
test dl, dl
je 0x14003cad3
mov rcx, qword [rcx + 0xe8]
test rcx, rcx
je 0x14003cad3
mov rax, qword [rcx]
mov rdx, qword [rbx + 0xf0]
call qword [rax + 8]
mov qword [rbp - 0x19], r13
lea rdx, [rbx + 8]
lea rcx, [rbp - 0x19]
call fcn.140011d7c
nop
mov r12d, 4
test dil, dil
je 0x14003cd08
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
xor r8d, r8d
xor edx, edx
call fcn.14003d140
mov rdx, rax
mov qword [rbp - 0x39], rax
lea rcx, [rbx + 0x20]
lea rax, [rbp - 0x39]
cmp rcx, rax
je 0x14003cb32
mov rax, qword [rcx]
mov qword [rcx], rdx
mov qword [rbp - 0x39], rax
add rcx, 8
lea rdx, [rbp - 0x31]
call fcn.14000a630
nop
lea rcx, [rbp - 0x39]
call fcn.14003d030
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x39]
call fcn.1400a6bfc
nop
lea rdx, [rbx + 0x40]
lea rcx, [rbp + 7]
call fcn.140008c00
mov r15d, 1
mov dword [rbp - 0x45], r15d
cmp dword [rbx + 0x38], 0
jbe 0x14003ccf5
lea rcx, [rbp + 7]
call fcn.1400024d0
test al, al
jne 0x14003ccf5
lea rcx, [rbp + 7]
call fcn.1400024e0
mov rcx, rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14003ccf5
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov edx, dword [rbx + 0x38]
cmp eax, edx
sete r14b
jbe 0x14003ccb6
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esi, dword [rbx + 0x38]
mov dword [rbp - 0x21], r13d
xor eax, eax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
lea rcx, [rbp - 0x11]
call fcn.140008a80
nop
mov byte [rbp - 0x49], 0
lea rax, [rbp - 0x11]
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x49]
mov qword [rbp - 0x31], rax
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x39], xmm0
mov edx, esi
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x11]
call fcn.140015b98
lea rcx, [rbp - 0x11]
call fcn.140002540
mov r13, rax
mov qword [rsp + 0x20], 0
lea r9, [rbp - 0x21]
mov r8d, esi
mov rdx, qword [rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003cca7
cmp dword [rbp - 0x21], esi
jne 0x14003cca7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov dword [rbp - 0x1d], eax
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x1d]
mov r8d, esi
mov rdx, qword [r13]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14003cca7
cmp dword [rbp - 0x1d], esi
jne 0x14003ccaa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x14003ccaa
mov r14b, 1
lea rcx, [rbp - 0x11]
call fcn.140014fd8
xor r13d, r13d
test r14b, r14b
je 0x14003ccd5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14b, r14b
je 0x14003ccf5
lea rcx, [rbp + 7]
call fcn.1400024e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
and r15d, 0xfffffffe
mov dword [rbp - 0x45], r15d
lea rcx, [rbp + 7]
call fcn.1400024f0
jmp 0x14003cd77
cmp qword [rbx + 0x28], 0
je 0x14003cd77
lea rcx, [rbx + 0x10]
mov rdx, qword [rcx]
lea rdi, [rbx + 0x20]
mov r9, qword [rdi]
mov r8, qword [r9]
call fcn.14003d260
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
xor r8d, r8d
xor edx, edx
call fcn.14003d140
mov rcx, rax
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x39]
cmp rdi, rax
je 0x14003cd5f
mov rax, qword [rdi]
mov qword [rdi], rcx
mov qword [rbp - 0x39], rax
lea rcx, [rdi + 8]
lea rdx, [rbp - 0x31]
call fcn.14000a630
nop
lea rcx, [rbp - 0x39]
call fcn.14003d030
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x39]
call fcn.1400a6bfc
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14003cdf8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], r13
lea rdx, [rbx + 0x40]
lea rcx, [rbp + 7]
call fcn.140008c00
mov dword [rbp - 0x45], r12d
and r12d, 0xfffffffb
mov dword [rbp - 0x45], r12d
mov edi, 2
mov dword [rbp - 0x45], edi
lea rcx, [rbp + 7]
call fcn.1400024d0
test al, al
jne 0x14003cdd7
lea rcx, str..lock
call fcn.1400027f0
mov r8, rax
lea rdx, str..lock
lea rcx, [rbp + 7]
call fcn.140009140
lea rcx, [rbp + 7]
call fcn.1400024e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
and edi, 0xfffffffd
mov dword [rbp - 0x45], edi
lea rcx, [rbp + 7]
call fcn.1400024f0
mov dword [rbx + 0x38], r13d
lea rcx, [rbp - 0x19]
call fcn.140011da4
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400a6810
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret