Function at 0x1400523d0
Capabilities:
Delete directory
Delete file
Set current directory

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xad0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400e71f0]
xor rax, rsp
mov qword [rsp + 0xac0], rax
mov r13, rcx
call fcn.140069504
mov r14, qword [rax + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, qword [r13 + 0x128]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
xor r15d, r15d
mov edi, r15d
test eax, eax
jle 0x140052462
nop
nop
mov edx, edi
lea rcx, [r13 + 0xe8]
call fcn.140073478
test rax, rax
je 0x14005245b
mov rcx, rax
call fcn.140067524
add edi, 1
cmp edi, ebx
jl 0x140052440
call fcn.140015a10
mov edi, eax
cmp dword [0x1400e8b08], 1
jne 0x140052497
cmp eax, 5
je 0x14005248d
cmp eax, 6
je 0x14005248d
cmp eax, 0xa
je 0x14005248d
xor edx, edx
lea ecx, [rdx + 2]
call fcn.140017fa0
jmp 0x140052497
xor edx, edx
lea ecx, [rdx + 1]
call fcn.140015f90
cmp edi, 5
je 0x1400524a6
cmp edi, 6
je 0x1400524a6
cmp edi, 0xa
jne 0x1400524b5
cmp dword [r14 + 0xdf8], 1
jne 0x1400524b5
call fcn.1400217b0
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x490]
call fcn.140080d50
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x70]
call fcn.140080d50
mov rdx, qword [r14 + 0x6a0]
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, qword [r14 + 0x6a0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1400a3ff4]
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [0x1400e9300]
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.1400696cc
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x140052572
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x70]
lea rax, [rsp + 0x70]
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x1400525c7
movzx edi, cx
mov ecx, edi
call fcn.1400696b8
test rax, rax
je 0x1400526c5
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140003a40
mov rbx, qword [rsp + 0x50]
jmp 0x1400526c5
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140052641
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400526c5
cmp dword [rdx + 0x10], eax
jge 0x140052613
cmp dword [rbx - 0xc], eax
jge 0x140052607
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], ax
jmp 0x1400526c5
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14005262a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
jmp 0x1400526c5
mov ebp, dword [rbx - 0x10]
lea r12, [rsp + 0x70]
sub r12, rbx
sar r12, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140052671
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140003180
mov rbx, qword [rsp + 0x50]
cmp r12, rbp
ja 0x140052691
movsxd rax, edi
lea rbp, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rbp
mov rdx, rbp
mov rcx, rbx
call fcn.140081c40
jmp 0x1400526ab
movsxd rax, edi
lea rbp, [rax + rax]
mov r9, rbp
lea r8, [rsp + 0x70]
mov rdx, rbp
mov rcx, rbx
call fcn.140080540
test edi, edi
js 0x140052921
cmp edi, dword [rbx - 0xc]
jg 0x140052921
mov dword [rbx - 0x10], edi
mov word [rbx + rbp], 0
mov dx, 0x5c
mov rcx, rbx
call fcn.140080890
test rax, rax
jne 0x1400526da
mov eax, esi
jmp 0x1400526e0
sub rax, rbx
sar rax, 1
mov r8d, eax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.1400038a0
nop
mov rdx, qword [rax]
lea rdi, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rdi, rbx
je 0x1400527ae
cmp dword [rbx + 0x10], 0
jl 0x14005279f
mov rcx, qword [rdi]
cmp rcx, qword [rbx]
jne 0x14005279f
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x14005273b
cmp rax, qword [rdi]
jne 0x14005273b
mov rbp, rdi
lock add dword [rdi + 0x10], 1
jmp 0x14005277a
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi + 8]
call qword [rax]
mov rbp, rax
test rax, rax
jne 0x140052757
call fcn.1400019f0
int3
mov eax, dword [rdi + 8]
mov dword [rbp + 8], eax
mov eax, dword [rdi + 8]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
lea r8, [rdi + 0x18]
add rdx, rdx
lea rcx, [rbp + 0x18]
call fcn.140080540
mov eax, esi
lock xadd dword [rbx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140052794
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x1400527ae
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140003c40
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400527ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [r13 + 0x220], 1
jne 0x1400527f2
lea rcx, [r13 + 0x210]
call fcn.140073b38
call fcn.140017470
cmp dword [r14 + 0xb78], 0
je 0x140052901
mov word [rsp + 0x280], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x282]
call fcn.140080d50
mov word [rsp + 0x8b0], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x8b2]
call fcn.140080d50
mov word [rsp + 0x6a0], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x6a2]
call fcn.140080d50
mov r8d, 0x104
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0x104
lea r9, [rsp + 0x6a0]
mov r8d, 0x104
lea rdx, [rsp + 0x8b0]
lea rcx, [rsp + 0x280]
call fcn.140082440
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x6a0]
lea r8, [rsp + 0x8b0]
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.140084320
lea rcx, [rsp + 0x280]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x14005291a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x14005292c
mov ecx, 0x80070057
call fcn.140001000
nop
mov rcx, qword [rsp + 0xac0]
xor rcx, rsp
call fcn.140081050
lea r11, [rsp + 0xad0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret