Function at 0x18001bf30
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x180083330]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov qword [rbp - 0x60], r9
mov r15d, r8d
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x68], rcx
mov qword [rsp + 0x58], rdx
mov r13, rcx
xor r12d, r12d
mov esi, r12d
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x78], r12
mov qword [r9], r12
and r8b, 1
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
call fcn.18001c6ec
mov edi, eax
lea rdx, [rsp + 0x70]
mov rcx, r13
call fcn.18001c5d8
test edi, edi
cmovns edi, r12d
test edi, edi
js 0x18001c3d2
mov edi, eax
test eax, eax
cmovns edi, r12d
test edi, edi
js 0x18001c3d2
mov rcx, r13
call fcn.18001c438
test eax, eax
jns 0x18001c149
lea rdx, [rbp + 0x20]
mov edi, 0x104
mov ecx, edi
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetTempPathW]
nop dword [rax + rax]
test eax, eax
je 0x18001c11d
cmp eax, edi
jbe 0x18001c019
mov edi, 0x8007006f
jmp 0x18001c3d2
lea rcx, [rbp - 0x58]
call qword [sym.imp.ole32.dll_CoCreateGuid]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x18001c3d2
mov r8d, 0x27
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x58]
call qword [sym.imp.ole32.dll_StringFromGUID2]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x18001c3d2
mov r8d, 0x10
lea rdx, [0x180071380]
lea rcx, [rbp - 0x48]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
lea rcx, str..png
lea r12, str..jpg
xor edx, edx
test eax, eax
cmove r12, rcx
lea rax, [rbp + 0x20]
or r14, 0xffffffffffffffff
inc r14
cmp word [rax + r14*2], dx
jne 0x18001c08b
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.18001cb40
mov edi, eax
mov rsi, qword [rbp - 0x80]
test eax, eax
js 0x18001c0c2
lea rdx, [r14 + 1]
mov r9, r14
lea r8, [rbp + 0x20]
mov rcx, rsi
call fcn.18000a160
mov qword [rbp - 0x78], r14
test edi, edi
js 0x18001c3cf
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x80]
call fcn.18001ca7c
mov edi, eax
test eax, eax
js 0x18001c31d
mov rdx, r12
lea rcx, [rbp - 0x80]
call fcn.18001ca7c
mov edi, eax
xor r12d, r12d
test eax, eax
js 0x18001c320
xor r8d, r8d
mov rsi, qword [rbp - 0x80]
mov rdx, rsi
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_core_file_l2_1_2.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
je 0x18001c11d
mov r13, rsi
jmp 0x18001c141
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
mov eax, 0x80004005
cmovns edi, eax
test edi, edi
js 0x18001c396
mov rcx, r13
call fcn.18001bbbc
mov qword [rsp + 0x68], r12
lea r9, [rsp + 0x68]
lea r8, [0x18006e950]
xor edx, edx
mov rcx, r13
call qword [sym.imp.api_ms_win_shell_namespace_l1_1_0.dll_SHCreateItemFromParsingName]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x18001c2d5
mov qword [rbp - 0x58], r12
lea rdx, [rsp + 0x70]
mov r14d, 1
mov ecx, r14d
call qword [sym.imp.api_ms_win_storage_exports_internal_l1_1_0.dll_GetThreadFlags]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x18001c20f
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [0x180070180]
mov r8d, r14d
xor edx, edx
lea rcx, [0x180070170]
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x18001c1f3
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r8, [rbp - 0x58]
lea rdx, [0x180070160]
mov rax, qword [rax]
call qword [case.0x18004bf34.0]
mov edi, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18001c20f
mov qword [rsp + 0x60], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x18004bf34.0]
test edi, edi
js 0x18001c2ba
mov ecx, r15d
and ecx, 8
or ecx, 0x10
shl ecx, 7
mov eax, r15d
shr eax, 1
not eax
and al, r14b
mov r14d, ecx
or r14d, 0x24
test al, al
cmove r14d, ecx
test ebx, ebx
jne 0x18001c24e
cmp dword [rsp + 0x5c], r12d
cmove rbx, qword [rsp + 0x78]
mov qword [rsp + 0x58], rbx
mov rdi, qword [rbp - 0x58]
mov rax, qword [rdi]
mov r12, qword [rax + 0x68]
mov rcx, qword [rsp + 0x50]
xor eax, eax
test rcx, rcx
je 0x18001c279
mov qword [rsp + 0x50], rax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x18004bf34.0]
xor eax, eax
mov r8d, dword [rsp + 0x5c]
cmp ebx, r8d
cmovg r8d, ebx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, r14d
mov rdx, qword [rsp + 0x68]
mov rcx, rdi
mov rax, r12
call qword [case.0x18004bf34.0]
mov edi, eax
xor r12d, r12d
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x18001c2d5
mov qword [rbp - 0x58], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x18004bf34.0]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18001c2f1
mov qword [rsp + 0x68], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x18004bf34.0]
test edi, edi
js 0x18001c396
test r15b, 4
je 0x18001c396
shr r15d, 1
not r15d
test r15b, 1
je 0x18001c329
mov rcx, qword [rsp + 0x50]
call fcn.18001cd70
mov edi, eax
jmp 0x18001c396
xor r12d, r12d
mov rsi, qword [rbp - 0x80]
jmp 0x18001c3d2
mov qword [rsp + 0x58], r12
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.18001cec0
mov edi, eax
mov rbx, qword [rsp + 0x58]
test eax, eax
js 0x18001c381
cmp qword [rsp + 0x50], rbx
je 0x18001c381
test rbx, rbx
je 0x18001c364
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x18004bf34.0]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rbx
test rcx, rcx
je 0x18001c381
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x18004bf34.0]
nop
test rbx, rbx
je 0x18001c396
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [case.0x18004bf34.0]
cmp r13, qword [rbp - 0x68]
je 0x18001c3ab
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test edi, edi
js 0x18001c3d2
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov r8, qword [rbp - 0x60]
lea rdx, [0x18006ed10]
mov rax, qword [rax]
call qword [case.0x18004bf34.0]
mov edi, eax
jmp 0x18001c3d2
xor r12d, r12d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18001c3ef
mov qword [rsp + 0x50], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x18004bf34.0]
nop
test rsi, rsi
je 0x18001c403
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.180062960
mov rbx, qword [rsp + 0x390]
add rsp, 0x340
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret