Function at 0x140036ac0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rbx, rcx
test rcx, rcx
je 0x140036d9d
cmp word [rcx], 0
je 0x140036d9d
lea r15, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x29], r15
lea rsi, vtable.CVolObject.0
mov qword [rbp - 0x29], rsi
xor edi, edi
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x19], rdi
lea r12, vtable.CWString.0
mov qword [rbp - 0x29], r12
lea rax, [rbp - 9]
mov qword [rbp + 0x67], rax
mov qword [rbp - 9], r15
mov qword [rbp - 9], rsi
mov qword [rbp - 1], rdi
mov qword [rbp + 7], rdi
lea r14, vtable.CVolMem.0
mov qword [rbp - 9], r14
mov qword [rbp + 0xf], rdi
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x27], 0x40
mov qword [rbp - 0x11], rdi
mov qword [rbp + 0x27], 0xfe
cmp word [rcx], di
je 0x140036d5e
cmp word [rcx + 2], di
je 0x140036bd0
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rcx + r8*2], 0
jne 0x140036b80
cmp word [rcx + r8*2 - 2], 0x5c
jne 0x140036bd0
cmp word [rcx + r8*2 - 4], 0x3a
je 0x140036bd0
dec r8
mov rdx, rcx
lea rcx, [rbp - 0x29]
call fcn.1400399b0
mov rbx, qword [rbp - 0x11]
test rbx, rbx
jne 0x140036bc3
cmp qword [rbp + 0x1f], rbx
je 0x140036d5e
mov rbx, qword [rbp + 0xf]
mov rax, rbx
cmp word [rax], 0
je 0x140036d5e
cmp word [rbx + 2], 0x3a
jne 0x140036be2
cmp word [rbx + 4], 0
je 0x140036d5e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140036d5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140036d5e
cmp eax, 3
jne 0x140036d59
lea edx, [rax + 0x59]
mov rcx, rbx
call fcn.140041460
test rax, rax
je 0x140036d59
cmp word [rax + 2], 0
jne 0x140036c4e
sub rax, 2
cmp rax, rbx
jb 0x140036d59
cmp word [rax], 0x5c
je 0x140036c4e
sub rax, 2
cmp rax, rbx
jae 0x140036c37
mov rbx, rdi
jmp 0x140036d63
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rdi
mov qword [rbp - 0x79], rdi
mov qword [rsp + 0x20], r12
lea rcx, [rbp - 0x69]
mov qword [rbp + 0x67], rcx
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x69], rsi
mov qword [rbp - 0x61], rdi
mov qword [rbp - 0x59], rdi
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x39], 0x40
mov qword [rbp - 0x71], rdi
mov qword [rbp - 0x39], 0xfe
sub rax, rbx
sar rax, 1
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400399b0
mov rax, qword [rbp - 0x71]
test rax, rax
jne 0x140036cd2
lea rax, [0x1400686d0]
cmp qword [rbp - 0x41], 0
cmovne rax, qword [rbp - 0x51]
mov rcx, rax
call fcn.140036ac0
test rax, rax
je 0x140036d24
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movsxd rbx, eax
lea rax, [rbp - 0x69]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x69], r14
mov rdx, qword [rbp - 0x51]
test rdx, rdx
je 0x140036d0d
lea rcx, [rbp - 0x69]
mov rax, qword [rbp - 0x69]
call qword [rax + 0x18]
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x69], rsi
mov qword [rsp + 0x20], rsi
jmp 0x140036d63
lea rax, [rbp - 0x69]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x69], r14
mov rdx, qword [rbp - 0x51]
test rdx, rdx
je 0x140036d44
lea rcx, [rbp - 0x69]
mov rax, qword [rbp - 0x69]
call qword [rax + 0x18]
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x69], rsi
mov qword [rsp + 0x20], rsi
mov rbx, rdi
jmp 0x140036d63
mov ebx, 1
lea rax, [rbp - 9]
mov qword [rbp + 0x67], rax
mov qword [rbp - 9], r14
mov rdx, qword [rbp + 0xf]
test rdx, rdx
je 0x140036d84
lea rcx, [rbp - 9]
mov r8, qword [rbp - 9]
call qword [r8 + 0x18]
mov qword [rbp + 0xf], rdi
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x17], rdi
mov qword [rbp - 9], rsi
mov qword [rbp - 0x29], rsi
mov rax, rbx
jmp 0x140036d9f
xor eax, eax
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret