Function at 0x140012540
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
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 rbx, rcx
test rcx, rcx
je 0x1400127d9
cmp word [rcx], 0
je 0x1400127d9
lea r14, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x39], r14
lea rsi, vtable.CVolObject.0
mov qword [rbp - 0x39], rsi
xor edi, edi
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x29], rdi
lea r15, vtable.CWString.0
mov qword [rbp - 0x39], r15
lea rax, [rbp - 0x19]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], rdi
lea r12, vtable.CVolMem.0
mov qword [rbp - 0x19], r12
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]
movzx eax, cx
test cx, cx
je 0x14001264b
cmp word [rbx + 2], di
je 0x14001264b
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140012602
movzx eax, cx
cmp word [rbx + r8*2 - 2], 0x5c
jne 0x14001264b
cmp word [rbx + r8*2 - 4], 0x3a
je 0x14001264b
dec r8
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140014ea0
mov rbx, qword [rbp - 0x21]
test rbx, rbx
jne 0x140012648
cmp qword [rbp + 0xf], rbx
je 0x1400127c1
mov rbx, qword [rbp - 1]
movzx eax, word [rbx]
test ax, ax
je 0x1400127c1
cmp ax, 0x5c
jne 0x140012665
cmp word [rbx + 2], 0
je 0x1400127c1
cmp word [rbx + 2], 0x3a
jne 0x14001268a
movzx eax, word [rbx + 4]
test ax, ax
je 0x1400127c1
cmp ax, 0x5c
jne 0x14001268a
cmp word [rbx + 6], 0
je 0x1400127c1
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400127c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400127c1
cmp eax, 3
jne 0x1400127c6
lea edx, [rax + 0x59]
mov rcx, rbx
call fcn.140035790
test rax, rax
je 0x1400127c6
cmp word [rax + 2], 0
jne 0x1400126fd
sub rax, 2
cmp rax, rbx
jb 0x1400127c6
nop
cmp word [rax], 0x5c
je 0x1400126f4
sub rax, 2
cmp rax, rbx
jae 0x1400126e0
jmp 0x1400127c6
cmp rax, rbx
jb 0x1400127c6
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], r15
lea rcx, [rbp - 0x79]
mov qword [rbp + 0x67], rcx
mov qword [rbp - 0x79], r14
mov qword [rbp - 0x79], rsi
mov qword [rbp - 0x71], rdi
mov qword [rbp - 0x69], rdi
mov qword [rbp - 0x79], r12
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.140014ea0
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140012784
lea rax, [0x140052a54]
cmp qword [rbp - 0x51], 0
cmovne rax, qword [rbp - 0x61]
mov rcx, rax
call fcn.140012540
test rax, rax
je 0x1400127b0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movsxd rdi, eax
lea rcx, [rbp - 0x79]
call fcn.1400030f0
nop
mov qword [rsp + 0x20], rsi
jmp 0x1400127c6
lea rcx, [rbp - 0x79]
call fcn.1400030f0
nop
mov qword [rsp + 0x20], rsi
jmp 0x1400127c6
mov edi, 1
lea rcx, [rbp - 0x19]
call fcn.1400030f0
nop
mov qword [rbp - 0x39], rsi
mov rax, rdi
jmp 0x1400127db
xor eax, eax
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret