Function at 0x1402220dc
Capabilities:
Check if file exists
Copy file
Create directory
Move file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rdi, r9
mov rsi, r8
mov rbx, rdx
lea rcx, [rbp - 0x40]
call fcn.1402541c8
nop
lea rdx, str.SeSecurityPrivilege
lea rcx, [rbp - 0x60]
call fcn.14008c350
lea rcx, [rbp - 0x60]
call fcn.14025c4c4
lea rcx, [rbp - 0x60]
call fcn.14007a7c0
lea rdx, str.SeRestorePrivilege
lea rcx, [rbp - 0x60]
call fcn.14008c350
lea rcx, [rbp - 0x60]
call fcn.14025c4c4
lea rcx, [rbp - 0x60]
call fcn.14007a7c0
xor r15d, r15d
mov qword [rsp + 0x60], r15
lea rdx, str.D:_A_OICI_GA___S_1_5_80_1523878533_411328482_2798077809_3098663872_2604013308_
lea rcx, [rbp]
call fcn.14008c350
nop
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1402221b6
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x40], r15b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x44], eax
lea rax, [0x14012cbe0]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140110fdc
lea rcx, [rsp + 0x40]
call fcn.1401040a0
mov qword [rsp + 0x60], r15
lea rcx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rcx, qword [rbp]
xor r9d, r9d
lea r8, [rsp + 0x60]
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
nop dword [rax + rax]
test eax, eax
jne 0x14022225f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x140222200
movzx edi, ax
or edi, 0x80070000
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x140222695
mov dword [rsp + 0x40], edi
cmp qword [rbx + 0x18], 8
jb 0x14022221c
mov rbx, qword [rbx]
mov qword [rsp + 0x50], rbx
lea rcx, str.failed_to_create_security_descriptor
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14044a6b3]
mov rcx, rax
call fcn.140005ba8
jmp 0x140222695
mov dword [rsp + 0x68], DispGetParam
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], r15d
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
jne 0x14022235a
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
cmp eax, 1
je 0x14022235a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x1402222db
movzx edi, ax
or edi, 0x80070000
call fcn.140091ae4
mov rcx, rax
cmp dword [rax], 3
jbe 0x140222695
mov dword [rsp + 0x40], edi
cmp qword [rbx + 0x18], 8
jb 0x1402222fa
mov rbx, qword [rbx]
mov qword [rsp + 0x50], rbx
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rax, qword [rbp - 0x40]
mov qword [rsp + 0x48], rax
lea rax, str.failed_to_create_DLP_folder
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x14044a67d]
call fcn.140001fa0
jmp 0x140222695
mov r8, rsi
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.140077980
nop
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
je 0x14022245a
or eax, 0xffffffff
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.14008c350
nop
mov r8, qword [rsp + 0x40]
mov dl, 1
lea rcx, [rbp - 0x60]
call fcn.14010851c
mov esi, eax
lea rcx, [rbp - 0x60]
call fcn.14007a7c0
test esi, esi
jns 0x14022245a
call fcn.140091ae4
mov rcx, rax
cmp dword [rax], 3
jbe 0x14022244a
mov dword [rsp + 0x40], esi
cmp qword [rbx + 0x18], 8
jb 0x1402223ee
mov rbx, qword [rbx]
mov qword [rsp + 0x58], rbx
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rax, qword [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rax, str.failed_to_remove_old_DLP_hash_folder
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x14044a67d]
call fcn.140001fa0
nop
lea rcx, [rbp - 0x80]
call fcn.14007a7c0
mov edi, esi
jmp 0x140222695
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
cmp eax, 1
je 0x140222522
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x14022249d
movzx edi, ax
or edi, 0x80070000
call fcn.140091ae4
mov rcx, rax
cmp dword [rax], 3
jbe 0x140222514
mov dword [rsp + 0x40], edi
cmp qword [rbx + 0x18], 8
jb 0x1402224b8
mov rbx, qword [rbx]
mov qword [rsp + 0x58], rbx
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rax, qword [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rax, str.failed_to_create_DLP_hash_folder
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x14044a67d]
call fcn.140001fa0
nop
lea rcx, [rbp - 0x80]
call fcn.14007a7c0
jmp 0x140222695
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov esi, 4
mov r8d, esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
movdqa xmm0, xmmword [0x1403a9cf0]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], r15w
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r15w
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.14007b238
lea r8, [0x1403a9ce8]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x40]
call fcn.1400b9f70
nop
lea r8, [rbp - 0x20]
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.1400f0a08
mov rdx, rax
mov rcx, rdi
call fcn.14008aed0
lea rcx, [rbp + 0x20]
call fcn.14007a7c0
nop
lea rcx, [rbp + 0x40]
call fcn.14007a7c0
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1402225c2
mov rdx, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x1402225cc
mov rbx, qword [rbx]
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140222656
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x140222600
movzx edi, ax
or edi, 0x80070000
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x14022263e
lea rcx, str.failed_to_copy_archive_file
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x40], edi
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14044a72a]
mov rcx, rax
call fcn.14000789c
nop
lea rcx, [rbp - 0x20]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x60]
call fcn.14007a7c0
jmp 0x140222514
cmp qword [rdi + 0x18], 8
jb 0x140222660
mov rdi, qword [rdi]
mov r8d, esi
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x20]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x60]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x80]
call fcn.14007a7c0
mov edi, r15d
lea rcx, [rbp]
call fcn.14007a7c0
nop
lea rcx, [rsp + 0x60]
call fcn.14012c640
nop
lea rcx, [rbp - 0x40]
call fcn.14007a7c0
mov eax, edi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140112420
add rsp, 0x170
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret