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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
xor edi, edi
lea rcx, [rbp + 0x67]
mov qword [rbp + 0x77], rdi
call fcn.1401297a8
lea r13, [0x14016a048]
mov ebx, eax
cmp byte [rbp + 0x67], dil
jne 0x140129b6b
test eax, eax
js 0x140129b6b
lea rcx, [rbp + 0x77]
call fcn.140129bcc
mov ebx, eax
test eax, eax
js 0x140129b67
xorps xmm0, xmm0
lea rcx, [rbp - 0x39]
xor eax, eax
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], rax
call fcn.140096728
mov ebx, eax
test eax, eax
js 0x140129b67
mov rdi, qword [rbp + 0x77]
lea rdx, [rbp - 0x39]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1401299e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
jne 0x140129a17
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x1401299e3
test byte [rcx + 0x1c], 1
je 0x1401299e3
cmp byte [rcx + 0x19], 5
jb 0x1401299e3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159768]
mov edx, 0x12
call fcn.14000c0e8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
or esi, 0xffffffff
cmp eax, esi
jne 0x140129a3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x140129a30
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140129a1b
test eax, eax
jg 0x140129a22
mov ebx, eax
jmp 0x140129b5c
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140129b5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140129a22
or eax, 2
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
je 0x1401299f9
and dword [rbp - 0xd], 0
and qword [rbp + 7], 0
and qword [rbp + 0x1f], 0
and dword [rbp + 0x6f], 0
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140129a98
test byte [rcx + 0x1c], 1
je 0x140129a98
cmp byte [rcx + 0x19], 5
jb 0x140129a98
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159768]
mov edx, 0x13
mov r9, rdi
call fcn.140014f10
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]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x140129b2f
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140129b1f
test byte [rcx + 0x1c], 1
je 0x140129b1f
cmp byte [rcx + 0x19], 2
jb 0x140129b1f
mov eax, dword [rbp + 0x6f]
lea r8, [0x140159768]
mov rcx, qword [rcx + 0x10]
mov edx, 0x14
mov r9d, esi
mov dword [rsp + 0x20], eax
call fcn.14004075c
test esi, esi
jg 0x140129b27
mov ebx, esi
jmp 0x140129b5c
movzx ebx, si
jmp 0x140129a25
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140129b5c
test byte [rcx + 0x1c], 1
je 0x140129b5c
cmp byte [rcx + 0x19], 5
jb 0x140129b5c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159768]
mov edx, 0x15
call fcn.14000c0e8
lea rcx, [rbp - 0x39]
call fcn.140096cdc
jmp 0x140129b6b
mov rdi, qword [rbp + 0x77]
test rdi, rdi
je 0x140129b7f
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x140129bb3
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140129bb3
test byte [rcx + 0x1c], 1
je 0x140129bb3
cmp byte [rcx + 0x19], 2
jb 0x140129bb3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159768]
mov edx, 0x16
mov r9d, ebx
call fcn.14000c114
mov eax, ebx
add rsp, 0xa0
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret