Function at 0x140061188
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.14004be6c
lea rcx, [rsp + 0x98]
xor esi, esi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
call fcn.140044ef4
lea edx, [rsi + 5]
lea rcx, [rsp + 0x20]
call fcn.14004bedc
lea edx, [rsi + 0x14]
lea rcx, [rsp + 0xa8]
call fcn.14004bedc
lea r8d, [rsi + 2]
lea rdx, [rsp + 0x98]
lea rcx, [0x1400ded98]
mov r13d, esi
mov dword [rsp + 0x90], esi
call fcn.14004e558
lea ebx, [rsi + 0x2c]
lea ebp, [rsi + 1]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov r9b, bpl
movzx r14d, al
call fcn.14005add0
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rax
call fcn.14004f5d4
mov rax, qword [rsp + 0x98]
cmp bx, word [rax]
jne 0x1400612c7
add rax, 2
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov r9b, bpl
mov qword [rsp + 0x98], rax
call fcn.14005add0
lea rdx, [rsp + 0xa8]
xor r8d, r8d
mov rcx, rax
call fcn.14004f5d4
mov rax, qword [rsp + 0x98]
cmp bx, word [rax]
jne 0x1400612c7
add rax, 2
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov r9b, bpl
mov qword [rsp + 0x98], rax
call fcn.14005add0
lea rdx, [rsp + 0x90]
movzx r8d, bx
mov rcx, rax
call fcn.14004f968
mov r13d, dword [rsp + 0x90]
mov rbx, qword [rsp + 0x20]
cmp word [rbx], si
jne 0x1400612fc
lea rcx, [rsp + 0xa8]
call fcn.140044f24
lea rcx, [rsp + 0x20]
call fcn.140044f24
lea rcx, [rsp + 0x30]
call fcn.140044f24
mov eax, 0x80070057
jmp 0x140061481
mov rcx, qword [rsp + 0xa8]
cmp r13d, esi
jne 0x140061313
cmp r14d, esi
jne 0x140061313
cmp word [rcx], si
je 0x1400612d1
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0xa8]
lea edx, [rax + 0x214]
mov edi, eax
call fcn.14004bf70
mov rcx, qword [rsp + 0xa8]
lea eax, [rdi + 4]
cdqe
mov qword [rsp + 0x28], rsi
lea r12, [rcx + rax*2]
call fcn.140015cb4
mov rcx, rbx
mov rdi, rax
call fcn.140015cb4
mov rbx, rax
cmp r14d, esi
jne 0x140061372
cmp r13d, esi
jne 0x140061372
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
jmp 0x1400613c7
cmp r13d, 2
je 0x1400613ff
cmp r14d, esi
jne 0x1400613ff
mov rcx, rdi
call fcn.1400b8a34
mov r12d, esi
lea r8, [0x1400f2388]
cmp eax, esi
lea rdx, str.KERNEL32.DLL
lea rcx, str.CreateSymbolicLinkW
setne r12b
xor r9d, r9d
call fcn.140046024
mov r11, qword [0x1400f2388]
cmp r11, rsi
je 0x1400613d7
mov r8d, r12d
mov rdx, rdi
mov rcx, rbx
call r11
cmp eax, esi
je 0x1400613cf
mov ebp, esi
jmp 0x1400613d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
lea rcx, [rsp + 0xa8]
call fcn.140044f24
lea rcx, [rsp + 0x20]
call fcn.140044f24
lea rcx, [rsp + 0x30]
call fcn.140044f24
mov eax, ebp
jmp 0x140061481
cmp word [rdi], si
jne 0x14006140f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140061452
lea r8, [r12 + 8]
lea r9, [rsp + 0x28]
mov edx, 0x208
mov rcx, rdi
call fcn.14004cbc0
mov r11d, 0x5c
mov rdx, r12
lea eax, [r11 - 0x1d]
mov rcx, rbx
mov word [r12], r11w
mov word [r12 + 2], ax
mov word [r12 + 4], ax
mov word [r12 + 6], r11w
call fcn.140049868
cmp eax, esi
jne 0x14006145e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rcx, [rsp + 0xa8]
call fcn.140044f24
lea rcx, [rsp + 0x20]
call fcn.140044f24
lea rcx, [rsp + 0x30]
call fcn.140044f24
mov eax, esi
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret