Function at 0x18002f8d4
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x4f0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1800a1658]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov ebx, edx
mov rdi, rcx
call fcn.18002f6d8
xor esi, esi
cmp eax, esi
je 0x18002fbc8
mov rcx, rdi
call fcn.18002f738
cmp eax, esi
je 0x18002fbc8
mov dword [rsp + 0x30], esi
mov word [rsp + 0xc0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xc2]
call fcn.18005a150
lea rdx, [rsp + 0xc0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.180002ff0
mov r8d, eax
lea rdx, str.___08x
lea rcx, [rsp + 0x38]
call fcn.180005488
cmp qword [rax + 0x20], 8
jb 0x18002f981
mov rdx, qword [rax + 8]
jmp 0x18002f985
lea rdx, [rax + 8]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x58], 8
jb 0x18002f9a5
mov rcx, qword [rsp + 0x40]
call fcn.180058ed8
lea rcx, [rsp + 0xc0]
call fcn.180001fc0
cmp eax, esi
je 0x18002fbb5
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, esi
je 0x18002fbb5
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call fcn.18003c914
cmp eax, esi
jne 0x18002fbb5
mov dword [rsp + 0x70], ebx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
lea r8, [0x18002fbf0]
mov ebp, 1
mov edx, ebp
lea rcx, [rsp + 0xc0]
call fcn.1800018f0
cmp dword [rsp + 0x30], esi
je 0x18002fbb5
mov word [rsp + 0x2d0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2d2]
call fcn.18005a150
mov rdx, rdi
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rbx, rax
cmp rax, rsi
je 0x18002fa84
lea rdx, str..rar
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea rcx, str..zip
cmp eax, esi
cmovne rcx, rbx
mov rbx, rcx
call fcn.180002ff0
mov r8d, eax
mov r9, rbx
lea rdx, str..._08x._s
lea rcx, [rsp + 0x38]
call fcn.180005488
cmp qword [rax + 0x20], 8
jb 0x18002faad
mov rdx, qword [rax + 8]
jmp 0x18002fab1
lea rdx, [rax + 8]
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x58], 8
jb 0x18002fad1
mov rcx, qword [rsp + 0x40]
call fcn.180058ed8
mov r9d, ebp
xor r8d, r8d
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x88]
call fcn.180001d54
nop
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x38]
call fcn.180033e08
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x2d0]
call fcn.18003c118
cmp eax, esi
sete bl
lea rcx, [rsp + 0x38]
call fcn.1800094cc
mov rcx, qword [rsp + 0x60]
call fcn.180058ed8
mov qword [rsp + 0x60], rsi
mov rcx, qword [rsp + 0x38]
call fcn.180058ed8
cmp bl, sil
je 0x18002fb97
mov ebx, esi
mov r8d, ebp
mov rdx, rdi
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, esi
jne 0x18002fb6f
mov r8d, ebp
mov rdx, rdi
lea rcx, [rsp + 0x2d0]
call fcn.18002f414
jmp 0x18002fb71
mov eax, ebp
cmp eax, esi
jne 0x18002fb9b
mov ecx, reloc.WS2_32.dll_sendto
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, ebp
cmp ebx, 5
jl 0x18002fb42
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x18002fb9b
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x88]
call fcn.180007b38
mov rcx, qword [rsp + 0x88]
call fcn.180058ed8
lea rcx, [rsp + 0xc0]
call fcn.1800029cc
mov eax, dword [rsp + 0x30]
jmp 0x18002fbca
xor eax, eax
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.180059b00
mov rbx, qword [rsp + 0x520]
add rsp, 0x4f0
pop rdi
pop rsi
pop rbp
ret