Function at 0x140009640
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 + 0x78], r12
mov qword [rsp + 0x80], 0xffffffffffffffff
xorps xmm6, xmm6
movups xmmword [rsp + 0x88], xmm6
lea rcx, [rsp + 0x78]
mov rdx, r13
call fcn.14000ae70
mov eax, dword [rsp + 0x7c]
cmp eax, 0xffffffff
je 0x1400096e5
mov ecx, eax
and ecx, 0x10
je 0x1400096e5
test eax, 0x400
jne 0x1400096e5
mov eax, dword [rsp + 0x78]
cmp eax, 1
je 0x1400096e5
test ebx, ebx
jne 0x1400096e5
xor edi, edi
cmp eax, 2
jne 0x140009be2
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 0x1400097e8
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x140009a12
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 + 0x60], 0
lea rax, [rsp + 0x60]
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 + 0x60]
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0xe8], rax
test rcx, rcx
je 0x1400098b0
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x140009ae1
mov qword [rsp + 0x128], rbp
mov dword [rsp + 0x130], 3
mov qword [rsp + 0x144], rsi
mov rax, qword [rsp + 0x60]
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 0x140009967
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x140009ae1
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 0x1400099f3
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebp, ebp
je 0x140009a30
movzx edi, bp
or edi, 0x80070000
test ebp, ebp
cmovle edi, ebp
test edi, edi
jns 0x140009af9
jmp 0x140009b48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140009af5
movzx edi, di
or edi, 0x80070000
jmp 0x140009b48
mov ecx, 0x28
call fcn.14000e39c
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 0x140009a77
call fcn.14000e3a4
mov rax, qword [rsp + 0x190]
test rax, rax
je 0x140009ce7
mov qword [rsp + 0x198], rax
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140009ae1
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 0x140009ae1
mov dword [rsp + 0x1a0], 0x18
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x1a8], rax
mov dword [rsp + 0x1b0], 0
test edi, edi
jns 0x140009af9
jmp 0x140009b48
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140009b48
test ebx, ebx
jne 0x140009c46
xor edi, edi
lea rdx, [rsp + 0x78]
mov rcx, r13
xor r8d, r8d
call fcn.14000a0e0
lea rdx, [rsp + 0x1a0]
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140009b48
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140009cf9
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 0x140009b66
call fcn.14000e3a4
mov rcx, qword [rsp + 0x188]
mov qword [rsp + 0x188], 0
test rcx, rcx
je 0x140009b85
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xf0], 0
test rcx, rcx
je 0x140009ba4
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0xe8], 0
test rcx, rcx
je 0x140009bc3
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], 0
test rcx, rcx
je 0x140009be2
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x90], 0
test rcx, rcx
je 0x140009c00
call fcn.14000e3a4
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140009c18
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.1400193c0
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.14000a380
mov edi, eax
test eax, eax
js 0x140009cc0
cmp qword [rsp + 0xa0], 0
je 0x140009cc0
test r15b, r15b
jne 0x140009d9d
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x78]
lea r9, [rsp + 0xd8]
mov r8, r14
call fcn.14000a490
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 0x140009cc0
test ebx, ebx
jns 0x140009e6b
mov edi, ebx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa8], 0
test rcx, rcx
je 0x140009b48
call fcn.14000e3a4
jmp 0x140009b48
mov edi, 0x8007000e
test edi, edi
jns 0x140009af9
jmp 0x140009b48
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.14000ae70
mov eax, dword [rsp + 0xa4]
cmp eax, 0xffffffff
je 0x140009d59
mov ecx, eax
and ecx, 0x10
je 0x140009d59
test eax, 0x400
jne 0x140009d59
mov eax, dword [rsp + 0xa0]
add eax, 0xffffffff
xor edi, edi
cmp eax, 1
ja 0x140009d5e
mov edi, 0x800700b7
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0xb8], 0
test rcx, rcx
je 0x140009d7c
call fcn.14000e3a4
mov rcx, qword [rsp + 0xa8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140009b48
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140009b48
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], 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.1400174c8
mov rdi, rax
lea rbp, [rsp + 0x98]
mov rcx, rbp
call fcn.1400174c8
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 + 0x60]
mov rcx, rbp
mov rdx, rdi
call fcn.140009520
mov rsi, qword [rsp + 0x60]
cmp rsi, rdi
cmove r14, rbp
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x78]
lea r9, [rsp + 0xd8]
mov r8, r14
call fcn.14000a490
mov ebp, eax
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], 0
test rcx, rcx
je 0x140009e5b
call fcn.14000e3a4
cmp rsi, rdi
mov ebx, 0x80004005
cmove ebx, ebp
jmp 0x140009c9e
lea rcx, [rsp + 0x78]
mov rdx, r13
mov r8d, 1
call fcn.14000ae70
mov eax, dword [rsp + 0x7c]
mov edi, 0x80004005
cmp eax, 0xffffffff
je 0x140009cc0
mov ecx, eax
and ecx, 0x10
je 0x140009cc0
test eax, 0x400
jne 0x140009cc0
mov eax, dword [rsp + 0x78]
add eax, 0xffffffff
cmp eax, 2
jb 0x140009cc0
lea rcx, [rsp + 0x78]
lea r8, [rsp + 0xd8]
mov rdx, r13
call fcn.14000afe0
cmp eax, 1
je 0x140009cbe
jmp 0x140009cc0