Function at 0x140009110
Capabilities:
Create directory

Disassembly:
mov r11, rsp
push rbp
push rbx
push rdi
lea rbp, [r11 - 0x68]
sub rsp, 0x150
mov rax, qword [0x1400f7080]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov qword [r11 + 0x10], rsi
xor edx, edx
mov qword [r11 + 0x18], r14
mov rsi, rcx
xor r14d, r14d
mov dword [rbp - 0x68], 0x101
mov r8d, 0x90
mov qword [rsp + 0x60], r14
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov edi, r14d
mov dword [rbp - 0x70], r14d
xor bl, bl
mov dword [rbp - 0x64], 0x5000000
mov dword [rbp - 0x60], 0x12
mov word [rbp - 0x6c], 0x500
call fcn.1400a6c90
lea rax, [rsp + 0x60]
mov r9d, 0x221
mov qword [rsp + 0x50], rax
lea r8d, [r14 + 0x20]
mov dword [rsp + 0x48], r14d
lea rcx, [rbp - 0x70]
mov dword [rsp + 0x40], r14d
mov dl, 2
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140009331
mov rax, qword [rsp + 0x60]
lea r8d, [r14 + 0x20]
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x70]
lea rax, [rsp + 0x68]
mov dword [rbp - 0x50], 0x10000000
mov qword [rsp + 0x50], rax
mov r9d, 0x220
mov dword [rsp + 0x48], r14d
mov dl, 2
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov dword [rbp - 0x4c], 2
mov dword [rbp - 0x48], 3
mov dword [rbp - 0x34], r14d
mov dword [rbp - 0x30], 2
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140009331
mov rax, qword [rsp + 0x68]
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x20]
mov qword [rbp + 8], rax
mov dword [rbp - 0x20], 0x10000000
mov dword [rbp - 0x1c], 2
mov dword [rbp - 0x18], 3
mov dword [rbp - 4], r14d
mov dword [rbp], 2
mov dword [rbp + 0x10], 0x10000000
mov dword [rbp + 0x14], 2
mov dword [rbp + 0x18], 3
call qword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea ecx, [r14 + 3]
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x140009331
lea edx, [rax + 0x28]
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140009331
mov qword [rsp + 0x188], r15
mov rcx, rax
mov r15d, 1
mov edx, r15d
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140009329
mov r8, qword [rsp + 0x70]
xor r9d, r9d
mov edx, r15d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x140009329
cmp qword [rsi + 0x18], 8
mov dword [rsp + 0x78], 0x18
mov qword [rbp - 0x80], rdi
mov dword [rbp - 0x78], r14d
jb 0x140009304
mov rsi, qword [rsi]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
movzx ebx, bl
cmove ebx, r15d
mov r15, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x60]
mov r14, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x178]
test rcx, rcx
je 0x140009351
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140009361
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140009371
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14000937f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, bl
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1400a4a60
add rsp, 0x150
pop rdi
pop rbx
pop rbp
ret