Function at 0x140008770
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.140009fa0
mov eax, dword [rsp + 0x7c]
cmp eax, 0xffffffff
je 0x140008815
mov ecx, eax
and ecx, 0x10
je 0x140008815
test eax, 0x400
jne 0x140008815
mov eax, dword [rsp + 0x78]
cmp eax, 1
je 0x140008815
test ebx, ebx
jne 0x140008815
xor edi, edi
cmp eax, 2
jne 0x140008d12
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 0x140008918
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x140008b42
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 0x1400089e0
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x140008c11
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 0x140008a97
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x140008c11
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 0x140008b23
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebp, ebp
je 0x140008b60
movzx edi, bp
or edi, 0x80070000
test ebp, ebp
cmovle edi, ebp
test edi, edi
jns 0x140008c29
jmp 0x140008c78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140008c25
movzx edi, di
or edi, 0x80070000
jmp 0x140008c78
mov ecx, 0x28
call fcn.14000e728
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 0x140008ba7
call fcn.14000e730
mov rax, qword [rsp + 0x190]
test rax, rax
je 0x140008e17
mov qword [rsp + 0x198], rax
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140008c11
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 0x140008c11
mov dword [rsp + 0x1a0], 0x18
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x1a8], rax
mov dword [rsp + 0x1b0], 0
test edi, edi
jns 0x140008c29
jmp 0x140008c78
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140008c78
test ebx, ebx
jne 0x140008d76
xor edi, edi
lea rdx, [rsp + 0x78]
mov rcx, r13
xor r8d, r8d
call fcn.140009210
lea rdx, [rsp + 0x1a0]
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140008c78
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140008e29
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 0x140008c96
call fcn.14000e730
mov rcx, qword [rsp + 0x188]
mov qword [rsp + 0x188], 0
test rcx, rcx
je 0x140008cb5
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xf0], 0
test rcx, rcx
je 0x140008cd4
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0xe8], 0
test rcx, rcx
je 0x140008cf3
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], 0
test rcx, rcx
je 0x140008d12
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x90], 0
test rcx, rcx
je 0x140008d30
call fcn.14000e730
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140008d48
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140019770
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.1400094b0
mov edi, eax
test eax, eax
js 0x140008df0
cmp qword [rsp + 0xa0], 0
je 0x140008df0
test r15b, r15b
jne 0x140008ecd
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x78]
lea r9, [rsp + 0xd8]
mov r8, r14
call fcn.1400095c0
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 0x140008df0
test ebx, ebx
jns 0x140008f9b
mov edi, ebx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa8], 0
test rcx, rcx
je 0x140008c78
call fcn.14000e730
jmp 0x140008c78
mov edi, 0x8007000e
test edi, edi
jns 0x140008c29
jmp 0x140008c78
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.140009fa0
mov eax, dword [rsp + 0xa4]
cmp eax, 0xffffffff
je 0x140008e89
mov ecx, eax
and ecx, 0x10
je 0x140008e89
test eax, 0x400
jne 0x140008e89
mov eax, dword [rsp + 0xa0]
add eax, 0xffffffff
xor edi, edi
cmp eax, 1
ja 0x140008e8e
mov edi, 0x800700b7
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0xb8], 0
test rcx, rcx
je 0x140008eac
call fcn.14000e730
mov rcx, qword [rsp + 0xa8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140008c78
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140008c78
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.14001787c
mov rdi, rax
lea rbp, [rsp + 0x98]
mov rcx, rbp
call fcn.14001787c
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.140008650
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.1400095c0
mov ebp, eax
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], 0
test rcx, rcx
je 0x140008f8b
call fcn.14000e730
cmp rsi, rdi
mov ebx, 0x80004005
cmove ebx, ebp
jmp 0x140008dce
lea rcx, [rsp + 0x78]
mov rdx, r13
mov r8d, 1
call fcn.140009fa0
mov eax, dword [rsp + 0x7c]
mov edi, 0x80004005
cmp eax, 0xffffffff
je 0x140008df0
mov ecx, eax
and ecx, 0x10
je 0x140008df0
test eax, 0x400
jne 0x140008df0
mov eax, dword [rsp + 0x78]
add eax, 0xffffffff
cmp eax, 2
jb 0x140008df0
lea rcx, [rsp + 0x78]
lea r8, [rsp + 0xd8]
mov rdx, r13
call fcn.14000a110
cmp eax, 1
je 0x140008dee
jmp 0x140008df0