Function at 0x14012d1f4
Capabilities:
Create directory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
xor r14d, r14d
lea rbx, str.base_stor_blbengine_blbengutils_blbnetworkutils.cpp
mov qword [rbp + 0x50], r14
mov r12, r8
mov qword [rbp + 0x60], r14
mov r13, rdx
mov qword [rbp + 0x58], r14
mov r15, rcx
mov edi, r14d
test rcx, rcx
jne 0x14012d243
lea r8, str.wszDeviceName___NULL
mov edx, 0x239
mov rcx, rbx
call fcn.14008624c
test r13, r13
jne 0x14012d25c
lea r8, str.wszVolumeGuid___NULL
mov edx, 0x23a
mov rcx, rbx
call fcn.14008624c
test r12, r12
jne 0x14012d275
lea r8, str.pwszNetShareName___NULL
mov edx, 0x23b
mov rcx, rbx
call fcn.14008624c
lea r8, [rbp + 0x60]
mov qword [r12], r14
mov rdx, r13
mov rcx, r15
call fcn.14010d5ac
mov rsi, qword [rbp + 0x60]
mov ebx, eax
test eax, eax
js 0x14012d5f4
lea rcx, [rbp - 0x28]
call fcn.140093248
mov ebx, eax
test eax, eax
js 0x14012d5f4
lea rdx, [rbp - 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rbp - 0x20]
mov ebx, eax
test rcx, rcx
je 0x14012d2cb
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbp - 0x20], r14
test ebx, ebx
jne 0x14012d326
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x800700b7
jne 0x14012d3e1
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14012d326
test byte [rcx + 0x1c], 1
je 0x14012d326
cmp byte [rcx + 0x19], 3
jb 0x14012d326
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161160]
mov edx, 0x1e
mov r9, rsi
call fcn.140005c6c
lea r8, [rbp + 0x50]
mov rcx, r15
lea rdx, [0x14014d7b8]
call fcn.140087120
mov ebx, eax
test eax, eax
js 0x14012d5d9
mov rax, qword [rbp + 0x50]
or rcx, 0xffffffffffffffff
mov rbx, rcx
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x14012d34e
mov qword [rsp + 0x30], rcx
mov eax, 3
mov r8d, eax
mov dword [rsp + 0x28], 0x2200080
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov edx, 0xc0000000
mov rcx, rsi
add bx, bx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x14012d42d
mov rcx, qword [0x1401782b0]
lea rdi, [0x1401782b0]
cmp rcx, rdi
je 0x14012d3c8
test byte [rcx + 0x1c], 1
je 0x14012d3c8
cmp byte [rcx + 0x19], 2
jb 0x14012d3c8
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x21]
mov r9, rsi
lea r8, [0x140161160]
call fcn.140005c6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14012d5e0
mov rcx, qword [0x1401782b0]
lea rdi, [0x1401782b0]
cmp rcx, rdi
je 0x14012d602
test byte [rcx + 0x1c], 1
je 0x14012d602
cmp byte [rcx + 0x19], 2
jb 0x14012d602
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161160]
mov edx, 0x1f
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005ce8
jmp 0x14012d5fb
mov ecx, 0x4000
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
xor ecx, ecx
mov r14, rax
test rax, rax
jne 0x14012d44c
mov ebx, 0x8007000e
jmp 0x14012d5c1
mov rdx, qword [rbp + 0x50]
mov dword [rax], 0xa0000003
lea eax, [rbx + 0xc]
mov word [r14 + 4], ax
lea eax, [rbx + 2]
mov word [r14 + 0xa], bx
mov dword [r14 + 6], ecx
mov word [r14 + 0xe], cx
lea rcx, [r14 + 0x10]
movzx ebx, bx
mov r8d, ebx
mov word [r14 + 0xc], ax
call sub.msvcrt.dll_memcpy
xor ecx, ecx
shr rbx, 1
mov qword [rsp + 0x38], rcx
mov eax, 0x3f
mov word [r14 + 0x12], ax
mov r8, r14
lea rax, [rbp + 0x48]
mov edx, 0x900a4
mov qword [rsp + 0x30], rax
mov dword [r14 + rbx*2 + 0x10], ecx
movzx r9d, word [r14 + 4]
mov dword [rsp + 0x28], ecx
add r9d, 8
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14012d529
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14012d5b8
test byte [rcx + 0x1c], 1
je 0x14012d5b8
cmp byte [rcx + 0x19], 2
jb 0x14012d5b8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161160]
mov edx, 0x21
mov r9d, ebx
call fcn.140004c90
jmp 0x14012d5b8
mov ebx, 0x208
mov ecx, ebx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14012d545
mov ebx, 0x8007000e
jmp 0x14012d5b8
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea r8, str.WsbMountedVolumes
mov edx, 0x104
mov rcx, rdi
call fcn.14003b8c0
mov ebx, eax
test eax, eax
js 0x14012d5b8
lea r8, [0x14014d7b8]
mov edx, 0x104
mov rcx, rdi
call fcn.140052af4
mov ebx, eax
test eax, eax
js 0x14012d5b8
lea r8, [rbp + 0x58]
mov rdx, r13
mov rcx, r15
call fcn.14010d308
mov ebx, eax
test eax, eax
js 0x14012d5b8
mov r8, qword [rbp + 0x58]
mov edx, 0x104
mov rcx, rdi
call fcn.140052af4
mov ebx, eax
test eax, eax
js 0x14012d5b8
mov qword [r12], rdi
xor edi, edi
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x14012d5d9
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdi, [0x1401782b0]
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x14012d5f4
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x14012d5fb
lea rdi, [0x1401782b0]
mov rcx, qword [0x1401782b0]
test rsi, rsi
je 0x14012d617
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x14012d630
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
test ebx, ebx
jns 0x14012d661
cmp rcx, rdi
je 0x14012d661
test byte [rcx + 0x1c], 1
je 0x14012d661
cmp byte [rcx + 0x19], 2
jb 0x14012d661
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161160]
mov edx, 0x22
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140005ce8
mov eax, ebx
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret