Function at 0x140013d00
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbx, rcx
test rcx, rcx
je 0x140013fa6
cmp word [rcx], 0
je 0x140013fa6
lea r15, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x39], r15
lea r14, vtable.CVolObject.0
mov qword [rbp - 0x39], r14
xor edi, edi
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x29], rdi
lea r12, vtable.CWString.0
mov qword [rbp - 0x39], r12
lea rax, [rbp - 0x19]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], rdi
lea r13, vtable.CVolMem.0
mov qword [rbp - 0x19], r13
mov qword [rbp - 1], rdi
mov qword [rbp + 0xf], rdi
mov qword [rbp + 7], rdi
mov qword [rbp + 0x17], 0x40
mov qword [rbp - 0x21], rdi
mov qword [rbp + 0x17], 0xfe
movzx ecx, word [rcx]
lea rsi, [0x140245c50]
movzx eax, cx
test cx, cx
je 0x140013e21
cmp word [rbx + 2], di
je 0x140013e21
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rbx + r8*2], 0
jne 0x140013dd0
movzx eax, cx
cmp word [rbx + r8*2 - 2], 0x5c
jne 0x140013e21
cmp word [rbx + r8*2 - 4], 0x3a
je 0x140013e21
dec r8
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140016c00
mov rbx, qword [rbp - 0x21]
test rbx, rbx
jne 0x140013e1e
cmp qword [rbp + 0xf], rbx
jne 0x140013e1a
mov rbx, rsi
movzx eax, word [0x140245c50]
jmp 0x140013e21
mov rbx, qword [rbp - 1]
movzx eax, word [rbx]
test ax, ax
je 0x140013f8e
cmp ax, 0x5c
jne 0x140013e3b
cmp word [rbx + 2], 0
je 0x140013f8e
cmp word [rbx + 2], 0x3a
jne 0x140013e60
movzx eax, word [rbx + 4]
test ax, ax
je 0x140013f8e
cmp ax, 0x5c
jne 0x140013e60
cmp word [rbx + 6], 0
je 0x140013f8e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140013f8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140013f8e
cmp eax, 3
jne 0x140013f93
lea edx, [rax + 0x59]
mov rcx, rbx
call fcn.1401b9d98
test rax, rax
je 0x140013f93
cmp word [rax + 2], 0
jne 0x140013ed2
sub rax, 2
cmp rax, rbx
jb 0x140013f93
cmp word [rax], 0x5c
je 0x140013ec9
sub rax, 2
cmp rax, rbx
jae 0x140013eb5
jmp 0x140013f93
cmp rax, rbx
jb 0x140013f93
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], r12
lea rcx, [rbp - 0x79]
mov qword [rbp + 0x67], rcx
mov qword [rbp - 0x79], r15
mov qword [rbp - 0x79], r14
mov qword [rbp - 0x71], rdi
mov qword [rbp - 0x69], rdi
mov qword [rbp - 0x79], r13
mov qword [rbp - 0x61], rdi
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x59], rdi
mov qword [rbp - 0x49], 0x40
mov qword [rsp + 0x38], rdi
mov qword [rbp - 0x49], 0xfe
sub rax, rbx
sar rax, 1
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140016c00
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x140013f54
cmp qword [rbp - 0x51], rcx
cmovne rsi, qword [rbp - 0x61]
mov rcx, rsi
call fcn.140013d00
test rax, rax
je 0x140013f7d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movsxd rdi, eax
lea rcx, [rbp - 0x79]
call fcn.140005ec0
nop
mov qword [rsp + 0x20], r14
jmp 0x140013f93
lea rcx, [rbp - 0x79]
call fcn.140005ec0
nop
mov qword [rsp + 0x20], r14
jmp 0x140013f93
mov edi, 1
lea rcx, [rbp - 0x19]
call fcn.140005ec0
nop
mov qword [rbp - 0x39], r14
mov rax, rdi
jmp 0x140013fa8
xor eax, eax
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret