Function at 0x140098bb4
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.1400618c8
lea rcx, [rsp + 0x98]
xor esi, esi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
call fcn.1400592c8
lea edx, [rsi + 5]
lea rcx, [rsp + 0x20]
call fcn.14006193c
lea edx, [rsi + 0x14]
lea rcx, [rsp + 0xa8]
call fcn.14006193c
lea r8d, [rsi + 2]
lea rdx, [rsp + 0x98]
lea rcx, [0x140120080]
mov ebp, esi
mov dword [rsp + 0x90], esi
call fcn.140064324
lea ebx, [rsi + 0x2c]
lea r15d, [rsi + 1]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov r9b, r15b
movzx r14d, al
call fcn.14007c398
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rax
call fcn.1400657b8
mov rax, qword [rsp + 0x98]
cmp bx, word [rax]
jne 0x140098cf8
add rax, 2
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov r9b, r15b
mov qword [rsp + 0x98], rax
call fcn.14007c398
lea rdx, [rsp + 0xa8]
xor r8d, r8d
mov rcx, rax
call fcn.1400657b8
mov rax, qword [rsp + 0x98]
cmp bx, word [rax]
jne 0x140098cf8
add rax, 2
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov r9b, r15b
mov qword [rsp + 0x98], rax
call fcn.14007c398
lea rdx, [rsp + 0x90]
movzx r8d, bx
mov rcx, rax
call fcn.140065bb0
mov ebp, dword [rsp + 0x90]
mov rbx, qword [rsp + 0x20]
cmp word [rbx], si
jne 0x140098d2f
lea rcx, [rsp + 0xa8]
call fcn.1400592f8
lea rcx, [rsp + 0x20]
call fcn.1400592f8
lea rcx, [rsp + 0x30]
call fcn.1400592f8
mov rax, 0xffffffff80070057
jmp 0x140098e8c
mov rcx, qword [rsp + 0xa8]
cmp ebp, esi
jne 0x140098d45
cmp r14d, esi
jne 0x140098d45
cmp word [rcx], si
je 0x140098d02
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0xa8]
mov edi, eax
add eax, 0x214
movsxd rdx, eax
call fcn.1400619c8
mov rcx, qword [rsp + 0xa8]
lea eax, [rdi + 4]
cdqe
mov qword [rsp + 0x28], rsi
lea r13, [rcx + rax*2]
call fcn.14001b86c
mov rcx, rbx
mov r12, rax
call fcn.14001b86c
mov rdi, rax
cmp word [rax], si
je 0x140098d02
cmp r14d, esi
jne 0x140098db1
cmp ebp, esi
jne 0x140098db1
xor r8d, r8d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
jmp 0x140098e5c
cmp ebp, 2
je 0x140098e0d
cmp r14d, esi
jne 0x140098e0d
test bpl, 0x10
mov ebx, esi
mov rcx, rax
cmovne ebx, r15d
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov eax, 0x5c
cmp ax, word [rdi + rcx*2 - 2]
jne 0x140098de5
mov ebx, r15d
mov word [rdi + rcx*2 - 2], si
cmp ebx, esi
jne 0x140098dfd
cmp ebp, 3
jne 0x140098dfd
mov rcx, r12
call fcn.1400f998c
mov ebx, esi
cmp eax, esi
setne bl
mov r8d, ebx
mov rdx, r12
mov rcx, rdi
call fcn.14005e758
jmp 0x140098e5c
cmp word [r12], si
jne 0x140098e1f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140098e5c
lea r8, [r13 + 8]
lea r9, [rsp + 0x28]
mov edx, 0x208
mov rcx, r12
call fcn.140062814
mov eax, 0x5c
mov rdx, r13
lea ecx, [rax - 0x1d]
mov word [r13], ax
mov word [r13 + 6], ax
mov word [r13 + 2], cx
mov word [r13 + 4], cx
mov rcx, rdi
call fcn.14005e608
cmp eax, esi
jne 0x140098e68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rcx, [rsp + 0xa8]
call fcn.1400592f8
lea rcx, [rsp + 0x20]
call fcn.1400592f8
lea rcx, [rsp + 0x30]
call fcn.1400592f8
movsxd rax, esi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret