Function at 0x18005fe1c
Capabilities:
Create directory
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xaf0
mov rdi, rcx
xor r13d, r13d
lea rbx, [0x180592280]
mov qword [rax + 0x10], rbx
mov rcx, rbx
call fcn.18006dbe0
test eax, eax
jne 0x1800615c5
cmp dword [0x1805922cc], 0x7fffffff
je 0x1800615cf
mov rsi, qword [rdi + 0x10]
mov rcx, rdi
mov r14, qword [rdi + 0x18]
mov r15d, 0xf
cmp r14, r15
jbe 0x18005fe81
mov rcx, qword [rdi]
cmp rsi, 7
jne 0x1800603bd
mov r8, rsi
lea rdx, [0x1800a6430]
call fcn.18009f520
test eax, eax
jne 0x1800603bd
lea rax, [rsp + 0x580]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x13]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x1800602d7
xorps xmm0, xmm0
movups xmmword [rsp + 0x270], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x280], xmm1
lea rax, [rsp + 0x580]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x18005feeb
lea rdx, [rsp + 0x580]
lea rcx, [rsp + 0x270]
call fcn.180030d20
nop
mov r8d, 0x11
lea rdx, str.ObstructionCS2_
lea rcx, [rsp + 0x270]
call fcn.1800520b0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r15
mov byte [rax], r13b
mov rdx, qword [rsp + 0x288]
mov edi, 0x1000
cmp rdx, r15
jbe 0x18005ff95
inc rdx
mov rcx, qword [rsp + 0x270]
mov rax, rcx
cmp rdx, rdi
jb 0x18005ff90
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800615e4
call fcn.18006ef80
movdqa xmm0, xmmword [0x1800e0d50]
movdqu xmmword [rsp + 0x280], xmm0
mov byte [rsp + 0x270], r13b
mov rsi, r13
xorps xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc0], r13
mov qword [rsp + 0xc8], r15
mov byte [rsp + 0xb0], r13b
mov r14b, 1
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], r15
seta r12b
cmova rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], 2
lea r9, [0x1800dd24c]
mov r8, rsi
mov r15, qword [rsp + 0x40]
mov rdx, r15
call fcn.180045b50
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180060250
mov r8, rax
inc rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], r13
mov qword [rsp + 0x108], r13
cmp r15, rax
cmovb r8, r15
lea rdx, [rsp + 0x30]
test r12b, r12b
cmovne rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xf0]
call fcn.180030d20
mov rdx, qword [rsp + 0xc8]
mov r15d, 0xf
cmp rdx, r15
jbe 0x18006009f
inc rdx
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, rdi
jb 0x18006009a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800615ea
call fcn.18006ef80
movups xmm1, xmmword [rsp + 0xf0]
movups xmmword [rsp + 0xb0], xmm1
movups xmm0, xmmword [rsp + 0x100]
movups xmmword [rsp + 0xc0], xmm0
test r14b, r14b
je 0x1800600cc
mov r14b, r13b
jmp 0x18005ffd7
movq rax, xmm0
test rax, rax
je 0x18005ffd7
lea r8, [rsp + 0xb0]
movq rcx, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, r15
cmova r8, rcx
xor edx, edx
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x18005ffd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x18005ffd7
lea rdx, str.Failed_to_create_directory:
lea rcx, [0x180592690]
call fcn.180042628
lea rdx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], r15
cmova rdx, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xc0]
mov rcx, rax
call fcn.180044cb0
mov rcx, rax
call fcn.180047e10
nop
mov rdx, qword [rsp + 0xc8]
cmp rdx, r15
jbe 0x18006019f
inc rdx
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, rdi
jb 0x18006019a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800615f0
call fcn.18006ef80
mov qword [rsp + 0xc0], r13
mov qword [rsp + 0xc8], r15
mov byte [rsp + 0xb0], r13b
lea rdx, str.____Failed_to_create_directory_path:
lea rcx, [0x180592690]
call fcn.180042628
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], r15
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rcx, rax
call fcn.180044cb0
mov rcx, rax
call fcn.180047e10
xorps xmm0, xmm0
movups xmmword [rsp + 0x170], xmm0
mov qword [rsp + 0x180], r13
mov qword [rsp + 0x188], r15
mov byte [rsp + 0x170], r13b
mov rdx, qword [rsp + 0x48]
cmp rdx, r15
jbe 0x1800602c6
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, rdi
jb 0x180060249
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800615f6
call fcn.18006ef80
jmp 0x1800602c6
mov rdx, qword [rsp + 0xc8]
mov r15d, 0xf
cmp rdx, r15
jbe 0x180060294
inc rdx
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, rdi
jb 0x18006028f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800615f0
call fcn.18006ef80
mov qword [rsp + 0xc0], r13
mov qword [rsp + 0xc8], r15
mov byte [rsp + 0xb0], r13b
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x170], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x180], xmm1
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r15
mov byte [rsp + 0x30], r13b
jmp 0x18006031a
lea rdx, str.____Failed_to_retrieve_AppData_path.
lea rcx, [0x180592690]
call fcn.180042628
mov rcx, rax
call fcn.180047e10
xorps xmm0, xmm0
movups xmmword [rsp + 0x170], xmm0
mov qword [rsp + 0x180], r13
mov qword [rsp + 0x188], r15
mov byte [rsp + 0x170], r13b
mov edi, 0x1000
mov r8d, 0x10
lea rdx, str.settings_cs2.ini
lea rcx, [rsp + 0x170]
call fcn.1800520b0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r15
mov byte [rax], r13b
mov rdx, qword [rsp + 0x188]
cmp rdx, r15
jbe 0x1800603a0
inc rdx
mov rcx, qword [rsp + 0x170]
mov rax, rcx
cmp rdx, rdi
jb 0x18006039b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800615f6
call fcn.18006ef80
mov qword [rsp + 0x180], r13
mov qword [rsp + 0x188], r15
mov byte [rsp + 0x170], r13b
jmp 0x180061387
mov rcx, rdi
cmp r14, r15
jbe 0x1800603c8
mov rcx, qword [rdi]
cmp rsi, 8
jne 0x1800608dc
mov r8, rsi
lea rdx, str.Config_1
call fcn.18009f520
test eax, eax
jne 0x1800608dc
lea rax, [rsp + 0x690]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x12]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x180060838
xorps xmm0, xmm0
movups xmmword [rsp + 0x290], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x2a0], xmm1
lea rax, [rsp + 0x690]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x180060432
lea rdx, [rsp + 0x690]
lea rcx, [rsp + 0x290]
call fcn.180030d20
nop
mov r8d, 0x11
lea rdx, str.ObstructionCS2_
lea rcx, [rsp + 0x290]
call fcn.1800520b0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r13
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x80], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r15
mov byte [rax], r13b
mov rdx, qword [rsp + 0x2a8]
mov edi, 0x1000
cmp rdx, r15
jbe 0x1800604e5
inc rdx
mov rcx, qword [rsp + 0x290]
mov rax, rcx
cmp rdx, rdi
jb 0x1800604e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800615fc
call fcn.18006ef80
movdqa xmm0, xmmword [0x1800e0d50]
movdqu xmmword [rsp + 0x2a0], xmm0
mov byte [rsp + 0x290], r13b
mov r14, r13
xorps xmm0, xmm0
movups xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], r13
mov qword [rsp + 0xe8], r15
mov byte [rsp + 0xd0], r13b
mov sil, 1
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], r15
seta r12b
cmova rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], 2
lea r9, [0x1800dd24c]
mov r8, r14
mov r15, qword [rsp + 0x80]
mov rdx, r15
call fcn.180045b50
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1800607a8
mov r8, rax
inc r14
xorps xmm0, xmm0
movups xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], r13
mov qword [rsp + 0x108], r13
cmp r15, rax
cmovb r8, r15
lea rdx, [rsp + 0x70]
test r12b, r12b
cmovne rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0xf0]
call fcn.180030d20
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xd0]
call fcn.18004eb54
mov rdx, qword [rsp + 0x108]
mov r15d, 0xf
cmp rdx, r15
jbe 0x18006060a
inc rdx
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, rdi
jb 0x180060605
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180061608
call fcn.18006ef80
test sil, sil
je 0x180060617
mov sil, r13b
jmp 0x180060527
cmp qword [rsp + 0xe0], r13
jbe 0x180060527
lea rcx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], r15
cmova rcx, qword [rsp + 0xd0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x180060527
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180060527
lea rdx, str.Failed_to_create_directory:
lea rcx, [0x180592690]
call fcn.180042628
lea rdx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], r15
cmova rdx, qword [rsp + 0xd0]
mov r8, qword [rsp + 0xe0]
mov rcx, rax
call fcn.180044cb0
mov rcx, rax
call fcn.180047e10
nop
mov rdx, qword [rsp + 0xe8]
cmp rdx, r15
jbe 0x1800606e2
inc rdx
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, rdi
jb 0x1800606dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18006160e
call fcn.18006ef80
mov qword [rsp + 0xe0], r13
mov qword [rsp + 0xe8], r15
mov byte [rsp + 0xd0], r13b
lea rdx, str.____Failed_to_create_directory_path:
lea rcx, [0x180592690]
call fcn.180042628
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], r15
cmova rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x80]
mov rcx, rax
call fcn.180044cb0
mov rcx, rax
call fcn.180047e10
xorps xmm0, xmm0
movups xmmword [rsp + 0x190], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x1a0], xmm1
xor r8d, r8d
lea rdx, [0x1800a54d4]
lea rcx, [rsp + 0x190]
call fcn.180030d20
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, r15
jbe 0x180060821
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, rdi
jb 0x1800607a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180061602
call fcn.18006ef80
jmp 0x180060821
mov rdx, qword [rsp + 0xe8]
mov r15d, 0xf
cmp rdx, r15
jbe 0x1800607ec
inc rdx
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, rdi
jb 0x1800607e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18006160e
call fcn.18006ef80
mov qword [rsp + 0xe0], r13
mov qword [rsp + 0xe8], r15
mov byte [rsp + 0xd0], r13b
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsp + 0x190], xmm0
movups xmm1, xmmword [rsp + 0x80]
movups xmmword [rsp + 0x1a0], xmm1
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r15
mov byte [rsp + 0x70], r13b
jmp 0x180060882
lea rdx, str.____Failed_to_retrieve_AppData_path.
lea rcx, [0x180592690]
call fcn.180042628
mov rcx, rax
call fcn.180047e10
xorps xmm0, xmm0
movups xmmword [rsp + 0x190], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x1a0], xmm1
xor r8d, r8d
lea rdx, [0x1800a54d4]
lea rcx, [rsp + 0x190]
call fcn.180030d20
nop
lea r8, str.settings_cs2_1.ini
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x50]
call fcn.18004290c
nop
mov r8, qword [rsp + 0x1a8]
cmp r8, r15
jbe 0x1800608be
mov rdx, qword [rsp + 0x190]
lea rcx, [rsp + 0x190]
call fcn.180050e38
movdqa xmm0, xmmword [0x1800e0d50]
movdqu xmmword [rsp + 0x1a0], xmm0
mov byte [rsp + 0x190], r13b
jmp 0x180061387
mov rcx, rdi
cmp r14, r15
jbe 0x1800608e7
mov rcx, qword [rdi]
cmp rsi, 8
jne 0x180060cc1
mov r8, rsi
lea rdx, str.Config_2
call fcn.18009f520
test eax, eax
jne 0x180060cc1
lea rax, [rsp + 0x7a0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x12]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x180060c4b
xorps xmm0, xmm0
movups xmmword [rsp + 0xf0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x100], xmm1
lea rax, [rsp + 0x7a0]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x180060951
lea rdx, [rsp + 0x7a0]
lea rcx, [rsp + 0xf0]
call fcn.180030d20
nop
lea r8, str.ObstructionCS2_
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x110]
call fcn.18004290c
nop
mov r8, qword [rsp + 0x108]
cmp r8, r15
jbe 0x1800609af
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0xf0]
call fcn.180050e38
movdqa xmm0, xmmword [0x1800e0d50]
movdqu xmmword [rsp + 0x100], xmm0
mov byte [rsp + 0xf0], r13b
mov rsi, r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], r13
mov rdi, r15
mov qword [rsp + 0xa8], r15
mov byte [rsp + 0x90], r13b
mov r14b, 1
lea rcx, [rsp + 0x110]
cmp qword [rsp + 0x128], r15
cmova rcx, qword [rsp + 0x110]
mov qword [rsp + 0x20], 2
lea r9, [0x1800dd24c]
mov r8, rsi
mov rdx, qword [rsp + 0x120]
call fcn.180045b50
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180060bdc
mov r9, rax
inc rsi
xor r8d, r8d
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0x110]
call fcn.180066338
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.18004eb54
lea rcx, [rsp + 0x330]
call fcn.180031640
test r14b, r14b
je 0x180060a8a
mov r14b, r13b
mov rdi, qword [rsp + 0xa8]
jmp 0x1800609f4
cmp qword [rsp + 0xa0], r13
jbe 0x180060a7d
lea rcx, [rsp + 0x90]
cmp qword [rsp + 0xa8], r15
cmova rcx, qword [rsp + 0x90]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x180060a7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180060a7d
lea rdx, str.Failed_to_create_directory:
lea rcx, [0x180592690]
call fcn.180042628
lea rdx, [rsp + 0x90]
cmp qword [rsp + 0xa8], r15
cmova rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0xa0]
mov rcx, rax
call fcn.180044cb0
mov rcx, rax
call fcn.180047e10
nop
mov r8, qword [rsp + 0xa8]
cmp r8, r15
jbe 0x180060b2d
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x90]
call fcn.180050e38
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xa8], r15
mov byte [rsp + 0x90], r13b
lea rdx, str.____Failed_to_create_directory_path:
lea rcx, [0x180592690]
call fcn.180042628
lea rdx, [rsp + 0x110]
cmp qword [rsp + 0x128], r15
cmova rdx, qword [rsp + 0x110]
mov r8, qword [rsp + 0x120]
mov rcx, rax
call fcn.180044cb0
mov rcx, rax
call fcn.180047e10
xorps xmm0, xmm0
movups xmmword [rsp + 0x210], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x220], xmm1
xor r8d, r8d
lea rdx, [0x1800a54d4]
lea rcx, [rsp + 0x210]
call fcn.180030d20
nop
mov r8, qword [rsp + 0x128]
cmp r8, r15
jbe 0x180060c31
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x110]
call fcn.180050e38
jmp 0x180060c31
cmp rdi, r15
jbe 0x180060bf9
mov r8, rdi
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x90]
call fcn.180050e38
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xa8], r15
mov byte [rsp + 0x90], r13b
movups xmm0, xmmword [rsp + 0x110]
movups xmmword [rsp + 0x210], xmm0
movups xmm1, xmmword [rsp + 0x120]
movups xmmword [rsp + 0x220], xmm1
mov qword [rsp + 0x120], r13
mov qword [rsp + 0x128], r15
mov byte [rsp + 0x110], r13b
jmp 0x180060c95
lea rdx, str.____Failed_to_retrieve_AppData_path.
lea rcx, [0x180592690]
call fcn.180042628
mov rcx, rax
call fcn.180047e10
xorps xmm0, xmm0
movups xmmword [rsp + 0x210], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x220], xmm1
xor r8d, r8d
lea rdx, [0x1800a54d4]
lea rcx, [rsp + 0x210]
call fcn.180030d20
nop
lea r8, str.settings_cs2_2.ini
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x50]
call fcn.18004290c
nop
lea rcx, [rsp + 0x210]
call fcn.180031640
jmp 0x180061387
mov rcx, rdi
cmp r14, r15
jbe 0x180060ccc
mov rcx, qword [rdi]
cmp rsi, 8
jne 0x18006100f
mov r8, rsi
lea rdx, str.Config_3
call fcn.18009f520
test eax, eax
jne 0x18006100f
lea rax, [rsp + 0x8b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x12]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x180060f9e
xorps xmm0, xmm0
movups xmmword [rsp + 0x2b0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x2c0], xmm1
lea rax, [rsp + 0x8b0]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x180060d36
lea rdx, [rsp + 0x8b0]
lea rcx, [rsp + 0x2b0]
call fcn.180030d20
nop
lea r8, str.ObstructionCS2_
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x130]
call fcn.18004290c
nop
lea rcx, [rsp + 0x2b0]
call fcn.180031640
mov rdi, r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x1b0], xmm0
mov qword [rsp + 0x1c0], r13
mov qword [rsp + 0x1c8], r15
mov byte [rsp + 0x1b0], r13b
mov sil, 1
lea rcx, [rsp + 0x130]
cmp qword [rsp + 0x148], r15
cmova rcx, qword [rsp + 0x130]
mov qword [rsp + 0x20], 2
lea r9, [0x1800dd24c]
mov r8, rdi
mov rdx, qword [rsp + 0x140]
call fcn.180045b50
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180060ec8
mov r9, rax
inc rdi
xor r8d, r8d
lea rdx, [rsp + 0x350]
lea rcx, [rsp + 0x130]
call fcn.180066338
mov rdx, rax
lea rcx, [rsp + 0x1b0]
call fcn.18004eb54
lea rcx, [rsp + 0x350]
call fcn.180031640
test sil, sil
je 0x180060e36
mov sil, r13b
jmp 0x180060da8
cmp qword [rsp + 0x1c0], r13
jbe 0x180060da8
lea rcx, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], r15
cmova rcx, qword [rsp + 0x1b0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x180060da8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180060da8
lea rdx, str.Failed_to_create_directory:
lea rcx, [0x180592690]
call fcn.180042628
lea rdx, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], r15
cmova rdx, qword [rsp + 0x1b0]
mov r8, qword [rsp + 0x1c0]
mov rcx, rax
call fcn.180044cb0
mov rcx, rax
call fcn.180047e10
nop
mov dil, r13b
jmp 0x180060ecb
mov dil, 1
lea rcx, [rsp + 0x1b0]
call fcn.180031640
test dil, dil
je 0x180060f27
movups xmm0, xmmword [rsp + 0x130]
movups xmmword [rsp + 0x230], xmm0
movups xmm1, xmmword [rsp + 0x140]
movups xmmword [rsp + 0x240], xmm1
mov qword [rsp + 0x140], r13
mov qword [rsp + 0x148], r15
mov byte [rsp + 0x130], r13b
lea rcx, [rsp + 0x130]
call fcn.180031640
jmp 0x180060fe8
lea rdx, str.____Failed_to_create_directory_path:
lea rcx, [0x180592690]
call fcn.180042628
lea rdx, [rsp + 0x130]
cmp qword [rsp + 0x148], r15
cmova rdx, qword [rsp + 0x130]
mov r8, qword [rsp + 0x140]
mov rcx, rax
call fcn.180044cb0
mov rcx, rax
call fcn.180047e10
xorps xmm0, xmm0
movups xmmword [rsp + 0x230], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x240], xmm1
xor r8d, r8d
lea rdx, [0x1800a54d4]
lea rcx, [rsp + 0x230]
call fcn.180030d20
jmp 0x180060f15
lea rdx, str.____Failed_to_retrieve_AppData_path.
lea rcx, [0x180592690]
call fcn.180042628
mov rcx, rax
call fcn.180047e10
xorps xmm0, xmm0
movups xmmword [rsp + 0x230], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x240], xmm1
xor r8d, r8d
lea rdx, [0x1800a54d4]
lea rcx, [rsp + 0x230]
call fcn.180030d20
nop
lea r8, str.settings_cs2_3.ini
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x50]
call fcn.18004290c
nop
lea rcx, [rsp + 0x230]
jmp 0x180060cb7
cmp r14, r15
jbe 0x180061017
mov rdi, qword [rdi]
cmp rsi, 8
jne 0x18006135d
mov r8, rsi
lea rdx, str.Config_4
mov rcx, rdi
call fcn.18009f520
test eax, eax
jne 0x18006135d
lea rax, [rsp + 0x9c0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x12]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x1800612ec
xorps xmm0, xmm0
movups xmmword [rsp + 0x2d0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x2e0], xmm1
lea rax, [rsp + 0x9c0]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x180061084
lea rdx, [rsp + 0x9c0]
lea rcx, [rsp + 0x2d0]
call fcn.180030d20
nop
lea r8, str.ObstructionCS2_
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x150]
call fcn.18004290c
nop
lea rcx, [rsp + 0x2d0]
call fcn.180031640
mov rdi, r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x1d0], xmm0
mov qword [rsp + 0x1e0], r13
mov qword [rsp + 0x1e8], r15
mov byte [rsp + 0x1d0], r13b
mov sil, 1
lea rcx, [rsp + 0x150]
cmp qword [rsp + 0x168], r15
cmova rcx, qword [rsp + 0x150]
mov qword [rsp + 0x20], 2
lea r9, [0x1800dd24c]
mov r8, rdi
mov rdx, qword [rsp + 0x160]
call fcn.180045b50
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180061216
mov r9, rax
inc rdi
xor r8d, r8d
lea rdx, [rsp + 0x2f0]
lea rcx, [rsp + 0x150]
call fcn.180066338
mov rdx, rax
lea rcx, [rsp + 0x1d0]
call fcn.18004eb54
lea rcx, [rsp + 0x2f0]
call fcn.180031640
test sil, sil
je 0x180061184
mov sil, r13b
jmp 0x1800610f6
cmp qword [rsp + 0x1e0], r13
jbe 0x1800610f6
lea rcx, [rsp + 0x1d0]
cmp qword [rsp + 0x1e8], r15
cmova rcx, qword [rsp + 0x1d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1800610f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800610f6
lea rdx, str.Failed_to_create_directory:
lea rcx, [0x180592690]
call fcn.180042628
lea rdx, [rsp + 0x1d0]
cmp qword [rsp + 0x1e8], r15
cmova rdx, qword [rsp + 0x1d0]
mov r8, qword [rsp + 0x1e0]
mov rcx, rax
call fcn.180044cb0
mov rcx, rax
call fcn.180047e10
nop
mov dil, r13b
jmp 0x180061219
mov dil, 1
lea rcx, [rsp + 0x1d0]
call fcn.180031640
test dil, dil
je 0x180061275
movups xmm0, xmmword [rsp + 0x150]
movups xmmword [rsp + 0x250], xmm0
movups xmm1, xmmword [rsp + 0x160]
movups xmmword [rsp + 0x260], xmm1
mov qword [rsp + 0x160], r13
mov qword [rsp + 0x168], r15
mov byte [rsp + 0x150], r13b
lea rcx, [rsp + 0x150]
call fcn.180031640
jmp 0x180061336
lea rdx, str.____Failed_to_create_directory_path:
lea rcx, [0x180592690]
call fcn.180042628
lea rdx, [rsp + 0x150]
cmp qword [rsp + 0x168], r15
cmova rdx, qword [rsp + 0x150]
mov r8, qword [rsp + 0x160]
mov rcx, rax
call fcn.180044cb0
mov rcx, rax
call fcn.180047e10
xorps xmm0, xmm0
movups xmmword [rsp + 0x250], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x260], xmm1
xor r8d, r8d
lea rdx, [0x1800a54d4]
lea rcx, [rsp + 0x250]
call fcn.180030d20
jmp 0x180061263
lea rdx, str.____Failed_to_retrieve_AppData_path.
lea rcx, [0x180592690]
call fcn.180042628
mov rcx, rax
call fcn.180047e10
xorps xmm0, xmm0
movups xmmword [rsp + 0x250], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x260], xmm1
xor r8d, r8d
lea rdx, [0x1800a54d4]
lea rcx, [rsp + 0x250]
call fcn.180030d20
nop
lea r8, str.settings_cs2_4.ini
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x50]
call fcn.18004290c
nop
lea rcx, [rsp + 0x250]
jmp 0x180060cb7
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov r8d, 0x10
lea rdx, str.settings_cs2.ini
lea rcx, [rsp + 0x50]
call fcn.180030d20
nop
mov dword [rsp + 0x20], 1
mov edi, 0x40
mov r9d, edi
lea r8d, [rdi - 0x3f]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x370]
call fcn.18004c47c
nop
mov rax, qword [rsp + 0x370]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x380], 6
je 0x180061401
lea rdx, str.____Error_opening_file:
lea rcx, [0x1805927b0]
call fcn.180042628
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], r15
cmova rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rax
call fcn.180044cb0
mov rcx, rax
call fcn.180047e10
jmp 0x180061585
mov edx, 1
lea rcx, [rsp + 0x480]
call fcn.18004cf90
nop
lea rdx, [rsp + 0x380]
lea rcx, [rsp + 0x490]
call fcn.18004ebe0
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x498]
call fcn.1800662ac
nop
lea rcx, [rsp + 0x370]
call fcn.1800591e8
cmp qword [rsp + 0x200], 0xa
jb 0x180061569
mov r9d, edi
mov edx, 0x10
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rsp + 0x328], r13
mov byte [rsp + 0x20], r13b
mov r9b, 1
lea r8, [rsp + 0x2f0]
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x30]
call fcn.180049efc
mov rdx, rax
mov rcx, rdi
call fcn.18004eb1c
nop
cmp qword [0x180592090], r13
je 0x180061569
mov rdx, rdi
mov rcx, qword [0x180592090]
call fcn.18005be08
mov rcx, rdi
call fcn.180058f88
mov edx, 0x10
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
lea rcx, [rsp + 0x1f0]
call fcn.180031640
nop
lea rcx, [rsp + 0x480]
call fcn.18004f0c0
nop
lea rcx, [rsp + 0x370]
call fcn.18004efd4
nop
lea rcx, [rsp + 0x50]
call fcn.180031640
nop
mov rcx, rbx
call fcn.18006dbe8
mov al, 1
jmp 0x1800615a8
lea rcx, [rsp + 0x1f0]
call fcn.180031640
nop
lea rcx, [rsp + 0x480]
call fcn.18004f0c0
nop
lea rcx, [rsp + 0x370]
call fcn.18004efd4
nop
lea rcx, [rsp + 0x50]
call fcn.180031640
nop
mov rcx, rbx
call fcn.18006dbe8
xor al, al
lea r11, [rsp + 0xaf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea ecx, [r13 + 5]
call fcn.18006de5c
int3
mov dword [0x1805922cc], 0x7ffffffe
mov ecx, 6
call fcn.18006de5c
nop
call fcn.18007616c
nop
call fcn.18007616c
nop
call fcn.18007616c
nop
call fcn.18007616c
nop
call fcn.18007616c
nop
call fcn.18007616c
nop
call fcn.18007616c
nop
call fcn.18007616c
int3