Function at 0x140009080
Capabilities:
Create directory

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rbp + 0x80], 0xfffffffffffffffe
call fcn.14001b320
mov rdi, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140009154
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140009154
mov dword [rbp - 0x60], 2
mov dword [rbp - 0x5c], 0xad
lea rax, [0x1415235b0]
mov qword [rbp - 0x58], rax
lea rax, [0x141523740]
mov qword [rbp - 0x50], rax
lea rax, [0x141668178]
mov qword [rbp - 0x48], rax
lea rdx, [rbp + 0xc8]
lea rcx, [rbp - 0x60]
call fcn.14000f5b0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, [0x141523780]
mov rcx, rbx
call fcn.140001b90
mov rbx, rax
mov edx, edi
mov rcx, qword [rax]
call fcn.140024430
mov rcx, qword [rbx]
cmp byte [rcx + 0x20], 0
je 0x140009141
mov dl, 0x20
call fcn.140024210
nop
lea rcx, [rbp + 0xc8]
call fcn.140026060
xor al, al
jmp 0x1400094f4
mov edx, 0x28
lea ecx, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x14000921e
mov dword [rbp - 0x20], 2
mov dword [rbp - 0x1c], 0xb5
lea rax, [0x1415235b0]
mov qword [rbp - 0x18], rax
lea rax, [0x141523740]
mov qword [rbp - 0x10], rax
lea rax, [0x141668178]
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x20]
call fcn.14000f5b0
mov rdi, rax
or r8d, 0xffffffff
lea rdx, [0x1415237a0]
lea rcx, [rbp + 0xc0]
call fcn.140001a90
nop
mov rdx, rax
mov rcx, qword [rdi]
call fcn.1400241a0
nop
mov rcx, qword [rbp + 0xc0]
mov eax, dword [rcx]
test eax, eax
je 0x1400091ef
cmp eax, 0xffffffff
je 0x1400091fd
lock dec dword [rcx]
jne 0x1400091fd
mov rcx, qword [rbp + 0xc0]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
mov rcx, qword [rdi]
cmp byte [rcx + 0x20], 0
je 0x14000920e
mov dl, 0x20
call fcn.140024210
nop
lea rcx, [rbp - 0x68]
call fcn.140026060
xor al, al
jmp 0x1400094f4
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x140009296
mov dword [rbp + 0x60], 2
mov dword [rbp + 0x64], 0xba
lea rax, [0x1415235b0]
mov qword [rbp + 0x68], rax
lea rax, [0x141523740]
mov qword [rbp + 0x70], rax
lea rax, [0x141668178]
mov qword [rbp + 0x78], rax
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x60]
call fcn.14000f5b0
nop
lea rdx, [0x1415237c8]
mov rcx, rax
call fcn.140001b90
nop
lea rcx, [rbp - 0x70]
call fcn.140026060
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x1400094f4
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x40], 0x10000000
mov dword [rsp + 0x44], 3
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x60], 5
lea rax, [0x1415237f8]
mov qword [rsp + 0x68], rax
mov qword [rbp + 0xb8], 0
lea r9, [rbp + 0xb8]
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea ecx, [r8 + 1]
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x140009368
mov dword [rbp + 0x20], 2
mov dword [rbp + 0x24], 0xcb
lea rax, [0x1415235b0]
mov qword [rbp + 0x28], rax
lea rax, [0x141523740]
mov qword [rbp + 0x30], rax
lea rax, [0x141668178]
mov qword [rbp + 0x38], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x20]
call fcn.14000f5b0
nop
lea rdx, [0x141523810]
mov rcx, rax
call fcn.140001b90
nop
lea rcx, [rbp - 0x80]
jmp 0x140009281
xor r9d, r9d
mov r8, qword [rbp + 0xb8]
lea edx, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x1400093ed
mov dword [rbp - 0x40], 2
mov dword [rbp - 0x3c], 0xd1
lea rax, [0x1415235b0]
mov qword [rbp - 0x38], rax
lea rax, [0x141523740]
mov qword [rbp - 0x30], rax
lea rax, [0x141668178]
mov qword [rbp - 0x28], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x40]
call fcn.14000f5b0
nop
lea rdx, [0x141523830]
mov rcx, rax
call fcn.140001b90
nop
lea rcx, [rsp + 0x70]
call fcn.140026060
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140009286
mov qword [rsp + 0x30], 0
mov rax, qword [rbp + 0xb8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
lea rax, [0x1415235b0]
je 0x14000948d
mov dword [rbp], 2
mov dword [rbp + 4], 0xd9
mov qword [rbp + 8], rax
lea rax, [0x141523740]
mov qword [rbp + 0x10], rax
lea rax, [0x141668178]
mov qword [rbp + 0x18], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp]
call fcn.14000f5b0
nop
lea rdx, [0x141523860]
mov rcx, rax
call fcn.140001b90
nop
lea rcx, [rsp + 0x78]
call fcn.140026060
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140009286
mov dword [rbp + 0x40], 2
mov dword [rbp + 0x44], 0xdf
mov qword [rbp + 0x48], rax
lea rax, [0x141523740]
mov qword [rbp + 0x50], rax
lea rax, [0x141668178]
mov qword [rbp + 0x58], rax
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x40]
call fcn.14000f5b0
nop
lea rdx, [0x141523890]
mov rcx, rax
call fcn.140001b90
nop
lea rcx, [rbp - 0x78]
call fcn.140026060
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
add rsp, 0x190
pop rdi
pop rbx
pop rbp
ret