Function at 0x14003d030
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 [0x140137088]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx esi, dl
mov rdi, rcx
xor r13d, r13d
mov ebx, r13d
mov dword [rbp - 0x45], ebx
test dl, dl
je 0x14003d095
mov rcx, qword [rcx + 0xe8]
test rcx, rcx
je 0x14003d095
mov rax, qword [rcx]
mov rdx, qword [rdi + 0xf0]
call qword [rax + 8]
mov qword [rbp - 0x19], r13
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x19]
call fcn.140011c6c
nop
test sil, sil
je 0x14003d2c0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
xor r8d, r8d
xor edx, edx
call fcn.14003d6f0
mov rdx, rax
mov qword [rbp - 0x39], rax
lea rcx, [rdi + 0x20]
lea rax, [rbp - 0x39]
cmp rcx, rax
je 0x14003d0ee
mov rax, qword [rcx]
mov qword [rcx], rdx
mov qword [rbp - 0x39], rax
add rcx, 8
lea rdx, [rbp - 0x31]
call fcn.14000a520
nop
lea rcx, [rbp - 0x39]
call fcn.14003d5e0
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x39]
call fcn.1400a930c
nop
lea rdx, [rdi + 0x40]
lea rcx, [rbp + 7]
call fcn.140008af0
mov ebx, 1
mov dword [rbp - 0x45], ebx
cmp dword [rdi + 0x38], 0
jbe 0x14003d2af
lea rcx, [rbp + 7]
call fcn.140002300
test al, al
jne 0x14003d2af
lea rcx, [rbp + 7]
call fcn.140002310
mov rcx, rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14003d2af
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
mov edx, dword [rdi + 0x38]
cmp eax, edx
sete r15b
jbe 0x14003d270
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
sub r14d, dword [rdi + 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.140008970
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, r14d
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x11]
call fcn.140015a88
lea rcx, [rbp - 0x11]
call fcn.140002370
mov r12, rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x21]
mov r8d, r14d
mov rdx, qword [rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003d264
cmp dword [rbp - 0x21], r14d
jne 0x14003d264
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x1d], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x1d]
mov r8d, r14d
mov rdx, qword [r12]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14003d264
cmp dword [rbp - 0x1d], r14d
jne 0x14003d267
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x14003d267
mov r15b, 1
lea rcx, [rbp - 0x11]
call fcn.140014ec8
test r15b, r15b
je 0x14003d28f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15b, r15b
je 0x14003d2af
lea rcx, [rbp + 7]
call fcn.140002310
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
and ebx, 0xfffffffe
mov dword [rbp - 0x45], ebx
lea rcx, [rbp + 7]
call fcn.140002320
jmp 0x14003d32f
cmp qword [rdi + 0x28], 0
je 0x14003d32f
lea rcx, [rdi + 0x10]
mov rdx, qword [rcx]
lea rsi, [rdi + 0x20]
mov r9, qword [rsi]
mov r8, qword [r9]
call fcn.14003d810
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
xor r8d, r8d
xor edx, edx
call fcn.14003d6f0
mov rcx, rax
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x39]
cmp rsi, rax
je 0x14003d317
mov rax, qword [rsi]
mov qword [rsi], rcx
mov qword [rbp - 0x39], rax
lea rcx, [rsi + 8]
lea rdx, [rbp - 0x31]
call fcn.14000a520
nop
lea rcx, [rbp - 0x39]
call fcn.14003d5e0
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x39]
call fcn.1400a930c
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14003d3ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x30], r13
lea rdx, [rdi + 0x40]
lea rcx, [rbp + 7]
call fcn.140008af0
or ebx, 4
mov dword [rbp - 0x45], ebx
and ebx, 0xfffffffb
mov dword [rbp - 0x45], ebx
or ebx, 2
mov dword [rbp - 0x45], ebx
lea rcx, [rbp + 7]
call fcn.140002300
test al, al
jne 0x14003d38d
lea rcx, str..lock
call fcn.140002620
mov r8, rax
lea rdx, str..lock
lea rcx, [rbp + 7]
call fcn.140009030
lea rcx, [rbp + 7]
call fcn.140002310
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
and ebx, 0xfffffffd
mov dword [rbp - 0x45], ebx
lea rcx, [rbp + 7]
call fcn.140002320
mov dword [rdi + 0x38], r13d
lea rcx, [rbp - 0x19]
call fcn.140011c94
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400a8f20
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