Function at 0x140008570
Capabilities:
Create directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1e8
movaps xmmword [rsp + 0x1d0], xmm6
mov r13d, r9d
mov r15d, r8d
mov rsi, rdx
mov r12, rcx
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
xor r8d, r8d
test r9d, r9d
sete r8b
movabs r14, 0xffffffff00000002
lea rdi, [rsp + 0x88]
mov qword [rdi], r14
mov qword [rdi + 8], 0xffffffffffffffff
xorps xmm6, xmm6
movups xmmword [rdi + 0x10], xmm6
mov rcx, rdi
mov rdx, r12
call fcn.140009d00
mov eax, dword [rdi + 4]
test al, 0x10
je 0x140008619
cmp eax, 0xffffffff
je 0x140008619
test r13d, r13d
jne 0x140008619
mov ecx, eax
and ecx, 0x400
jne 0x140008619
mov ecx, dword [rsp + 0x88]
cmp ecx, 1
je 0x140008619
cmp eax, 0xffffffff
je 0x140008619
xor edi, edi
cmp ecx, 2
jne 0x140008b2b
mov qword [rsp + 0x68], rsi
xor esi, esi
lea rdi, [rsp + 0x108]
mov dword [rdi - 0x20], esi
mov word [rdi - 0x1c], 0x500
movups xmmword [rdi - 0x18], xmm6
mov qword [rdi - 8], rsi
movups xmmword [rdi + 0x90], xmm6
mov r8d, 0x90
mov rcx, rdi
xor edx, edx
call fcn.14000feb0
lea rbx, [rsp + 0xb0]
mov qword [rbx], rsi
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea rsi, [rsp + 0xe8]
mov rcx, rsi
mov dl, 2
mov r8d, 0x20
mov r9d, 0x221
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ebp, eax
mov rax, qword [rbx]
mov rcx, qword [rsi + 8]
mov qword [rsi + 8], rax
test rcx, rcx
je 0x1400086af
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test ebp, ebp
je 0x1400088a6
mov qword [rsp + 0x60], r12
mov r12d, r15d
movabs r14, 0x2001f01ff
lea rsi, [rsp + 0xe8]
mov qword [rsi + 0x20], r14
mov dword [rsi + 0x28], 3
movabs r15, 0x200000000
mov qword [rsi + 0x3c], r15
mov rax, qword [rsp + 0xb0]
mov qword [rsi + 0x48], rax
lea rbx, [rsp + 0x70]
mov qword [rbx], 0
mov qword [rsp + 0x50], rbx
xor eax, eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov rcx, rsi
mov dl, 2
mov r8d, 0x20
mov r9d, 0x220
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ebp, eax
mov rax, qword [rbx]
mov rcx, qword [rsi + 0x10]
mov qword [rsi + 0x10], rax
test rcx, rcx
je 0x140008750
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test ebp, ebp
je 0x14000887b
lea rsi, [rsp + 0xe8]
mov qword [rsi + 0x50], r14
mov dword [rsi + 0x58], 3
mov qword [rsi + 0x6c], r15
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x78], rax
lea rbx, [rsp + 0xd0]
mov qword [rbx], 0
mov qword [rsp + 0x50], rbx
xor eax, eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov rcx, rsi
mov dl, 1
mov r8d, 0x12
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ebp, eax
mov rax, qword [rbx]
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 0x18], rax
test rcx, rcx
je 0x1400087d2
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test ebp, ebp
je 0x14000887b
mov qword [rsp + 0x168], r14
mov dword [rsp + 0x170], 3
movabs rax, 0x100000000
mov qword [rsp + 0x184], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x190], rax
lea rsi, [rsp + 0xa8]
mov qword [rsi], 0
mov ecx, 3
mov rdx, rdi
xor r8d, r8d
mov r9, rsi
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov ebp, eax
mov rax, qword [rsi]
mov rcx, qword [rsp + 0x198]
mov qword [rsp + 0x198], rax
test rcx, rcx
mov r15d, r12d
je 0x140008855
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebp, ebp
mov r12, qword [rsp + 0x60]
je 0x1400088c4
movzx edi, bp
or edi, 0x80070000
test ebp, ebp
cmovle edi, ebp
movabs r14, 0xffffffff00000002
jmp 0x14000899f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
movabs r14, 0xffffffff00000002
mov r15d, r12d
mov r12, qword [rsp + 0x60]
jmp 0x14000899f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x14000899f
movzx edi, di
or edi, 0x80070000
jmp 0x140008a91
mov ecx, 0x28
call fcn.14000e284
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], 0
mov rcx, qword [rsp + 0x1a0]
mov qword [rsp + 0x1a0], rax
test rcx, rcx
je 0x14000891b
call fcn.14000e28c
mov rax, qword [rsp + 0x1a0]
test rax, rax
movabs r14, 0xffffffff00000002
jne 0x140008925
mov edi, 0x8007000e
jmp 0x14000899f
movabs r14, 0xffffffff00000002
mov qword [rsp + 0x1a8], rax
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14000898b
mov r8, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x1a8]
xor edi, edi
mov edx, 1
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x14000898b
mov dword [rsp + 0x1b0], 0x18
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1b8], rax
mov dword [rsp + 0x1c0], 0
jmp 0x14000899f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140008a91
test r13d, r13d
jne 0x140008b8f
xor edi, edi
lea rdx, [rsp + 0x88]
mov rcx, r12
xor r8d, r8d
call fcn.140008fc0
lea rdx, [rsp + 0x1b0]
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140008a91
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140008a83
lea rsi, [rsp + 0xb0]
mov qword [rsi], r14
mov qword [rsi + 8], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
mov rcx, rsi
mov rdx, r12
mov r8d, 1
call fcn.140009d00
mov eax, dword [rsi + 4]
test al, 0x10
je 0x140008a46
cmp eax, 0xffffffff
je 0x140008a46
bt eax, 0xa
jb 0x140008a46
mov ecx, dword [rsp + 0xb0]
cmp ecx, 1
je 0x140008a46
cmp eax, 0xffffffff
je 0x140008a46
xor edi, edi
cmp ecx, 2
jne 0x140008a4b
mov edi, 0x800700b7
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0xc8], 0
test rcx, rcx
je 0x140008a69
call fcn.14000e28c
mov rcx, qword [rsp + 0xb8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140008a91
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140008a91
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [rsp + 0x1a0]
mov qword [rsp + 0x1a0], 0
test rcx, rcx
je 0x140008aaf
call fcn.14000e28c
mov rcx, qword [rsp + 0x198]
mov qword [rsp + 0x198], 0
test rcx, rcx
je 0x140008ace
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x100], 0
test rcx, rcx
je 0x140008aed
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0xf8], 0
test rcx, rcx
je 0x140008b0c
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xf0], 0
test rcx, rcx
je 0x140008b2b
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0xa0], 0
test rcx, rcx
je 0x140008b49
call fcn.14000e28c
mov rcx, qword [rsp + 0x90]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140008b61
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.140019150
mov eax, edi
movaps xmm6, xmmword [rsp + 0x1d0]
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
lea rcx, [rsp + 0xb0]
movaps xmmword [rcx], xmm0
mov rdx, r12
call fcn.140009260
mov edi, eax
test eax, eax
js 0x140008cf0
cmp qword [rsp + 0xb0], 0
je 0x140008cf0
test r15b, r15b
je 0x140008c6a
xorps xmm0, xmm0
lea r15, [rsp + 0x70]
movaps xmmword [r15], xmm0
movaps xmm0, xmmword [str.updates]
lea r14, [rsp + 0xd0]
movaps xmmword [r14], xmm0
lea rbp, [rsp + 0xa8]
mov dword [rbp], 0x30
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rdi]
mov rcx, r14
call fcn.14001725c
mov rsi, rax
mov rcx, rbp
call fcn.14001725c
add rsi, rbx
add rsi, rax
add rsi, 2
mov r9, qword [rdi + 8]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r14
lea r8, str._s_s_s
mov rcx, r15
mov rdx, rsi
call fcn.140008340
cmp qword [r15], rsi
jne 0x140008c95
mov dword [rsp + 0x20], r13d
lea rcx, [rsp + 0xb0]
lea rdx, [rsp + 0x88]
lea r8, [rsp + 0x70]
lea r9, [rsp + 0xe8]
call fcn.140009350
mov ebx, eax
jmp 0x140008cbf
mov dword [rsp + 0x20], r13d
lea rcx, [rsp + 0xb0]
lea rdx, [rsp + 0x88]
lea r9, [rsp + 0xe8]
mov r8, qword [rsp + 0x68]
call fcn.140009350
mov ebx, eax
jmp 0x140008cd7
mov dword [rsp + 0x20], r13d
lea rcx, [rsp + 0xb0]
lea rdx, [rsp + 0x88]
lea r9, [rsp + 0xe8]
mov r8, rdi
call fcn.140009350
mov ebx, 0x80004005
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x78], 0
test rcx, rcx
je 0x140008cd7
call fcn.14000e28c
lea rdx, [rsp + 0x1b0]
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edi, edi
test eax, eax
je 0x140008d17
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0xb8], 0
test rcx, rcx
je 0x140008a91
call fcn.14000e28c
jmp 0x140008a91
test ebx, ebx
js 0x140008d82
lea rsi, [rsp + 0x88]
mov rcx, rsi
mov rdx, r12
mov r8d, 1
call fcn.140009d00
mov eax, dword [rsi + 4]
mov edi, 0x80004005
test al, 0x10
je 0x140008cf0
cmp eax, 0xffffffff
je 0x140008cf0
bt eax, 0xa
jb 0x140008cf0
mov ecx, dword [rsp + 0x88]
cmp ecx, 1
je 0x140008cf0
cmp eax, 0xffffffff
je 0x140008cf0
cmp ecx, 2
je 0x140008cf0
lea rcx, [rsp + 0x88]
lea r8, [rsp + 0xe8]
mov rdx, r12
call fcn.140009e80
cmp eax, 1
jne 0x140008cf0
mov edi, ebx
jmp 0x140008cf0