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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx ebx, dl
mov r14, rcx
xor r12d, r12d
mov esi, r12d
mov dword [rbp - 0x55], r12d
test dl, dl
je 0x18003aad1
mov rcx, qword [rcx + 0xe8]
test rcx, rcx
je 0x18003aad1
mov rax, qword [rcx]
mov rdx, qword [r14 + 0xf0]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 1]
call fcn.18001cb20
lea rdx, [r14 + 8]
lea rcx, [rbp - 1]
call fcn.1800038d0
nop
test bl, bl
je 0x18003ad25
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
xor r8d, r8d
xor edx, edx
call fcn.18003b310
mov qword [rbp - 0x29], rax
lea rbx, [r14 + 0x20]
lea rax, [rbp - 0x29]
cmp rbx, rax
je 0x18003ab3b
lea rdx, [rbp - 0x29]
mov rcx, rbx
call fcn.180003810
mov rcx, qword [rbx]
mov rax, qword [rbp - 0x29]
mov qword [rbx], rax
mov qword [rbp - 0x29], rcx
lea rcx, [rbx + 8]
lea rdx, [rbp - 0x21]
call fcn.18001c6c0
nop
lea rcx, [rbp - 0x29]
call fcn.18003b0b0
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x29]
call fcn.180005040
nop
lea rdx, [r14 + 0x40]
lea rcx, [rbp + 7]
call fcn.1800096b0
mov esi, 1
mov dword [rbp - 0x55], esi
cmp dword [r14 + 0x38], 0
jbe 0x18003ad11
lea rcx, [rbp + 7]
call fcn.180005c00
test al, al
jne 0x18003ad11
lea rcx, [rbp + 7]
call fcn.180003a80
mov rcx, rax
mov qword [rsp + 0x30], r12
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 rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x18003ad11
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov edx, dword [r14 + 0x38]
cmp eax, edx
sete r15b
jbe 0x18003acd2
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
sub edi, dword [r14 + 0x38]
mov dword [rbp - 0x11], r12d
xor eax, eax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r12
mov byte [rbp - 0x59], al
lea rax, [rbp - 0x29]
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x59]
mov qword [rbp - 0x41], rax
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
mov edx, edi
lea r8, [rbp - 0x49]
lea rcx, [rbp - 0x29]
call fcn.18003b4a0
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x11]
mov r8d, edi
mov rdx, qword [rbp - 0x29]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18003aca5
cmp dword [rbp - 0x11], edi
jne 0x18003aca5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 9], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp - 9]
mov r8d, edi
mov rdx, qword [rbp - 0x29]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18003aca5
cmp dword [rbp - 9], edi
jne 0x18003aca8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x18003aca8
mov r15b, 1
lea rcx, [rbp - 0x29]
call fcn.180003800
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x18003acd2
mov rdx, qword [rbp - 0x19]
sub rdx, rcx
call fcn.180005040
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r12
test r15b, r15b
je 0x18003acf1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15b, r15b
je 0x18003ad11
lea rcx, [rbp + 7]
call fcn.180003a80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
and esi, 0xfffffffe
mov dword [rbp - 0x55], esi
lea rcx, [rbp + 7]
call fcn.180003b80
jmp 0x18003adf2
cmp qword [r14 + 0x28], 0
je 0x18003adf2
mov rax, qword [r14 + 0x10]
mov qword [rbp - 9], rax
lea rdx, [r14 + 0x10]
lea rcx, [rbp - 9]
call fcn.180003810
mov rbx, qword [rbp - 9]
lea r15, [r14 + 0x20]
mov rax, qword [r15]
mov qword [rbp - 0x11], rax
mov rdx, r15
lea rcx, [rbp - 0x11]
call fcn.180003810
mov rax, qword [r15]
mov rcx, qword [rax]
mov qword [rbp - 0x39], rcx
mov rdx, r15
lea rcx, [rbp - 0x39]
call fcn.180003810
mov rax, qword [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x39]
mov r8, rbx
lea rdx, [rbp - 0x29]
lea rcx, [r14 + 0x10]
call fcn.18003b3a0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
xor r8d, r8d
xor edx, edx
call fcn.18003b310
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x49]
cmp r15, rax
je 0x18003adda
lea rdx, [rbp - 0x49]
mov rcx, r15
call fcn.180003810
mov rcx, qword [r15]
mov rax, qword [rbp - 0x49]
mov qword [r15], rax
mov qword [rbp - 0x49], rcx
lea rcx, [r15 + 8]
lea rdx, [rbp - 0x41]
call fcn.18001c6c0
nop
lea rcx, [rbp - 0x49]
call fcn.18003b0b0
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x49]
call fcn.180005040
mov rcx, qword [r14 + 0x30]
test rcx, rcx
je 0x18003ae62
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14 + 0x30], r12
lea rdx, [r14 + 0x40]
lea rcx, [rbp + 7]
call fcn.1800096b0
or esi, 4
mov dword [rbp - 0x55], esi
and esi, 0xfffffffb
mov dword [rbp - 0x55], esi
or esi, 2
mov dword [rbp - 0x55], esi
lea rcx, [rbp + 7]
call fcn.180005c00
test al, al
jne 0x18003ae41
lea rdx, str..lock
lea rcx, [rbp + 7]
call fcn.1800147a0
lea rcx, [rbp + 7]
call fcn.180003a80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
and esi, 0xfffffffd
mov dword [rbp - 0x55], esi
lea rcx, [rbp + 7]
call fcn.180003b80
mov dword [r14 + 0x38], r12d
lea rcx, [rbp - 1]
call fcn.180003920
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800d8050
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret