Function at 0x18002d378
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 [0x18009a658]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov ebx, edx
mov rdi, rcx
call fcn.18002d17c
xor esi, esi
cmp eax, esi
je 0x18002d66c
mov rcx, rdi
call fcn.18002d1dc
cmp eax, esi
je 0x18002d66c
mov dword [rsp + 0x30], esi
mov word [rsp + 0xc0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xc2]
call fcn.180055bd0
lea rdx, [rsp + 0xc0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.180002f5c
mov r8d, eax
lea rdx, str.___08x
lea rcx, [rsp + 0x38]
call fcn.180005248
cmp qword [rax + 0x20], 8
jb 0x18002d425
mov rdx, qword [rax + 8]
jmp 0x18002d429
lea rdx, [rax + 8]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x58], 8
jb 0x18002d449
mov rcx, qword [rsp + 0x40]
call fcn.180054958
lea rcx, [rsp + 0xc0]
call fcn.180001f58
cmp eax, esi
je 0x18002d659
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, esi
je 0x18002d659
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call fcn.180039fbc
cmp eax, esi
jne 0x18002d659
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, [0x18002d694]
mov ebp, 1
mov edx, ebp
lea rcx, [rsp + 0xc0]
call fcn.180001904
cmp dword [rsp + 0x30], esi
je 0x18002d659
mov word [rsp + 0x2d0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2d2]
call fcn.180055bd0
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 0x18002d528
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.180002f5c
mov r8d, eax
mov r9, rbx
lea rdx, str..._08x._s
lea rcx, [rsp + 0x38]
call fcn.180005248
cmp qword [rax + 0x20], 8
jb 0x18002d551
mov rdx, qword [rax + 8]
jmp 0x18002d555
lea rdx, [rax + 8]
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x58], 8
jb 0x18002d575
mov rcx, qword [rsp + 0x40]
call fcn.180054958
mov r9d, ebp
xor r8d, r8d
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x88]
call fcn.180001d68
nop
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x38]
call fcn.180031ed8
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x2d0]
call fcn.1800397c0
cmp eax, esi
sete bl
lea rcx, [rsp + 0x38]
call fcn.180008c64
mov rcx, qword [rsp + 0x60]
call fcn.180054958
mov qword [rsp + 0x60], rsi
mov rcx, qword [rsp + 0x38]
call fcn.180054958
cmp bl, sil
je 0x18002d63b
mov ebx, esi
mov r8d, ebp
mov rdx, rdi
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, esi
jne 0x18002d613
mov r8d, ebp
mov rdx, rdi
lea rcx, [rsp + 0x2d0]
call fcn.18002ce74
jmp 0x18002d615
mov eax, ebp
cmp eax, esi
jne 0x18002d63f
mov ecx, reloc.WS2_32.dll_sendto
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, ebp
cmp ebx, 5
jl 0x18002d5e6
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x18002d63f
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x88]
call fcn.180007770
mov rcx, qword [rsp + 0x88]
call fcn.180054958
lea rcx, [rsp + 0xc0]
call fcn.180002964
mov eax, dword [rsp + 0x30]
jmp 0x18002d66e
xor eax, eax
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.180055580
mov rbx, qword [rsp + 0x520]
add rsp, 0x4f0
pop rdi
pop rsi
pop rbp
ret