Function at 0x140009c30
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xb8]
sub rsp, 0x1b0
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1410443b8]
xor rax, rsp
mov qword [rbp + 0xa8], rax
call fcn.14002b720
mov rsi, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140009d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140009d50
mov qword [rbp - 0x78], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
lea rax, [0x1402c4b50]
mov qword [rbp - 0x60], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.14001bce0
mov rdi, rax
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [0x1402c4f78]
lea rcx, [rsp + 0x40]
call fcn.140004100
nop
mov rdx, rax
mov rcx, qword [rdi]
call fcn.140033980
nop
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x140009d00
cmp eax, ebx
je 0x140009d0e
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140009d0e
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
mov rcx, qword [rdi]
cmp byte [rcx + 0x20], 0
je 0x140009d1e
mov dl, 0x20
call fcn.140033a00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, qword [rdi]
call fcn.140033be0
mov rcx, qword [rdi]
cmp byte [rcx + 0x20], 0
je 0x140009d3f
mov dl, 0x20
call fcn.140033a00
nop
lea rcx, [rsp + 0x50]
call fcn.14002cec0
xor al, al
jmp 0x14000a061
mov edx, 0x28
lea ecx, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x140009e07
mov qword [rbp - 0x58], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
lea rax, [0x1402c4b50]
mov qword [rbp - 0x40], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x58]
call fcn.14001bce0
mov rdi, rax
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [0x1402c4f98]
lea rcx, [rsp + 0x48]
call fcn.140004100
nop
mov rdx, rax
mov rcx, qword [rdi]
call fcn.140033980
nop
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x140009dd7
cmp eax, ebx
je 0x140009de5
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140009de5
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
mov rcx, qword [rdi]
cmp byte [rcx + 0x20], 0
je 0x140009df6
mov dl, 0x20
call fcn.140033a00
nop
lea rcx, [rsp + 0x58]
call fcn.14002cec0
xor al, al
jmp 0x14000a061
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x140009e6d
mov qword [rbp - 0x38], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
lea rax, [0x1402c4b50]
mov qword [rbp - 0x20], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x38]
call fcn.14001bce0
nop
lea rdx, [0x1402c4fc0]
mov rcx, rax
call fcn.1400041c0
nop
lea rcx, [rsp + 0x60]
call fcn.14002cec0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x14000a061
xor eax, eax
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], rax
mov dword [rbp + 0x78], 0x10000000
mov dword [rbp + 0x7c], 3
mov dword [rbp + 0x80], 3
mov dword [rbp + 0x94], 1
mov dword [rbp + 0x98], 5
lea rax, [0x1402c4ff0]
mov qword [rbp + 0xa0], rax
xor ebx, ebx
mov qword [rbp + 0x70], rbx
lea r9, [rbp + 0x70]
xor r8d, r8d
lea rdx, [rbp + 0x78]
lea ecx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x140009f2b
mov qword [rbp - 0x18], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
lea rax, [0x1402c4b50]
mov qword [rbp], rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x18]
call fcn.14001bce0
nop
lea rdx, [0x1402c5008]
mov rcx, rax
call fcn.1400041c0
nop
lea rcx, [rsp + 0x68]
jmp 0x140009e58
xor r9d, r9d
mov r8, qword [rbp + 0x70]
lea edx, [r9 + 1]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x140009f96
mov qword [rbp + 8], 2
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
lea rax, [0x1402c4b50]
mov qword [rbp + 0x20], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 8]
call fcn.14001bce0
nop
lea rdx, [0x1402c5028]
mov rcx, rax
call fcn.1400041c0
nop
lea rcx, [rsp + 0x70]
call fcn.14002cec0
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140009e5d
mov qword [rsp + 0x30], rbx
mov rax, qword [rbp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
xorps xmm0, xmm0
test eax, eax
lea rax, [0x1402c4b50]
je 0x14000a014
mov qword [rbp + 0x28], 2
movdqu xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x28]
call fcn.14001bce0
nop
lea rdx, [0x1402c5058]
mov rcx, rax
call fcn.1400041c0
nop
lea rcx, [rsp + 0x78]
call fcn.14002cec0
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140009e5d
mov qword [rbp + 0x48], 2
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x48]
call fcn.14001bce0
nop
lea rdx, [0x1402c5088]
mov rcx, rax
call fcn.1400041c0
nop
lea rcx, [rbp - 0x80]
call fcn.14002cec0
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.140102b40
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret