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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x8e0
mov rax, qword [0x0040f278]
mov qword [rsp + 0x8d0], rax
lea rdx, [0x005b40f0]
lea rcx, [rsp + 0x88]
call fcn.004025d8
lea rcx, [rsp + 0xd4]
xor edx, edx
mov r8d, 0x7fc
mov dword [rsp + 0xd0], 0
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0xd0]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x38]
call fcn.00402658
lea rcx, [rsp + 0x40]
call fcn.00402a84
lea rdx, [0x0040c67c]
lea rcx, [rsp + 0xb8]
call fcn.004026e4
mov rbx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x38]
mov edx, dword [rbx - 8]
mov r8, rbx
call fcn.00401730
lea rcx, [rbx - 0xc]
mov r12d, 0xffffffff
cmp rcx, qword [0x0040f008]
je 0x402cda
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x402cda
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea rdx, [0x0040c67c]
lea rcx, [rsp + 0xc0]
call fcn.004026e4
mov rbx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x40]
mov edx, dword [rbx - 8]
mov r8, rbx
call fcn.00401730
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x0040f008]
je 0x402d26
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x402d26
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea rbx, [0x0040c678]
lea rdx, [0x0040c670]
lea rcx, [rsp + 0x38]
mov r8, rbx
call fcn.00401d48
lea rdx, [0x0040c670]
lea rcx, [rsp + 0x40]
mov r8, rbx
call fcn.00401d48
lea rcx, [rsp + 0x38]
call fcn.00401328
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_CharLowerW]
lea rcx, [rsp + 0x40]
call fcn.00401328
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_CharLowerW]
lea rdx, str..ini
lea rcx, [rsp + 0x98]
call fcn.004026e4
mov r11, qword [section..data]
mov rsi, qword [rsp + 0x88]
mov rcx, rbx
lea rbp, [rsi - 0xc]
mov qword [rsp + 0x70], r11
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, dword [rbp + 4]
lea rcx, [rsp + 0x70]
mov edx, eax
mov r8, rbx
mov qword [rsp + 0x20], rsi
call fcn.00401690
mov rax, qword [section..data]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x98]
mov r9d, dword [rax - 8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov edx, dword [rax - 8]
mov r8, rax
call fcn.00401690
lea rcx, [rsp + 0xa8]
call fcn.00402a84
mov rbx, qword [rsp + 0x58]
mov edx, dword [rbx - 8]
mov r8, rbx
mov rcx, rax
mov rdi, rax
call fcn.00401730
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.004025d8
mov r11, qword [rsp + 0xa8]
add r11, 0xfffffffffffffff4
cmp r11, qword [0x0040f008]
je 0x402e68
mov eax, r12d
lock xadd dword [r11], eax
add eax, r12d
test eax, eax
jg 0x402e63
mov rcx, qword [rsp + 0xa8]
add rcx, 0xfffffffffffffff4
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rbx, qword [rsp + 0x58]
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x0040f008]
je 0x402e88
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x402e88
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x0040f008]
je 0x402ead
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x402ead
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x98]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x0040f008]
je 0x402ed5
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x402ed5
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea rdx, [rsp + 0x50]
lea rcx, [0x0040f498]
call fcn.0040157c
mov r11, qword [section..data]
xor ecx, ecx
mov qword [rsp + 0x30], r11
call sub.msvcrt.dll_time
lea rdx, [0x0040c638]
lea rcx, [rsp + 0x30]
mov r8, rax
call fcn.00401d24
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x90]
call fcn.004025d8
mov rbx, qword [rsp + 0x40]
cmp dword [rbx - 8], 0
jl 0x402f4a
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call sub.msvcrt.dll_wcsstr
test rax, rax
je 0x402f4a
sub rax, rbx
sar rax, 1
test eax, eax
je 0x40300c
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xc8]
call fcn.004025d8
mov rcx, rax
call fcn.00402124
cmp eax, 1
jne 0x40300c
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.004017ec
mov r9, qword [0x0040f498]
lea rdx, str.TestIni
lea rcx, str.Program
mov r8, rax
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rdx, [0x0040c650]
lea rcx, [rsp + 0x30]
call fcn.004027b0
lea rcx, [rsp + 0x30]
mov edx, 0x6f
call fcn.004017ec
lea rcx, str.TestIni
mov rdx, rax
call fcn.00402428
lea rcx, [rsp + 0x30]
call fcn.00401328
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsp + 0x90]
mov rcx, rbx
mov dword [rbx - 8], eax
cdqe
mov word [rbx + rax*2], 0
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x40300c
mov dword [0x0040f490], 1
jmp 0x403307
mov rax, qword [section..data]
lea rcx, [rsp + 0x48]
mov edx, 0x400
mov qword [rsp + 0x48], rax
call fcn.004017ec
xor r9d, r9d
lea r8d, [r9 + 0x1a]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rsp + 0x48]
call fcn.00401328
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [0x0040c67c]
lea rcx, [rsp + 0x78]
mov dword [rbx - 8], eax
cdqe
mov word [rbx + rax*2], 0
call fcn.004026e4
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x78]
mov r11, qword [section..data]
mov r9d, dword [rsi - 8]
mov edx, dword [rdi - 8]
lea rcx, [rsp + 0xa0]
mov r8, rdi
mov qword [rsp + 0xa0], r11
mov qword [rsp + 0x20], rsi
call fcn.00401690
mov rbx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x48]
mov edx, dword [rbx - 8]
mov r8, rbx
call fcn.00401730
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x0040f008]
je 0x4030e2
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x4030dd
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rdi, qword [rsp + 0x78]
lea rcx, [rdi - 0xc]
cmp rcx, qword [0x0040f008]
je 0x403102
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x403102
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rbx, qword [rsp + 0x48]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, str..ini
lea rcx, [rsp + 0xb0]
call fcn.004026e4
mov r11, qword [section..data]
lea rdi, [0x0040c678]
mov rcx, rdi
mov qword [rsp + 0x80], r11
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [rbx - 8]
lea rcx, [rsp + 0x80]
mov r9d, eax
mov r8, rbx
mov qword [rsp + 0x20], rdi
call fcn.00401690
mov rax, qword [section..data]
mov r9d, dword [rsi - 8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x88]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov edx, dword [rax - 8]
mov r8, rax
call fcn.00401690
mov rax, qword [section..data]
mov rbx, qword [rsp + 0x60]
mov edx, dword [rbx - 8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xb0]
mov r9d, dword [rax - 8]
lea rcx, [rsp + 0x68]
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.00401690
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.0040157c
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x0040f008]
je 0x403200
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x4031fb
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rbx, qword [rsp + 0x60]
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x0040f008]
je 0x403220
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x403220
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x80]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x0040f008]
je 0x403248
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x403248
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0xb0]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x0040f008]
je 0x403270
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x403270
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x0040f008]
je 0x403295
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x403295
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea rdx, [rsp + 0x50]
lea rcx, [0x0040f498]
call fcn.0040157c
lea rsi, [0x0040f290]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x403307
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [0x0040f498]
movsxd rdi, eax
mov edx, edi
call fcn.004013d0
test eax, eax
je 0x403307
mov rcx, qword [0x0040f498]
lea rbx, [rdi + rdi]
mov rdx, rsi
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r11, qword [0x0040f498]
mov dword [r11 - 8], edi
mov rax, qword [0x0040f498]
mov word [rbx + rax], 0
xor ecx, ecx
call sub.msvcrt.dll_time
lea rdx, [0x0040c638]
lea rcx, [rsp + 0x30]
lea r8, [rax - 0x16]
call fcn.00401d24
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x90]
call fcn.0040157c
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.004017ec
mov r9, qword [0x0040f498]
lea rdx, str.TestIni
lea rcx, str.Program
mov r8, rax
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rdx, [0x0040c650]
lea rcx, [rsp + 0x30]
call fcn.004027b0
lea rcx, [rsp + 0x30]
mov edx, 0x6f
call fcn.004017ec
lea rcx, str.TestIni
mov rdx, rax
call fcn.00402428
lea rcx, [rsp + 0x30]
call fcn.00401328
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x90]
mov dword [rbx - 8], eax
cdqe
add rcx, 0xfffffffffffffff4
mov word [rbx + rax*2], 0
cmp rcx, qword [0x0040f008]
je 0x4033de
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x4033d9
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x0040f008]
je 0x4033fe
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x4033fe
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x0040f008]
je 0x403423
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x403423
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x0040f008]
je 0x403448
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x403448
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x0040f008]
je 0x40346d
mov eax, r12d
lock xadd dword [rcx], eax
add eax, r12d
test eax, eax
jg 0x40346d
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
cmp rbp, qword [0x0040f008]
je 0x40348d
mov ecx, r12d
lock xadd dword [rbp], ecx
add ecx, r12d
test ecx, ecx
jg 0x40348d
mov rcx, rbp
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, 1
mov rcx, qword [rsp + 0x8d0]
call fcn.0040b190
add rsp, 0x8e0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x402c08