Function at 0x18002f83c
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.18002f640
xor esi, esi
cmp eax, esi
je 0x18002fb30
mov rcx, rdi
call fcn.18002f6a0
cmp eax, esi
je 0x18002fb30
mov dword [rsp + 0x30], esi
mov word [rsp + 0xc0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xc2]
call fcn.180059f80
lea rdx, [rsp + 0xc0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.180002f7c
mov r8d, eax
lea rdx, str.___08x
lea rcx, [rsp + 0x38]
call fcn.180005490
cmp qword [rax + 0x20], 8
jb 0x18002f8e9
mov rdx, qword [rax + 8]
jmp 0x18002f8ed
lea rdx, [rax + 8]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x58], 8
jb 0x18002f90d
mov rcx, qword [rsp + 0x40]
call fcn.1800018ec
lea rcx, [rsp + 0xc0]
call fcn.180001f48
cmp eax, esi
je 0x18002fb1d
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, esi
je 0x18002fb1d
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call fcn.18003c898
cmp eax, esi
jne 0x18002fb1d
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, [0x18002fb58]
mov ebp, 1
mov edx, ebp
lea rcx, [rsp + 0xc0]
call fcn.1800018f4
cmp dword [rsp + 0x30], esi
je 0x18002fb1d
mov word [rsp + 0x2d0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2d2]
call fcn.180059f80
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 0x18002f9ec
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.180002f7c
mov r8d, eax
mov r9, rbx
lea rdx, str..._08x._s
lea rcx, [rsp + 0x38]
call fcn.180005490
cmp qword [rax + 0x20], 8
jb 0x18002fa15
mov rdx, qword [rax + 8]
jmp 0x18002fa19
lea rdx, [rax + 8]
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x58], 8
jb 0x18002fa39
mov rcx, qword [rsp + 0x40]
call fcn.1800018ec
mov r9d, ebp
xor r8d, r8d
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x88]
call fcn.180001d58
nop
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x38]
call fcn.1800343bc
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x2d0]
call fcn.18003c09c
cmp eax, esi
sete bl
lea rcx, [rsp + 0x38]
call fcn.180009568
mov rcx, qword [rsp + 0x60]
call fcn.1800018ec
mov qword [rsp + 0x60], rsi
mov rcx, qword [rsp + 0x38]
call fcn.1800018ec
cmp bl, sil
je 0x18002faff
mov ebx, esi
mov r8d, ebp
mov rdx, rdi
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, esi
jne 0x18002fad7
mov r8d, ebp
mov rdx, rdi
lea rcx, [rsp + 0x2d0]
call fcn.18002f334
jmp 0x18002fad9
mov eax, ebp
cmp eax, esi
jne 0x18002fb03
mov ecx, reloc.WS2_32.dll_sendto
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, ebp
cmp ebx, 5
jl 0x18002faaa
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x18002fb03
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x88]
call fcn.180007bd4
mov rcx, qword [rsp + 0x88]
call fcn.1800018ec
lea rcx, [rsp + 0xc0]
call fcn.180002984
mov eax, dword [rsp + 0x30]
jmp 0x18002fb32
xor eax, eax
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.180059930
mov rbx, qword [rsp + 0x520]
add rsp, 0x4f0
pop rdi
pop rsi
pop rbp
ret