Function at 0x14004d2a0
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x1400fc3f8]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x14004d51b
xor r13d, r13d
cmp r13w, word [rcx]
je 0x14004d51b
test rdx, rdx
je 0x14004d51b
cmp r13w, word [rdx]
je 0x14004d51b
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rcx + r8*2], r13w
jne 0x14004d310
call fcn.1400a0e54
test eax, eax
jne 0x14004d51b
mov rax, rbx
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rsi + rax*2], r13w
jne 0x14004d330
lea r12d, [rax + 1]
mov eax, 2
mul r12
mov r15, rax
cmovo r15, rbx
mov rcx, r15
call fcn.14008a6e8
mov r14, rax
test rax, rax
je 0x14004d36d
mov r8, r15
xor edx, edx
mov rcx, rax
call fcn.14008cc50
jmp 0x14004d370
mov r14, r13
mov qword [rsp + 0x70], r14
mov r8, rsi
mov rdx, r12
mov rcx, r14
call fcn.140092ed4
lea rbx, [rbx + 1]
cmp word [rdi + rbx*2], 0
jne 0x14004d383
lea rbx, [r14 + rbx*2]
movzx edi, word [rbx]
mov r12d, 0x5c
cmp r13w, di
je 0x14004d3a7
cmp r12w, di
jne 0x14004d3ed
mov word [rbx], r13w
mov r15d, 1
nop dword [rax]
nop word [rax + rax]
mov esi, r15d
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x14004d405
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, r15d
jbe 0x14004d4e6
mov r15d, r13d
test r14, r14
je 0x14004d3fd
mov rcx, r14
call fcn.140089ca0
mov eax, r15d
jmp 0x14004d51d
lea rax, vtable.std::_Func_impl_no_alloc_class__int___cdecl_ETWUtil::DeleteReparsePoint_wchar_t_const____ptr64__bool_::_2::_lambda_1___void___.0
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x48], r13
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
mov rax, qword [vtable.std::_Func_impl_no_alloc_class__int___cdecl_ETWUtil::DeleteReparsePoint_wchar_t_const____ptr64__bool_::_2::_lambda_1___void___.0]
call qword [case.0x14005f7f8.0]
mov rdx, rax
mov qword [rbp - 0x48], rax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004d47f
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x14005f7f8.0]
mov rdx, qword [rbp - 0x48]
test dword [rbp - 0x40], 0x400
je 0x14004d4a8
mov eax, dword [rbp - 0x1c]
cmp eax, 0xa0000003
je 0x14004d499
cmp eax, 0xa000000c
jne 0x14004d4a8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
mov rdx, qword [rbp - 0x48]
test rdx, rdx
je 0x14004d4de
mov rcx, qword [rdx]
mov rax, qword [rcx + 0x10]
mov rcx, rdx
call qword [case.0x14005f7f8.0]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14004d4de
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x14005f7f8.0]
nop
test esi, esi
je 0x14004d3ed
cmp r13w, di
je 0x14004d3f0
mov word [rbx], di
mov edx, r12d
lea rcx, [rbx + 2]
call fcn.14008dad0
mov rbx, rax
test rax, rax
je 0x14004d513
movzx edi, word [rax]
mov word [rax], r13w
jmp 0x14004d3c0
mov edi, r13d
jmp 0x14004d3c0
xor eax, eax
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14008a6c0
mov rbx, qword [rsp + 0x370]
add rsp, 0x320
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret