Function at 0x180012e60
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x1801ab040]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rbx, rdx
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xor r12d, r12d
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
mov qword [rbp - 8], r12
mov dword [rdx], r12d
lea r13, [0x1801ab490]
mov qword [rdx + 8], r13
xor r15b, r15b
call fcn.180012170
add rax, qword [rdi + 0x20]
cmp qword [rdi + 0x10], rax
jbe 0x180012eef
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x180012ee2
mov rcx, qword [rdi]
cmp word [rcx + rax*2], 0x5c
mov r14d, 1
je 0x180012ef2
mov r14, r12
mov rcx, rdi
call fcn.180012170
add r14, rax
add r14, qword [rdi + 0x20]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8, r14
cmp qword [rdi + 0x10], r14
cmovb r8, qword [rdi + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x180012f2b
mov rdx, qword [rdi]
lea rcx, [rsp + 0x40]
call fcn.1800173d0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x28]
call fcn.180015f60
lea rcx, [rsp + 0x40]
call fcn.180015900
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov rax, qword [rdi + 0x10]
cmp rax, r14
jb 0x1800133b3
sub rax, r14
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
cmp qword [rdi + 0x18], 7
jbe 0x180012f86
mov rdi, qword [rdi]
lea rdx, [rdi + r14*2]
lea rcx, [rsp + 0x40]
call fcn.1800173d0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbp + 0x10], xmm1
movdqa xmm0, xmmword [0x180192850]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r12w
mov qword [rbp + 0x20], r12
mov edx, 2
lea rcx, [rbp]
call fcn.180010a30
lea rcx, [rsp + 0x40]
call fcn.180015900
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
lea rax, [rbp]
cmp qword [rbp + 0x18], 7
cmova rax, qword [rbp]
mov qword [rbp - 0x30], rax
lea r8, [rbp - 0x30]
lea rdx, [rbp]
lea rcx, [rbp + 0x80]
call fcn.180012a10
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
lea rcx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rcx, qword [rbp]
mov rax, qword [rbp + 0x10]
lea rcx, [rcx + rax*2]
mov qword [rbp - 0x30], rcx
lea r8, [rbp - 0x30]
lea rdx, [rbp]
lea rcx, [rbp + 0xd0]
call fcn.180012a10
mov rax, qword [rbp + 0xf0]
cmp qword [rbp + 0xa0], rax
je 0x18001331d
nop word [rax + rax]
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0x38]
call fcn.180014f70
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 7
cmova rdx, qword [rbp + 0x38]
mov rax, qword [rbp + 0x48]
lea r9, [rdx + rax*2]
lea rdx, [rbp + 0x38]
cmova rdx, qword [rbp + 0x38]
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
cmp rdx, r9
jne 0x1800130e5
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r12w
jmp 0x1800130f8
sub r9, rdx
sar r9, 1
mov r8, r9
lea rcx, [rsp + 0x68]
call fcn.1800173d0
mov qword [rbp - 0x78], r12
mov edx, 2
lea rcx, [rsp + 0x68]
call fcn.180010a30
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x28]
call fcn.180011710
lea rcx, [rsp + 0x68]
call fcn.180015900
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], r13
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [rbp + 0x28]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800114c0
mov rax, qword [rbp - 0x30]
cmp dword [rbp + 0x28], r12d
je 0x180013161
cmp eax, 1
jne 0x180013375
cmp eax, 1
jbe 0x180013186
cmp eax, 3
je 0x18001329c
mov dword [rsp + 0x40], 0xb7
mov qword [rsp + 0x48], r13
movups xmm0, xmmword [rsp + 0x40]
jmp 0x180013379
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r12w
mov qword [rbp - 0x50], r12
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], r13
mov dword [rbx], r12d
mov qword [rbx + 8], r13
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [rbp + 0x60]
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x58]
call fcn.1800114c0
cmp dword [rbp + 0x58], 3
je 0x18001324d
cmp qword [rbp - 0x60], r12
je 0x18001321c
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rcx, qword [rbp - 0x70]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
test eax, eax
jne 0x18001324d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x48], eax
mov qword [rbp - 0x40], r13
movups xmm0, xmmword [rbp - 0x48]
jmp 0x18001324a
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rcx, qword [rbp - 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18001324d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], r13
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
lea rcx, [rbp - 0x70]
call fcn.180015900
cmp dword [rbx], r12d
je 0x180013299
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], r13
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [rbp + 0x70]
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x60]
call fcn.1800114c0
cmp dword [rsp + 0x60], 3
jne 0x18001337c
mov dword [rbx], r12d
mov qword [rbx + 8], r13
mov r15b, 1
lea rcx, [rbp + 0x38]
call fcn.180015900
lea r8, [rbp + 0xa0]
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x80]
call fcn.180012b50
mov rax, qword [rax]
mov qword [rbp + 0xa0], rax
mov rcx, qword [rbp + 0x88]
cmp rax, rcx
je 0x1800132fd
mov rdx, qword [rbp + 0x98]
nop dword [rax]
cmp rax, rdx
je 0x1800132fd
cmp word [rax], 0x5c
jne 0x1800132fd
add rax, 2
cmp rax, rcx
je 0x1800132fd
mov qword [rbp + 0xa0], rax
jmp 0x1800132e0
lea rcx, [rbp + 0x80]
call fcn.180012dd0
mov rax, qword [rbp + 0xf0]
cmp qword [rbp + 0xa0], rax
jne 0x180013090
lea rcx, [rbp + 0xf8]
call fcn.180015900
lea rcx, [rbp + 0xa8]
call fcn.180015900
lea rcx, [rbp]
call fcn.180015900
lea rcx, [rbp - 0x28]
call fcn.180015900
movzx eax, r15b
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1800cac00
mov rbx, qword [rsp + 0x280]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movups xmm0, xmmword [rbp + 0x28]
movups xmmword [rbx], xmm0
lea rcx, [rbp + 0x38]
call fcn.180015900
lea rcx, [rbp + 0xf8]
call fcn.180015900
lea rcx, [rbp + 0xa8]
call fcn.180015900
lea rcx, [rbp]
call fcn.180015900
lea rcx, [rbp - 0x28]
call fcn.180015900
xor al, al
jmp 0x18001334b
call fcn.180015c50
int3