Function at 0x140009240
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.140001f40
mov eax, dword [rdi + 4]
cmp eax, 0xffffffff
je 0x1400092df
mov ecx, eax
and ecx, 0x10
je 0x1400092df
and eax, 0x400
or eax, r13d
jne 0x1400092df
mov eax, dword [rsp + 0x88]
dec eax
xor edi, edi
cmp eax, 1
ja 0x1400097e0
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.14000f920
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 0x140009375
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test ebp, ebp
je 0x14000956c
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 0x140009416
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test ebp, ebp
je 0x140009541
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 0x140009498
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test ebp, ebp
je 0x140009541
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 0x14000951b
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebp, ebp
mov r12, qword [rsp + 0x60]
je 0x14000958a
movzx edi, bp
or edi, 0x80070000
test ebp, ebp
cmovle edi, ebp
movabs r14, 0xffffffff00000002
jmp 0x140009665
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 0x140009665
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140009665
movzx edi, di
or edi, 0x80070000
jmp 0x140009746
mov ecx, 0x28
call fcn.14000d924
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 0x1400095e1
call fcn.14000dbd0
mov rax, qword [rsp + 0x1a0]
test rax, rax
movabs r14, 0xffffffff00000002
jne 0x1400095eb
mov edi, 0x8007000e
jmp 0x140009665
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 0x140009651
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 0x140009651
mov dword [rsp + 0x1b0], 0x18
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1b8], rax
mov dword [rsp + 0x1c0], 0
jmp 0x140009665
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140009746
test r13d, r13d
jne 0x140009838
xor edi, edi
lea rdx, [rsp + 0x88]
mov rcx, r12
xor r8d, r8d
call fcn.140009a30
lea rdx, [rsp + 0x1b0]
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140009746
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140009738
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.140001f40
mov eax, dword [rsi + 4]
cmp eax, 0xffffffff
je 0x140009707
mov ecx, eax
and ecx, 0x10
je 0x140009707
bt eax, 0xa
jb 0x140009707
mov eax, dword [rsp + 0xb0]
dec eax
xor edi, edi
cmp eax, 1
ja 0x14000970c
mov edi, 0x800700b7
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x14000971e
call fcn.14000dbd0
mov rcx, qword [rsp + 0xb8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140009746
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140009746
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 0x140009764
call fcn.14000dbd0
mov rcx, qword [rsp + 0x198]
mov qword [rsp + 0x198], 0
test rcx, rcx
je 0x140009783
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x100], 0
test rcx, rcx
je 0x1400097a2
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0xf8], 0
test rcx, rcx
je 0x1400097c1
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xf0], 0
test rcx, rcx
je 0x1400097e0
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400097f2
call fcn.14000dbd0
mov rcx, qword [rsp + 0x90]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000980a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.1400187d0
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.140027040
mov edi, eax
test eax, eax
js 0x140009990
cmp qword [rsp + 0xb0], 0
je 0x140009990
test r15b, r15b
je 0x140009913
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.14000da18
mov rsi, rax
mov rcx, rbp
call fcn.14000da18
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 section..text
cmp qword [r15], rsi
jne 0x14000993e
mov dword [rsp + 0x20], r13d
lea rcx, [rsp + 0xb0]
lea rdx, [rsp + 0x88]
lea r8, [rsp + 0x70]
lea r9, [rsp + 0xe8]
call fcn.140009cc0
mov ebx, eax
jmp 0x140009968
mov dword [rsp + 0x20], r13d
lea rcx, [rsp + 0xb0]
lea rdx, [rsp + 0x88]
lea r9, [rsp + 0xe8]
mov r8, qword [rsp + 0x68]
call fcn.140009cc0
mov ebx, eax
jmp 0x140009977
mov dword [rsp + 0x20], r13d
lea rcx, [rsp + 0xb0]
lea rdx, [rsp + 0x88]
lea r9, [rsp + 0xe8]
mov r8, rdi
call fcn.140009cc0
mov ebx, 0x80004005
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140009977
call fcn.14000dbd0
lea rdx, [rsp + 0x1b0]
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edi, edi
test eax, eax
je 0x1400099b7
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0xb8], 0
test rcx, rcx
je 0x140009746
call fcn.14000dbd0
jmp 0x140009746
test ebx, ebx
js 0x140009a1d
lea rsi, [rsp + 0x88]
mov rcx, rsi
mov rdx, r12
mov r8d, 1
call fcn.140001f40
mov eax, dword [rsi + 4]
mov edi, 0x80004005
cmp eax, 0xffffffff
je 0x140009990
mov ecx, eax
and ecx, 0x10
je 0x140009990
bt eax, 0xa
jb 0x140009990
mov eax, dword [rsp + 0x88]
dec eax
cmp eax, 2
jb 0x140009990
lea rcx, [rsp + 0x88]
lea r8, [rsp + 0xe8]
mov rdx, r12
call fcn.140027850
cmp eax, 1
jne 0x140009990
mov edi, ebx
jmp 0x140009990