Function at 0x140126e70
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
and qword [rbp + 0x77], 0
lea rcx, [rbp + 0x67]
call fcn.140126d10
cmp byte [rbp + 0x67], 0
lea r12, [0x140170048]
mov ebx, eax
jne 0x1401270b1
test eax, eax
js 0x1401270b5
lea rcx, [rbp + 0x77]
call fcn.140126c30
mov rdi, qword [rbp + 0x77]
mov ebx, eax
test eax, eax
js 0x1401270a3
xor eax, eax
lea rcx, [rbp - 0x39]
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
call fcn.140090500
mov ebx, eax
test eax, eax
js 0x1401270a3
lea rdx, [rbp - 0x39]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140126f2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140126f56
mov rcx, qword [0x140170048]
cmp rcx, r12
je 0x140126f2f
test byte [rcx + 0x1c], 1
je 0x140126f2f
cmp byte [rcx + 0x19], 5
jb 0x140126f2f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a2e8]
mov edx, 0x12
call fcn.140004c54
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
jne 0x140126f7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140126f69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14012708f
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14012708f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14012708f
or eax, 2
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140126f3f
and dword [rbp - 0xd], 0
and qword [rbp + 7], 0
and qword [rbp + 0x1f], 0
and dword [rbp + 0x6f], 0
mov rcx, qword [0x140170048]
cmp rcx, r12
je 0x140126fd1
test byte [rcx + 0x1c], 1
je 0x140126fd1
cmp byte [rcx + 0x19], 5
jb 0x140126fd1
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a2e8]
mov edx, 0x13
mov r9, rdi
call fcn.140005bdc
and qword [rbp - 9], 0
lea rax, str.WsbMountedVolumes
and dword [rbp - 1], 0
lea r9, [rbp + 0x6f]
and qword [rbp + 0x17], 0
lea r8, [rbp - 0x19]
mov qword [rbp - 0x19], rax
mov edx, 0x1f6
mov rax, qword [rbp - 0x31]
xor ecx, ecx
mov qword [rbp + 0x27], rax
mov dword [rbp - 0x11], 0x80000000
mov dword [rbp + 3], esi
mov qword [rbp + 0xf], rdi
call qword [sym.imp.NETAPI32.dll_NetShareAdd]
mov esi, eax
test eax, eax
je 0x140127062
mov rcx, qword [0x140170048]
cmp rcx, r12
je 0x140127052
test byte [rcx + 0x1c], 1
je 0x140127052
cmp byte [rcx + 0x19], 2
jb 0x140127052
mov eax, dword [rbp + 0x6f]
lea r8, [0x14015a2e8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x14
mov r9d, esi
mov dword [rsp + 0x20], eax
call fcn.14000fe18
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14012708f
mov rcx, qword [0x140170048]
cmp rcx, r12
je 0x14012708f
test byte [rcx + 0x1c], 1
je 0x14012708f
cmp byte [rcx + 0x19], 5
jb 0x14012708f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a2e8]
mov edx, 0x15
call fcn.140004c54
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1401270a3
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rbp - 0x31], 0
test rdi, rdi
je 0x1401270b1
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x1401270e5
mov rcx, qword [0x140170048]
cmp rcx, r12
je 0x1401270e5
test byte [rcx + 0x1c], 1
je 0x1401270e5
cmp byte [rcx + 0x19], 2
jb 0x1401270e5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a2e8]
mov edx, 0x16
mov r9d, ebx
call fcn.140004c78
mov eax, ebx
add rsp, 0xa0
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret