Function at 0x180040970
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
lea rbp, [rsp - 0x4f]
sub rsp, 0xd8
mov rdx, qword [0x1801ad870]
lea r8, [0x18016dda0]
xor esi, esi
mov qword [rbp + 7], 0xf
xorps xmm0, xmm0
mov qword [rbp - 1], rsi
movups xmmword [rbp - 0x11], xmm0
mov byte [rbp - 0x11], sil
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [r8 + rcx], sil
jne 0x1800409b1
movabs rax, 0x7fffffffffffffff
sub rax, rdx
cmp rax, rcx
jb 0x180040fbf
cmp qword [0x1801ad878], 0x10
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x31]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rdi
lea rdi, [0x1801ad860]
movaps xmmword [rsp + 0xb0], xmm6
mov r9, rdi
cmovae r9, qword [0x1801ad860]
mov qword [rsp + 0x28], r8
movaps xmmword [rsp + 0xa0], xmm7
mov qword [rsp + 0x20], rdx
call fcn.180072df0
mov rdx, qword [rbp - 0x19]
mov rcx, qword [rbp - 0x21]
mov rax, rdx
sub rax, rcx
cmp rax, 3
jb 0x180040a6d
cmp rdx, 0x10
lea rax, [rcx + 3]
lea rbx, [rbp - 0x31]
mov qword [rbp - 0x21], rax
cmovae rbx, qword [rbp - 0x31]
lea rdx, [0x1801505ec]
add rbx, rcx
mov r8d, 3
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbp - 0x31]
mov byte [rbx + 3], sil
jmp 0x180040a8b
lea r9, [0x1801505ec]
mov qword [rsp + 0x20], 3
mov edx, 3
lea rcx, [rbp - 0x31]
call fcn.180072400
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], sil
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x180040ad8
mov rcx, qword [rbp - 0x11]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040ad3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040b12
call fcn.18011065c
mov rdx, qword [rbp - 0x19]
movups xmmword [rbp - 0x11], xmm6
movups xmmword [rbp - 1], xmm7
cmp rdx, 0x10
jb 0x180040b1e
mov rcx, qword [rbp - 0x31]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040b19
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040b19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18011065c
cmp qword [0x1801ad878], 0x10
mov qword [rsp + 0x108], r12
cmovae rdi, qword [0x1801ad860]
xor edx, edx
mov qword [rsp + 0xd0], r13
mov rcx, rdi
mov qword [rsp + 0xc8], r14
mov qword [rsp + 0xc0], r15
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rbx, qword [0x1801ad888]
mov r9d, 0x16
mov r12, qword [0x1801ad880]
mov qword [rbp + 0x67], rbx
cmp r12, rbx
je 0x180040d48
nop word [rax + rax]
cmp qword [rbp + 7], 0x10
lea r13, [rbp - 0x11]
mov r15, qword [r12]
lea rdi, [rbp - 0x34]
cmovae r13, qword [rbp - 0x11]
mov rax, qword [r15 + 0x40]
mov r8d, dword [rax]
test r8d, r8d
jns 0x180040be2
neg r8d
nop word [rax + rax]
dec rdi
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [rdi], r8b
mov r8d, edx
test edx, edx
jne 0x180040bb0
dec rdi
mov byte [rdi], 0x2d
jmp 0x180040c0c
dec rdi
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [rdi], r8b
mov r8d, edx
test edx, edx
jne 0x180040be2
lea rax, [rbp - 0x34]
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], rsi
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
cmp rdi, rax
jne 0x180040c39
mov qword [rbp - 0x19], 0xf
lea r8, [rbp - 0x31]
mov byte [rbp - 0x31], 0
jmp 0x180040cd2
lea rsi, [rbp - 0x34]
movabs rax, 0x7fffffffffffffff
sub rsi, rdi
cmp rsi, rax
ja 0x180040fc5
mov qword [rbp - 0x19], 0xf
cmp rsi, 0x10
jae 0x180040c7b
mov r8, rsi
mov qword [rbp - 0x21], rsi
mov rdx, rdi
lea rcx, [rbp - 0x31]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rsi - 0x31], 0
jmp 0x180040cc2
mov r14, rsi
or r14, 0xf
cmp r14, rax
jbe 0x180040c8c
mov r14, rax
jmp 0x180040c94
cmp r14, 0x16
cmovb r14, r9
lea rdx, [r14 + 1]
call fcn.180070d30
mov r8, rsi
mov qword [rbp - 0x31], rax
mov rdx, rdi
mov qword [rbp - 0x21], rsi
mov rcx, rax
mov qword [rbp - 0x19], r14
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rsi], 0
mov rbx, qword [rbp + 0x67]
cmp qword [rbp - 0x19], 0x10
lea r8, [rbp - 0x31]
cmovae r8, qword [rbp - 0x31]
xor esi, esi
cmp qword [r15 + 0x38], 0x10
lea rdx, [r15 + 0x20]
jb 0x180040ce0
mov rdx, qword [rdx]
cmp qword [r15 + 0x18], 0x10
jb 0x180040cea
mov r15, qword [r15]
mov r9, r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x180040d2d
mov rcx, qword [rbp - 0x31]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040d28
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040d41
call fcn.18011065c
add r12, 8
cmp r12, rbx
je 0x180040d48
mov r9d, 0x16
jmp 0x180040b80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r15, qword [0x1801ad8b0]
mov r13, qword [0x1801ad8b8]
cmp r15, r13
je 0x180040ec5
nop
mov r14, qword [r15]
lea r12, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
lea rcx, [0x180150400]
cmovae r12, qword [rbp - 0x11]
mov rax, qword [r14 + 0x40]
movss xmm6, dword [rax]
cvtps2pd xmm6, xmm6
movaps xmm1, xmm6
movq rdx, xmm6
call fcn.18000d4d0
movsxd rsi, eax
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
movabs rax, 0x7fffffffffffffff
movups xmmword [rbp - 0x31], xmm0
cmp rsi, rax
ja 0x180040fb9
mov qword [rbp - 0x19], 0xf
cmp rsi, 0x10
jae 0x180040dde
mov r8, rsi
mov qword [rbp - 0x21], rsi
xor edx, edx
lea rcx, [rbp - 0x31]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + rsi - 0x31], 0
jmp 0x180040e25
mov rdi, rsi
or rdi, 0xf
cmp rdi, rax
jbe 0x180040def
mov rdi, rax
jmp 0x180040dfc
cmp rdi, 0x16
mov eax, 0x16
cmovb rdi, rax
lea rdx, [rdi + 1]
call fcn.180070d30
mov r8, rsi
mov qword [rbp - 0x31], rax
xor edx, edx
mov qword [rbp - 0x21], rsi
mov rcx, rax
mov qword [rbp - 0x19], rdi
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov byte [rbx + rsi], 0
cmp qword [rbp - 0x19], 0x10
lea rcx, [rbp - 0x31]
lea rdx, [rsi + 1]
movaps xmm3, xmm6
cmovae rcx, qword [rbp - 0x31]
lea r8, [0x180150400]
movq r9, xmm6
call fcn.18000d470
cmp qword [rbp - 0x19], 0x10
lea r8, [rbp - 0x31]
lea rdx, [r14 + 0x20]
cmovae r8, qword [rbp - 0x31]
cmp qword [rdx + 0x18], 0x10
jb 0x180040e67
mov rdx, qword [rdx]
cmp qword [r14 + 0x18], 0x10
jb 0x180040e71
mov r14, qword [r14]
mov r9, r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x180040eb8
mov rcx, qword [rbp - 0x31]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040eb3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040f63
call fcn.18011065c
add r15, 8
cmp r15, r13
jne 0x180040d60
mov rdi, qword [0x1801ad8a0]
mov rbx, qword [0x1801ad898]
cmp rbx, rdi
je 0x180040f2a
lea rsi, [0x1801505f0]
nop
cmp qword [rbp + 7], 0x10
lea r9, [rbp - 0x11]
mov rcx, qword [rbx]
lea r8, [0x1801505a0]
cmovae r9, qword [rbp - 0x11]
lea rdx, [rcx + 0x20]
mov rax, qword [rcx + 0x40]
cmp byte [rax], 0
cmovne r8, rsi
cmp qword [rdx + 0x18], 0x10
jb 0x180040f11
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 0x10
jb 0x180040f1b
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add rbx, 8
cmp rbx, rdi
jne 0x180040ee0
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x180040f6f
mov rcx, qword [rbp - 0x11]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040f6a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040f6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18011065c
mov r13, qword [rsp + 0xd0]
mov r15, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xc8]
mov r12, qword [rsp + 0x108]
movaps xmm6, xmmword [rsp + 0xb0]
mov rdi, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
movaps xmm7, xmmword [rsp + 0xa0]
add rsp, 0xd8
pop rsi
pop rbp
ret
call fcn.18000d530
int3
call fcn.18000d530
int3
call fcn.18000d530
int3