Function at 0x140007770
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 [0x1402f1140]
xor rax, rsp
mov qword [rbp + 0xa8], rax
call fcn.140021850
mov rsi, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140007890
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140007890
mov qword [rbp - 0x78], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
lea rax, str.default
mov qword [rbp - 0x60], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.14000f950
mov rdi, rax
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, str.Failed_to_create_directory:
lea rcx, [rsp + 0x40]
call fcn.140004060
nop
mov rdx, rax
mov rcx, qword [rdi]
call fcn.14002a980
nop
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x140007840
cmp eax, ebx
je 0x14000784e
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14000784e
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
mov rcx, qword [rdi]
cmp byte [rcx + 0x20], 0
je 0x14000785e
mov dl, 0x20
call fcn.14002aa00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, qword [rdi]
call fcn.14002abe0
mov rcx, qword [rdi]
cmp byte [rcx + 0x20], 0
je 0x14000787f
mov dl, 0x20
call fcn.14002aa00
nop
lea rcx, [rsp + 0x50]
call fcn.140022ff0
xor al, al
jmp 0x140007ba1
mov edx, 0x28
lea ecx, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x140007947
mov qword [rbp - 0x58], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
lea rax, str.default
mov qword [rbp - 0x40], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x58]
call fcn.14000f950
mov rdi, rax
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, str.Failed_to_allocate_security_descriptor.
lea rcx, [rsp + 0x48]
call fcn.140004060
nop
mov rdx, rax
mov rcx, qword [rdi]
call fcn.14002a980
nop
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x140007917
cmp eax, ebx
je 0x140007925
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140007925
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
mov rcx, qword [rdi]
cmp byte [rcx + 0x20], 0
je 0x140007936
mov dl, 0x20
call fcn.14002aa00
nop
lea rcx, [rsp + 0x58]
call fcn.140022ff0
xor al, al
jmp 0x140007ba1
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x1400079ad
mov qword [rbp - 0x38], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
lea rax, str.default
mov qword [rbp - 0x20], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x38]
call fcn.14000f950
nop
lea rdx, str.Failed_to_initialize_security_descriptor.
mov rcx, rax
call fcn.140004120
nop
lea rcx, [rsp + 0x60]
call fcn.140022ff0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x140007ba1
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, str.EVERYONE
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 0x140007a6b
mov qword [rbp - 0x18], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
lea rax, str.default
mov qword [rbp], rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x18]
call fcn.14000f950
nop
lea rdx, str.Failed_to_set_entries_in_ACL.
mov rcx, rax
call fcn.140004120
nop
lea rcx, [rsp + 0x68]
jmp 0x140007998
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 0x140007ad6
mov qword [rbp + 8], 2
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
lea rax, str.default
mov qword [rbp + 0x20], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 8]
call fcn.14000f950
nop
lea rdx, str.Failed_to_set_DACL_in_security_descriptor.
mov rcx, rax
call fcn.140004120
nop
lea rcx, [rsp + 0x70]
call fcn.140022ff0
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000799d
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, str.default
je 0x140007b54
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.14000f950
nop
lea rdx, str.Failed_to_apply_security_info_to_folder.
mov rcx, rax
call fcn.140004120
nop
lea rcx, [rsp + 0x78]
call fcn.140022ff0
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000799d
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.14000f950
nop
lea rdx, str.Folder_permissions_set_successfully.
mov rcx, rax
call fcn.140004120
nop
lea rcx, [rbp - 0x80]
call fcn.140022ff0
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.14010a180
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