Function at 0x14014e254
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
and qword [rbp + 0x77], 0
lea rcx, [rbp + 0x67]
call fcn.14014e0f4
cmp byte [rbp + 0x67], 0
lea r13, [0x14017d3a8]
mov ebx, eax
jne 0x14014e496
test eax, eax
js 0x14014e49a
lea rcx, [rbp + 0x77]
call fcn.14014dfd0
mov rdi, qword [rbp + 0x77]
mov ebx, eax
test eax, eax
js 0x14014e488
xor eax, eax
lea rcx, [rbp - 0x39]
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
call fcn.1400b5dbc
mov ebx, eax
test eax, eax
js 0x14014e488
lea rdx, [rbp - 0x39]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14014e313
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14014e33a
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x14014e313
test byte [rcx + 0x1c], 1
je 0x14014e313
cmp byte [rcx + 0x19], 5
jb 0x14014e313
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015578]
mov edx, CoDisconnectObject
call fcn.14001dd24
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, reloc.ADVAPI32.dll_TraceEvent
cmp eax, esi
jne 0x14014e361
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14014e34d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14014e474
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14014e474
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14014e474
or eax, 2
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14014e323
xor edx, edx
lea rcx, [rbp - 0x19]
lea r8d, [rdx + 0x48]
call sub.msvcrt.dll_memset
and dword [rbp + 0x6f], 0
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x14014e3b6
test byte [rcx + 0x1c], 1
je 0x14014e3b6
cmp byte [rcx + 0x19], 5
jb 0x14014e3b6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015578]
mov edx, reloc.ole32.dll_CoDisconnectObject
mov r9, rdi
call fcn.14001ec40
and qword [rbp - 9], 0
and dword [rbp - 1], 0
and qword [rbp + 0x17], 0
lea rax, [0x140005998]
lea r9, [rbp + 0x6f]
lea r8, [rbp - 0x19]
mov qword [rbp - 0x19], rax
mov rax, qword [rbp - 0x31]
mov edx, 0x1f6
xor ecx, ecx
mov dword [rbp - 0x11], reloc.ADVAPI32.dll_TraceEvent
mov dword [rbp + 3], esi
mov qword [rbp + 0x27], rax
mov qword [rbp + 0xf], rdi
call qword [sym.imp.NETAPI32.dll_NetShareAdd]
mov esi, eax
test eax, eax
je 0x14014e447
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x14014e437
test byte [rcx + 0x1c], 1
je 0x14014e437
cmp byte [rcx + 0x19], 2
jb 0x14014e437
mov eax, dword [rbp + 0x6f]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015578]
mov edx, 0x14
mov r9d, esi
mov dword [rsp + 0x20], eax
call fcn.1400285b4
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14014e474
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x14014e474
test byte [rcx + 0x1c], 1
je 0x14014e474
cmp byte [rcx + 0x19], 5
jb 0x14014e474
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015578]
mov edx, 0x15
call fcn.14001dd24
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14014e488
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rbp - 0x31], 0
test rdi, rdi
je 0x14014e496
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x14014e4ca
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x14014e4ca
test byte [rcx + 0x1c], 1
je 0x14014e4ca
cmp byte [rcx + 0x19], 2
jb 0x14014e4ca
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015578]
mov edx, 0x16
mov r9d, ebx
call fcn.14001de24
mov eax, ebx
add rsp, 0xa0
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret