Function at 0x140009860
Capabilities:
Create directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1d8
movaps xmmword [rsp + 0x1c0], xmm6
mov ebx, r9d
mov r15d, r8d
mov r14, rdx
mov r13, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
xor r8d, r8d
test r9d, r9d
sete r8b
movabs r12, 0xffffffff00000002
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 0xffffffffffffffff
xorps xmm6, xmm6
movups xmmword [rsp + 0x70], xmm6
lea rcx, [rsp + 0x60]
mov rdx, r13
call fcn.14000b090
mov eax, dword [rsp + 0x64]
cmp eax, 0xffffffff
je 0x1400098ff
mov ecx, eax
and ecx, 0x10
je 0x1400098ff
test eax, 0x400
jne 0x1400098ff
mov eax, dword [rsp + 0x60]
cmp eax, 1
je 0x1400098ff
test ebx, ebx
jne 0x1400098ff
xor edi, edi
cmp eax, 2
jne 0x140009e08
mov word [rsp + 0xdc], 0x500
mov dword [rsp + 0xd8], 0
movups xmmword [rsp + 0xe0], xmm6
mov qword [rsp + 0xf0], 0
movups xmmword [rsp + 0x188], xmm6
movups xmmword [rsp + 0xf8], xmm6
movups xmmword [rsp + 0x108], xmm6
movups xmmword [rsp + 0x118], xmm6
movups xmmword [rsp + 0x128], xmm6
movups xmmword [rsp + 0x138], xmm6
movups xmmword [rsp + 0x148], xmm6
movups xmmword [rsp + 0x158], xmm6
movups xmmword [rsp + 0x168], xmm6
movups xmmword [rsp + 0x178], xmm6
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0xd8]
mov dl, 2
mov r8d, 0x20
mov r9d, 0x221
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, eax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], rax
test rcx, rcx
je 0x140009a02
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x140009c38
movabs rbp, 0x2001f01ff
mov qword [rsp + 0xf8], rbp
mov dword [rsp + 0x100], 3
movabs rsi, 0x200000000
mov qword [rsp + 0x114], rsi
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x80], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0xd8]
mov dl, 2
mov r8d, 0x20
mov r9d, 0x220
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, eax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0xe8], rax
test rcx, rcx
je 0x140009ad3
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x140009d07
mov qword [rsp + 0x128], rbp
mov dword [rsp + 0x130], 3
mov qword [rsp + 0x144], rsi
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x150], rax
mov qword [rsp + 0xc0], 0
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0xd8]
mov dl, 1
mov r8d, 0x12
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, eax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xf0], rax
test rcx, rcx
je 0x140009b8d
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x140009d07
lea rdx, [rsp + 0xf8]
mov qword [rsp + 0x158], rbp
mov dword [rsp + 0x160], 3
movabs rax, 0x100000000
mov qword [rsp + 0x174], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x98], 0
lea r9, [rsp + 0x98]
mov ecx, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov ebp, eax
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x188]
mov qword [rsp + 0x188], rax
test rcx, rcx
je 0x140009c19
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebp, ebp
je 0x140009c56
movzx edi, bp
or edi, 0x80070000
test ebp, ebp
cmovle edi, ebp
test edi, edi
jns 0x140009d1f
jmp 0x140009d6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140009d1b
movzx edi, di
or edi, 0x80070000
jmp 0x140009d6e
mov ecx, 0x28
call fcn.14000e5ac
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], 0
mov rcx, qword [rsp + 0x190]
mov qword [rsp + 0x190], rax
test rcx, rcx
je 0x140009c9d
call fcn.14000e5b4
mov rax, qword [rsp + 0x190]
test rax, rax
je 0x140009f04
mov qword [rsp + 0x198], rax
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140009d07
mov r8, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x198]
xor edi, edi
mov edx, 1
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x140009d07
mov dword [rsp + 0x1a0], 0x18
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x1a8], rax
mov dword [rsp + 0x1b0], 0
test edi, edi
jns 0x140009d1f
jmp 0x140009d6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140009d6e
test ebx, ebx
jne 0x140009e63
xor edi, edi
lea rdx, [rsp + 0x60]
mov rcx, r13
xor r8d, r8d
call fcn.14000a310
lea rdx, [rsp + 0x1a0]
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140009d6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140009f16
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [rsp + 0x190]
mov qword [rsp + 0x190], 0
test rcx, rcx
je 0x140009d8c
call fcn.14000e5b4
mov rcx, qword [rsp + 0x188]
mov qword [rsp + 0x188], 0
test rcx, rcx
je 0x140009dab
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xf0], 0
test rcx, rcx
je 0x140009dca
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0xe8], 0
test rcx, rcx
je 0x140009de9
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], 0
test rcx, rcx
je 0x140009e08
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x78], 0
test rcx, rcx
je 0x140009e20
call fcn.14000e5b4
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140009e35
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.1400195d0
mov eax, edi
movaps xmm6, xmmword [rsp + 0x1c0]
add rsp, 0x1d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
lea rcx, [rsp + 0xa0]
mov rdx, r13
call fcn.14000a5b0
mov edi, eax
test eax, eax
js 0x140009edd
cmp qword [rsp + 0xa0], 0
je 0x140009edd
test r15b, r15b
jne 0x140009fba
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x60]
lea r9, [rsp + 0xd8]
mov r8, r14
call fcn.14000a6c0
mov ebx, eax
lea rdx, [rsp + 0x1a0]
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edi, edi
test eax, eax
jne 0x140009edd
test ebx, ebx
jns 0x14000a097
mov edi, ebx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa8], 0
test rcx, rcx
je 0x140009d6e
call fcn.14000e5b4
jmp 0x140009d6e
mov edi, 0x8007000e
test edi, edi
jns 0x140009d1f
jmp 0x140009d6e
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0xa8], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
lea rcx, [rsp + 0xa0]
mov rdx, r13
mov r8d, 1
call fcn.14000b090
mov eax, dword [rsp + 0xa4]
cmp eax, 0xffffffff
je 0x140009f76
mov ecx, eax
and ecx, 0x10
je 0x140009f76
test eax, 0x400
jne 0x140009f76
mov eax, dword [rsp + 0xa0]
add eax, 0xffffffff
xor edi, edi
cmp eax, 1
ja 0x140009f7b
mov edi, 0x800700b7
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0xb8], 0
test rcx, rcx
je 0x140009f99
call fcn.14000e5b4
mov rcx, qword [rsp + 0xa8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140009d6e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140009d6e
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmm0, xmmword [str.updates]
movaps xmmword [rsp + 0xc0], xmm0
mov dword [rsp + 0x98], 0x30
mov rsi, qword [r14]
lea r15, [rsp + 0xc0]
mov rcx, r15
call fcn.1400176d8
mov rdi, rax
lea rbp, [rsp + 0x98]
mov rcx, rbp
call fcn.1400176d8
add rdi, rsi
add rdi, rax
add rdi, 2
mov r9, qword [r14 + 8]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r15
lea r8, str._s_s_s
lea rbp, [rsp + 0x80]
mov rcx, rbp
mov rdx, rdi
call fcn.140009740
mov rsi, qword [rsp + 0x80]
cmp rsi, rdi
cmove r14, rbp
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x60]
lea r9, [rsp + 0xd8]
mov r8, r14
call fcn.14000a6c0
mov ebp, eax
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x88], 0
test rcx, rcx
je 0x14000a087
call fcn.14000e5b4
cmp rsi, rdi
mov ebx, 0x80004005
cmove ebx, ebp
jmp 0x140009ebb
lea rcx, [rsp + 0x60]
mov rdx, r13
mov r8d, 1
call fcn.14000b090
mov eax, dword [rsp + 0x64]
mov edi, 0x80004005
cmp eax, 0xffffffff
je 0x140009edd
mov ecx, eax
and ecx, 0x10
je 0x140009edd
test eax, 0x400
jne 0x140009edd
mov eax, dword [rsp + 0x60]
add eax, 0xffffffff
cmp eax, 2
jb 0x140009edd
lea rcx, [rsp + 0x60]
lea r8, [rsp + 0xd8]
mov rdx, r13
call fcn.14000b200
cmp eax, 1
je 0x140009edb
jmp 0x140009edd