Function at 0x1400352e4
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r13
push r15
sub rsp, 0x30
and qword [rsp + 0x50], 0
mov rbx, rcx
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
lea r13, [0x140003c28]
cmp rcx, r15
je 0x140035337
test byte [rcx + 0x1c], 1
je 0x140035337
cmp byte [rcx + 0x19], 4
jb 0x140035337
mov rcx, qword [rcx + 0x10]
mov edx, 0x158
mov r8, r13
call fcn.14001dd24
test byte [rbx + 0x154], 4
jne 0x140035358
lea r8, [0x1400041f0]
lea rcx, [0x140003c50]
mov edx, 0x1be2
call fcn.1400a8be8
mov rcx, qword [rbx + 0x238]
lea rdx, [rbx + 0x188]
lea r8, [rsp + 0x50]
call fcn.140134104
mov edi, eax
test eax, eax
js 0x1400354e5
mov rax, qword [rbx + 0x1e0]
test rax, rax
je 0x140035433
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x1400353bd
test byte [rcx + 0x1c], 1
je 0x1400353bd
cmp byte [rcx + 0x19], 4
jb 0x1400353bd
mov r9, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
mov edx, 0x159
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.14001ed50
mov rdx, qword [rbx + 0x1e0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140035433
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140035420
test byte [rcx + 0x1c], 1
je 0x140035420
cmp byte [rcx + 0x19], 2
jb 0x140035420
mov r9, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0x1e0]
mov edx, 0x15a
mov rcx, qword [rcx + 0x10]
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.140028ec8
mov rcx, qword [0x14017d3a8]
movzx edi, si
or edi, 0x80070000
test esi, esi
cmovle edi, esi
jmp 0x1400354ec
cmp dword [rbx + reloc.ADVAPI32.dll_TraceEvent], 4
je 0x1400354e5
mov rax, qword [rbx + 0x240]
test rax, rax
je 0x1400354e5
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140035485
test byte [rcx + 0x1c], 1
je 0x140035485
cmp byte [rcx + 0x19], 4
jb 0x140035485
mov r9, qword [rbx + 0x238]
mov rcx, qword [rcx + 0x10]
mov edx, 0x15b
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.14001ed50
mov rdx, qword [rbx + 0x240]
mov rcx, qword [rbx + 0x238]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1400354e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140035420
test byte [rcx + 0x1c], 1
je 0x140035420
cmp byte [rcx + 0x19], 2
jb 0x140035420
mov r9, qword [rbx + 0x238]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0x240]
mov edx, 0x15c
jmp 0x140035408
mov rcx, qword [0x14017d3a8]
cmp qword [rsp + 0x50], 0
je 0x140035506
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
test edi, edi
jns 0x140035536
cmp rcx, r15
je 0x140035558
test byte [rcx + 0x1c], 1
je 0x140035536
cmp byte [rcx + 0x19], 2
jb 0x140035536
mov rcx, qword [rcx + 0x10]
mov edx, 0x15d
mov r9d, edi
mov r8, r13
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140035558
test byte [rcx + 0x1c], 1
je 0x140035558
cmp byte [rcx + 0x19], 4
jb 0x140035558
mov rcx, qword [rcx + 0x10]
mov edx, 0x15e
mov r8, r13
call fcn.14001dd24
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x30
pop r15
pop r13
pop rdi
ret