Function at 0x1400646a0
Capabilities:
Create directory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov qword [rbp + 7], 0xfffffffffffffffe
movzx ebx, dl
mov rdi, rcx
lea rdx, [rbp - 0x59]
call fcn.140061030
nop
test bl, bl
je 0x14006494f
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x29]
call fcn.140021f00
nop
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.140023b40
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rax]
mov qword [rbp - 0x59], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x19]
mov eax, dword [rcx]
mov r15d, 2
or esi, 0xffffffff
test eax, eax
je 0x14006471f
cmp eax, esi
je 0x14006472e
lock dec dword [rcx]
jne 0x14006472e
mov rcx, qword [rbp - 0x19]
mov r8d, 8
mov rdx, r15
call fcn.140011e00
nop
mov rcx, qword [rbp - 0x29]
mov eax, dword [rcx]
test eax, eax
je 0x140064746
cmp eax, 0xffffffff
je 0x140064754
lock dec dword [rcx]
jne 0x140064754
mov rcx, qword [rbp - 0x29]
mov r8d, 8
mov rdx, r15
call fcn.140011e00
mov r14d, esi
mov dword [rbp - 9], r15d
lea rax, [0x141552b18]
mov qword [rbp - 1], rax
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp + 0x17], xmm0
mov r8d, 1
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x59]
call fcn.140019cc0
test al, al
mov rax, qword [rbp - 0x59]
je 0x1400647f5
xor edi, edi
cmp dword [rax + 4], edi
jle 0x140064810
mov r12d, edi
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rax + 0x10]
add rdx, r12
movzx ebx, word [rdx + rax]
lea rcx, [rbp + 0x77]
call fcn.140023610
cmp bx, word [rax]
jne 0x1400647ca
inc edi
add r12, 2
mov rax, qword [rbp - 0x59]
cmp edi, dword [rax + 4]
jl 0x1400647a0
jmp 0x140064810
mov r14d, edi
cmp edi, 0xffffffff
je 0x140064810
lea rcx, [rbp + 0x7f]
call fcn.140023610
mov r9d, 1
mov r8d, edi
movzx edx, word [rax]
lea rcx, [rbp - 0x59]
call fcn.140015c70
mov r14d, eax
jmp 0x140064810
cmp dword [rax + 4], 2
jle 0x140064810
mov rcx, qword [rax + 0x10]
cmp word [rcx + rax + 2], 0x3a
cmove r14d, r15d
nop dword [rax]
lea rcx, [rbp - 0x31]
call fcn.140023610
lea r8d, [r14 + 1]
mov r9d, 1
movzx edx, word [rax]
lea rcx, [rbp - 0x59]
call fcn.140015c70
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140064846
mov rax, qword [rbp - 0x59]
mov ebx, dword [rax + 4]
cmp r14d, ebx
je 0x140064948
test ebx, ebx
je 0x14006490e
mov r8d, ebx
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x59]
call fcn.140016180
nop
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x39]
call fcn.14006a6f0
nop
lea rcx, [rbp - 0x39]
call fcn.14001b320
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne r14b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rbp - 0x49], eax
mov rcx, qword [rbp - 0x39]
mov eax, dword [rcx]
test eax, eax
je 0x1400648ad
cmp eax, 0xffffffff
je 0x1400648bb
lock dec dword [rcx]
mov edi, dword [rbp - 0x49]
jne 0x1400648bb
mov rcx, qword [rbp - 0x39]
mov r8d, 8
mov rdx, r15
call fcn.140011e00
test r14b, r14b
jne 0x1400648e8
cmp edi, 0xb7
je 0x1400648cd
cmp edi, 5
jne 0x14006491b
mov byte [rbp + 0x6f], 0
lea rdx, [rbp + 0x6f]
lea rcx, [rbp - 0x51]
call fcn.140066450
test al, al
je 0x14006491b
cmp byte [rbp + 0x6f], 0
je 0x14006491b
mov rcx, qword [rbp - 0x51]
mov eax, dword [rcx]
test eax, eax
je 0x140064900
cmp eax, 0xffffffff
je 0x14006490e
lock dec dword [rcx]
jne 0x14006490e
mov rcx, qword [rbp - 0x51]
mov r8d, 8
mov rdx, r15
call fcn.140011e00
mov r14d, ebx
cmp ebx, 0xffffffff
je 0x140064948
jmp 0x140064810
mov rcx, qword [rbp - 0x51]
mov eax, dword [rcx]
test eax, eax
je 0x140064933
cmp eax, 0xffffffff
je 0x140064941
lock dec dword [rcx]
jne 0x140064941
mov rcx, qword [rbp - 0x51]
mov r8d, 8
mov rdx, r15
call fcn.140011e00
xor bl, bl
jmp 0x1400649d8
mov bl, 1
jmp 0x1400649d8
lea rdx, [rbp - 0x21]
mov rcx, rdi
call fcn.140061030
nop
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.14006a6f0
nop
lea rcx, [rbp - 0x41]
call fcn.14001b320
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rbp - 0x41]
mov eax, dword [rcx]
mov r15d, 2
or esi, 0xffffffff
test eax, eax
je 0x1400649a2
cmp eax, esi
je 0x1400649b1
lock dec dword [rcx]
jne 0x1400649b1
mov rcx, qword [rbp - 0x41]
mov r8d, 8
mov rdx, r15
call fcn.140011e00
nop
mov rcx, qword [rbp - 0x21]
mov eax, dword [rcx]
test eax, eax
je 0x1400649c9
cmp eax, 0xffffffff
je 0x1400649d8
lock dec dword [rcx]
jne 0x1400649d8
mov rcx, qword [rbp - 0x21]
mov r8d, 8
mov rdx, r15
call fcn.140011e00
nop
mov rcx, qword [rbp - 0x59]
mov eax, dword [rcx]
test eax, eax
je 0x1400649ef
cmp eax, 0xffffffff
je 0x140064a01
lock xadd dword [rcx], esi
dec esi
jne 0x140064a01
mov r8d, 8
mov rdx, r15
mov rcx, qword [rbp - 0x59]
call fcn.140011e00
movzx eax, bl
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret