Function at 0x18002d4e4
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4a0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x180295a70]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov r14d, r9d
mov bpl, r8b
mov r13d, edx
mov r12, rcx
mov r15, qword [rsp + 0x508]
mov rsi, qword [rsp + 0x518]
mov rax, qword [rsp + 0x520]
mov qword [rsp + 0x70], rax
mov rax, rcx
neg rax
sbb edi, edi
not edi
lea rcx, [0x1802886b8]
mov rax, qword [0x1802886b8]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
and edi, 0x80070057
js 0x18002d803
and word [rsp + 0x80], 0
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x82]
call fcn.1801603e0
lea rdx, [rsp + 0x80]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, [0x180191cb0]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [rsp + 0x80]
call fcn.18015fd20
mov r8d, eax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.180001bf4
test rsi, rsi
je 0x18002d6c7
cmp word [rsi], 0
je 0x18002d6c7
mov dx, 0x2e
mov rcx, qword [rsp + 0x50]
call fcn.180162c40
test rax, rax
je 0x18002d658
sub rax, qword [rsp + 0x50]
sar rax, 1
test eax, eax
js 0x18002d658
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.180029a20
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180005168
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x18002d658
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp word [rsi], 0x2e
je 0x18002d66c
mov dx, 0x2e
lea rcx, [rsp + 0x50]
call fcn.18002a350
mov rcx, rsi
call fcn.18015fd20
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.18000e0dc
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x18002d6cc
lea rcx, [rsp + 0x80]
call fcn.18015fd20
mov r8d, eax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.180001bf4
mov rbx, qword [rsp + 0x50]
jmp 0x18002d6cc
mov rbx, qword [rsp + 0x50]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18002d713
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x18002d7a1
test bpl, bpl
je 0x18002d766
mov byte [rsp + 0x58], 0xff
mov byte [rsp + 0x59], 0xfe
and dword [rsp + 0x60], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, 2
lea rdx, [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18002d766
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x18002d7a1
and dword [rsp + 0x5c], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x5c]
mov r8d, r13d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18002d7a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
cmp rsi, 0xffffffffffffffff
je 0x18002d7b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x18002d803
mov eax, dword [rsp + 0x530]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x528]
mov dword [rsp + 0x40], eax
or dword [rsp + 0x38], 0xffffffff
mov eax, dword [rsp + 0x510]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r15
mov eax, dword [rsp + 0x500]
mov dword [rsp + 0x20], eax
mov r9d, r14d
mov r8, qword [rsp + 0x70]
lea rdx, [0x18018aeb0]
mov rcx, rbx
call fcn.18002b478
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x18002d829
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1801604e0
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret