Function at 0x180031110
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
lea rbp, [rsp - 0x4f]
sub rsp, 0xd8
mov rdx, qword [0x1801ea8a0]
lea r8, [0x18015c240]
xor edi, edi
mov qword [rbp + 7], 0xf
xorps xmm0, xmm0
mov qword [rbp - 1], rdi
movups xmmword [rbp - 0x11], xmm0
mov byte [rbp - 0x11], dil
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [r8 + rcx], dil
jne 0x180031151
movabs rax, 0x7fffffffffffffff
sub rax, rdx
cmp rax, rcx
jb 0x18003174f
cmp qword [0x1801ea8a8], 0x10
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x31]
mov qword [rsp + 0xf8], rbx
lea rbx, [0x1801ea890]
movaps xmmword [rsp + 0xb0], xmm6
mov r9, rbx
cmovae r9, qword [0x1801ea890]
mov qword [rsp + 0x28], r8
movaps xmmword [rsp + 0xa0], xmm7
mov qword [rsp + 0x20], rdx
call fcn.18006dc40
mov rdx, qword [rbp - 0x19]
mov rcx, qword [rbp - 0x21]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x1800311f5
lea rax, [rcx + 4]
cmp rdx, 0x10
mov qword [rbp - 0x21], rax
lea rax, [rbp - 0x31]
cmovae rax, qword [rbp - 0x31]
mov dword [rax + rcx], 0x6766632e
mov byte [rax + rcx + 4], dil
lea rax, [rbp - 0x31]
jmp 0x180031213
lea r9, str..cfg
mov qword [rsp + 0x20], 4
mov edx, 4
lea rcx, [rbp - 0x31]
call fcn.18006d310
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], dil
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x180031260
mov rcx, qword [rbp - 0x11]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003125b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003129a
call fcn.1800ad0ec
mov rdx, qword [rbp - 0x19]
movups xmmword [rbp - 0x11], xmm6
movups xmmword [rbp - 1], xmm7
cmp rdx, 0x10
jb 0x1800312a6
mov rcx, qword [rbp - 0x31]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800312a1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800312a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800ad0ec
cmp qword [0x1801ea8a8], 0x10
mov qword [rsp + 0x100], rsi
cmovae rbx, qword [0x1801ea890]
xor edx, edx
mov qword [rsp + 0x108], r12
mov rcx, rbx
mov qword [rsp + 0xd0], r13
mov qword [rsp + 0xc8], r14
mov qword [rsp + 0xc0], r15
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rbx, qword [0x1801ea8b8]
mov r9d, 0x16
mov r12, qword [0x1801ea8b0]
mov qword [rbp + 0x67], rbx
cmp r12, rbx
je 0x1800314da
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 0x180031372
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 0x180031340
dec rdi
mov byte [rdi], 0x2d
jmp 0x18003139c
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 0x180031372
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
lea rax, [rbp - 0x34]
movups xmmword [rbp - 0x31], xmm0
cmp rdi, rax
jne 0x1800313cb
mov qword [rbp - 0x19], 0xf
lea r8, [rbp - 0x31]
mov byte [rbp - 0x31], 0
jmp 0x180031462
lea rsi, [rbp - 0x34]
movabs rax, 0x7fffffffffffffff
sub rsi, rdi
cmp rsi, rax
ja 0x180031755
mov qword [rbp - 0x19], 0xf
cmp rsi, 0x10
jae 0x18003140d
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 0x180031454
mov r14, rsi
or r14, 0xf
cmp r14, rax
jbe 0x18003141e
mov r14, rax
jmp 0x180031426
cmp r14, 0x16
cmovb r14, r9
lea rdx, [r14 + 1]
call fcn.18006c140
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]
cmp qword [r15 + 0x38], 0x10
lea rdx, [r15 + 0x20]
jb 0x180031470
mov rdx, qword [rdx]
cmp qword [r15 + 0x18], 0x10
jb 0x18003147a
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 0x1800314bd
mov rcx, qword [rbp - 0x31]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800314b8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800314d1
call fcn.1800ad0ec
add r12, 8
cmp r12, rbx
je 0x1800314d8
mov r9d, 0x16
jmp 0x180031310
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor edi, edi
mov r15, qword [0x1801ea8e0]
mov r13, qword [0x1801ea8e8]
cmp r15, r13
je 0x180031656
mov r14, qword [r15]
lea r12, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
lea rcx, [0x18013c228]
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.180006d70
movsxd rsi, eax
xorps xmm0, xmm0
movabs rax, 0x7fffffffffffffff
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x19], rdi
movups xmmword [rbp - 0x31], xmm0
cmp rsi, rax
ja 0x180031749
mov qword [rbp - 0x19], 0xf
cmp rsi, 0x10
jae 0x18003156d
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 0x1800315b6
mov rdi, rsi
or rdi, 0xf
cmp rdi, rax
jbe 0x18003157e
mov rdi, rax
jmp 0x18003158b
cmp rdi, 0x16
mov eax, 0x16
cmovb rdi, rax
lea rdx, [rdi + 1]
call fcn.18006c140
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
xor edi, edi
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, [0x18013c228]
movq r9, xmm6
call fcn.180006d10
cmp qword [rbp - 0x19], 0x10
lea r8, [rbp - 0x31]
lea rdx, [r14 + 0x20]
cmovae r8, qword [rbp - 0x31]
cmp qword [rdx + 0x18], 0x10
jb 0x1800315f8
mov rdx, qword [rdx]
cmp qword [r14 + 0x18], 0x10
jb 0x180031602
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 0x180031649
mov rcx, qword [rbp - 0x31]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180031644
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800316f3
call fcn.1800ad0ec
add r15, 8
cmp r15, r13
jne 0x1800314f1
mov rdi, qword [0x1801ea8d0]
mov rbx, qword [0x1801ea8c8]
cmp rbx, rdi
je 0x1800316ba
lea rsi, [0x18013c4cc]
cmp qword [rbp + 7], 0x10
lea r9, [rbp - 0x11]
mov rcx, qword [rbx]
lea r8, [0x18013c4d0]
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 0x1800316a1
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 0x10
jb 0x1800316ab
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add rbx, 8
cmp rbx, rdi
jne 0x180031670
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x1800316ff
mov rcx, qword [rbp - 0x11]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800316fa
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800316fa
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.1800ad0ec
mov r12, qword [rsp + 0x108]
mov r15, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xc8]
mov r13, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0x100]
movaps xmm6, xmmword [rsp + 0xb0]
mov rbx, qword [rsp + 0xf8]
movaps xmm7, xmmword [rsp + 0xa0]
add rsp, 0xd8
pop rdi
pop rbp
ret
call fcn.180006dd0
int3
call fcn.180006dd0
int3
call fcn.180006dd0
int3