Function at 0x140008fd0
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x71], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1404716f0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
xor r12d, r12d
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], SafeArrayGetDim
mov byte [rbp - 0x69], r12b
lea rcx, [rbp - 0x69]
call fcn.140008cc0
lea rbx, [rbp - 0x69]
cmp qword [rbp - 0x51], 0x10
cmovae rbx, qword [rbp - 0x69]
mov byte [rbp + 0x17], r12b
mov edi, 1
mov edx, edi
lea rcx, [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14000907f
xor r9d, r9d
xor r8d, r8d
mov edx, edi
lea rcx, [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x14000907f
lea rax, [rbp - 0x11]
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x29], reloc.OLEAUT32.dll_SafeArrayGetElement
mov dword [rbp - 0x19], r12d
mov byte [rbp + 0x17], r12b
lea rdx, [rbp - 0x29]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rbx, [0x1402bc880]
lea r15, [0x1402bc980]
test eax, eax
jne 0x1400090d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x79], eax
mov rcx, rbx
nop word [rax + rax]
cmp eax, dword [rcx]
je 0x1400090c1
add rcx, 8
cmp rcx, r15
jne 0x1400090b0
mov eax, edi
jmp 0x1400090c4
mov eax, dword [rcx + 4]
mov dword [rbp - 0x75], eax
cmp eax, 9
jne 0x14000929f
mov rcx, rsi
call fcn.140008f10
mov r14, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400090e5
mov r14, qword [rsi]
mov byte [rbp + 0x17], 0
mov edx, edi
lea rcx, [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140009126
xor r9d, r9d
xor r8d, r8d
mov edx, edi
lea rcx, [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x140009126
lea rax, [rbp - 0x11]
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x29], reloc.OLEAUT32.dll_SafeArrayGetElement
mov dword [rbp - 0x19], r12d
mov byte [rbp + 0x17], 0
lea rdx, [rbp - 0x29]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14000915e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x79], eax
cmp eax, dword [rbx]
je 0x14000914f
add rbx, 8
cmp rbx, r15
jne 0x140009140
jmp 0x140009152
mov edi, dword [rbx + 4]
mov dword [rbp - 0x75], edi
cmp edi, 9
jne 0x14000927e
mov rdx, rsi
lea rcx, [rbp - 0x49]
call fcn.140004fe0
nop
mov rax, qword [rbp - 0x59]
inc rax
mov r8, qword [rbp - 0x39]
cmp r8, rax
cmovb rax, r8
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 0x10
cmovae rcx, qword [rbp - 0x49]
sub r8, rax
mov qword [rbp - 0x39], r8
inc r8
lea rdx, [rcx + rax]
call sub.VCRUNTIME140.dll_memmove
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 0x10
cmovae rdx, qword [rbp - 0x49]
xor r8d, r8d
lea rcx, [rbp - 0x69]
call fcn.140006c50
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0x10
jb 0x1400091f7
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400091f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400091f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010a370
movdqa xmm0, xmmword [0x1403a8e90]
movdqu xmmword [rbp - 0x39], xmm0
mov byte [rbp - 0x49], 0
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x140009246
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009241
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009241
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010a370
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], SafeArrayGetDim
mov byte [rbp - 0x69], 0
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14010a310
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor r8d, r8d
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x29]
call fcn.140006ad0
lea rdx, [0x140456738]
lea rcx, [rbp - 0x29]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
xor r8d, r8d
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x29]
call fcn.140006ad0
lea rdx, [0x140456738]
lea rcx, [rbp - 0x29]
call sub.VCRUNTIME140.dll__CxxThrowException
int3