Function at 0x140009880
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.14000b0b0
mov eax, dword [rsp + 0x7c]
cmp eax, 0xffffffff
je 0x140009925
mov ecx, eax
and ecx, 0x10
je 0x140009925
test eax, 0x400
jne 0x140009925
mov eax, dword [rsp + 0x78]
cmp eax, 1
je 0x140009925
test ebx, ebx
jne 0x140009925
xor edi, edi
cmp eax, 2
jne 0x140009e22
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 0x140009a28
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x140009c52
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 0x140009af0
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x140009d21
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 0x140009ba7
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x140009d21
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 0x140009c33
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebp, ebp
je 0x140009c70
movzx edi, bp
or edi, 0x80070000
test ebp, ebp
cmovle edi, ebp
test edi, edi
jns 0x140009d39
jmp 0x140009d88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140009d35
movzx edi, di
or edi, 0x80070000
jmp 0x140009d88
mov ecx, 0x28
call fcn.14000e5dc
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 0x140009cb7
call fcn.14000e5e4
mov rax, qword [rsp + 0x190]
test rax, rax
je 0x140009f27
mov qword [rsp + 0x198], rax
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140009d21
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 0x140009d21
mov dword [rsp + 0x1a0], 0x18
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x1a8], rax
mov dword [rsp + 0x1b0], 0
test edi, edi
jns 0x140009d39
jmp 0x140009d88
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140009d88
test ebx, ebx
jne 0x140009e86
xor edi, edi
lea rdx, [rsp + 0x78]
mov rcx, r13
xor r8d, r8d
call fcn.14000a320
lea rdx, [rsp + 0x1a0]
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140009d88
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140009f39
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 0x140009da6
call fcn.14000e5e4
mov rcx, qword [rsp + 0x188]
mov qword [rsp + 0x188], 0
test rcx, rcx
je 0x140009dc5
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xf0], 0
test rcx, rcx
je 0x140009de4
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0xe8], 0
test rcx, rcx
je 0x140009e03
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], 0
test rcx, rcx
je 0x140009e22
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x90], 0
test rcx, rcx
je 0x140009e40
call fcn.14000e5e4
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140009e58
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140019600
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.14000a5c0
mov edi, eax
test eax, eax
js 0x140009f00
cmp qword [rsp + 0xa0], 0
je 0x140009f00
test r15b, r15b
jne 0x140009fdd
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x78]
lea r9, [rsp + 0xd8]
mov r8, r14
call fcn.14000a6d0
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 0x140009f00
test ebx, ebx
jns 0x14000a0ab
mov edi, ebx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa8], 0
test rcx, rcx
je 0x140009d88
call fcn.14000e5e4
jmp 0x140009d88
mov edi, 0x8007000e
test edi, edi
jns 0x140009d39
jmp 0x140009d88
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.14000b0b0
mov eax, dword [rsp + 0xa4]
cmp eax, 0xffffffff
je 0x140009f99
mov ecx, eax
and ecx, 0x10
je 0x140009f99
test eax, 0x400
jne 0x140009f99
mov eax, dword [rsp + 0xa0]
add eax, 0xffffffff
xor edi, edi
cmp eax, 1
ja 0x140009f9e
mov edi, 0x800700b7
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0xb8], 0
test rcx, rcx
je 0x140009fbc
call fcn.14000e5e4
mov rcx, qword [rsp + 0xa8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140009d88
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140009d88
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.140017708
mov rdi, rax
lea rbp, [rsp + 0x98]
mov rcx, rbp
call fcn.140017708
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.140009760
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.14000a6d0
mov ebp, eax
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], 0
test rcx, rcx
je 0x14000a09b
call fcn.14000e5e4
cmp rsi, rdi
mov ebx, 0x80004005
cmove ebx, ebp
jmp 0x140009ede
lea rcx, [rsp + 0x78]
mov rdx, r13
mov r8d, 1
call fcn.14000b0b0
mov eax, dword [rsp + 0x7c]
mov edi, 0x80004005
cmp eax, 0xffffffff
je 0x140009f00
mov ecx, eax
and ecx, 0x10
je 0x140009f00
test eax, 0x400
jne 0x140009f00
mov eax, dword [rsp + 0x78]
add eax, 0xffffffff
cmp eax, 2
jb 0x140009f00
lea rcx, [rsp + 0x78]
lea r8, [rsp + 0xd8]
mov rdx, r13
call fcn.14000b220
cmp eax, 1
je 0x140009efe
jmp 0x140009f00