Function at 0x18002f608
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 [0x1800a1628]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov ebx, edx
mov rdi, rcx
call fcn.18002f40c
xor esi, esi
cmp eax, esi
je 0x18002f8fc
mov rcx, rdi
call fcn.18002f46c
cmp eax, esi
je 0x18002f8fc
mov dword [rsp + 0x30], esi
mov word [rsp + 0xc0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xc2]
call fcn.180059db0
lea rdx, [rsp + 0xc0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.180002f84
mov r8d, eax
lea rdx, str.___08x
lea rcx, [rsp + 0x38]
call fcn.180005498
cmp qword [rax + 0x20], 8
jb 0x18002f6b5
mov rdx, qword [rax + 8]
jmp 0x18002f6b9
lea rdx, [rax + 8]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x58], 8
jb 0x18002f6d9
mov rcx, qword [rsp + 0x40]
call fcn.180058b34
lea rcx, [rsp + 0xc0]
call fcn.180001f54
cmp eax, esi
je 0x18002f8e9
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, esi
je 0x18002f8e9
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call fcn.18003c5e8
cmp eax, esi
jne 0x18002f8e9
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, [0x18002f924]
mov ebp, 1
mov edx, ebp
lea rcx, [rsp + 0xc0]
call fcn.180001900
cmp dword [rsp + 0x30], esi
je 0x18002f8e9
mov word [rsp + 0x2d0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2d2]
call fcn.180059db0
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 0x18002f7b8
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.180002f84
mov r8d, eax
mov r9, rbx
lea rdx, str..._08x._s
lea rcx, [rsp + 0x38]
call fcn.180005498
cmp qword [rax + 0x20], 8
jb 0x18002f7e1
mov rdx, qword [rax + 8]
jmp 0x18002f7e5
lea rdx, [rax + 8]
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x58], 8
jb 0x18002f805
mov rcx, qword [rsp + 0x40]
call fcn.180058b34
mov r9d, ebp
xor r8d, r8d
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x88]
call fcn.180001d64
nop
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x38]
call fcn.180033b1c
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x2d0]
call fcn.18003bdec
cmp eax, esi
sete bl
lea rcx, [rsp + 0x38]
call fcn.1800095a4
mov rcx, qword [rsp + 0x60]
call fcn.180058b34
mov qword [rsp + 0x60], rsi
mov rcx, qword [rsp + 0x38]
call fcn.180058b34
cmp bl, sil
je 0x18002f8cb
mov ebx, esi
mov r8d, ebp
mov rdx, rdi
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, esi
jne 0x18002f8a3
mov r8d, ebp
mov rdx, rdi
lea rcx, [rsp + 0x2d0]
call fcn.18002f10c
jmp 0x18002f8a5
mov eax, ebp
cmp eax, esi
jne 0x18002f8cf
mov ecx, reloc.WS2_32.dll_sendto
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, ebp
cmp ebx, 5
jl 0x18002f876
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x18002f8cf
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x88]
call fcn.180007c10
mov rcx, qword [rsp + 0x88]
call fcn.180058b34
lea rcx, [rsp + 0xc0]
call fcn.180002960
mov eax, dword [rsp + 0x30]
jmp 0x18002f8fe
xor eax, eax
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.180059760
mov rbx, qword [rsp + 0x520]
add rsp, 0x4f0
pop rdi
pop rsi
pop rbp
ret