Function at 0x140013420
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 0x1400136c6
cmp word [rcx], 0
je 0x1400136c6
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, [0x1402687c0]
movzx eax, cx
test cx, cx
je 0x140013541
cmp word [rbx + 2], di
je 0x140013541
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400134f0
movzx eax, cx
cmp word [rbx + r8*2 - 2], 0x5c
jne 0x140013541
cmp word [rbx + r8*2 - 4], 0x3a
je 0x140013541
dec r8
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140016050
mov rbx, qword [rbp - 0x21]
test rbx, rbx
jne 0x14001353e
cmp qword [rbp + 0xf], rbx
jne 0x14001353a
mov rbx, rsi
movzx eax, word [0x1402687c0]
jmp 0x140013541
mov rbx, qword [rbp - 1]
movzx eax, word [rbx]
test ax, ax
je 0x1400136ae
cmp ax, 0x5c
jne 0x14001355b
cmp word [rbx + 2], 0
je 0x1400136ae
cmp word [rbx + 2], 0x3a
jne 0x140013580
movzx eax, word [rbx + 4]
test ax, ax
je 0x1400136ae
cmp ax, 0x5c
jne 0x140013580
cmp word [rbx + 6], 0
je 0x1400136ae
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400136ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400136ae
cmp eax, 3
jne 0x1400136b3
lea edx, [rax + 0x59]
mov rcx, rbx
call fcn.1401d744c
test rax, rax
je 0x1400136b3
cmp word [rax + 2], 0
jne 0x1400135f2
sub rax, 2
cmp rax, rbx
jb 0x1400136b3
cmp word [rax], 0x5c
je 0x1400135e9
sub rax, 2
cmp rax, rbx
jae 0x1400135d5
jmp 0x1400136b3
cmp rax, rbx
jb 0x1400136b3
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.140016050
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x140013674
cmp qword [rbp - 0x51], rcx
cmovne rsi, qword [rbp - 0x61]
mov rcx, rsi
call fcn.140013420
test rax, rax
je 0x14001369d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movsxd rdi, eax
lea rcx, [rbp - 0x79]
call fcn.140006550
nop
mov qword [rsp + 0x20], r14
jmp 0x1400136b3
lea rcx, [rbp - 0x79]
call fcn.140006550
nop
mov qword [rsp + 0x20], r14
jmp 0x1400136b3
mov edi, 1
lea rcx, [rbp - 0x19]
call fcn.140006550
nop
mov qword [rbp - 0x39], r14
mov rax, rdi
jmp 0x1400136c8
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