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

Disassembly:
mov eax, 0x415164
call fcn.00414a90
sub esp, 0x838
mov eax, dword [0x4312d4]
push ebx
push esi
push edi
cmp dword [eax - 0xc], 0
jl 0x405f94
mov dword [ebp - 0x1c], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x405fa6
mov ecx, dword [0x419068]
push eax
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
call fcn.00407d29
mov eax, dword [0x425320]
and dword [ebp - 4], 0
mov dword [ebp - 0x844], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x840]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x844]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x844]
lea ecx, [ebp - 0x20]
push eax
call fcn.00402f54
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
call fcn.00405e7d
pop ecx
mov edi, 0x4247b4
lea ecx, [ebp - 0x10]
push edi
mov byte [ebp - 4], 2
call fcn.00402ff8
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push eax
mov byte [ebp - 4], 3
push dword [eax - 8]
call fcn.004031bc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00402f28
push edi
lea ecx, [ebp - 0x10]
call fcn.00402ff8
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
push eax
mov byte [ebp - 4], 4
push dword [eax - 8]
call fcn.004031bc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00402f28
mov esi, 0x4247b0
mov ebx, 0x4247a8
push esi
push ebx
lea ecx, [ebp - 0x20]
call fcn.00407f4a
push esi
push ebx
lea ecx, [ebp - 0x24]
call fcn.00407f4a
lea ecx, [ebp - 0x20]
call fcn.0040335f
push dword [ebp - 0x20]
mov ebx, dword [sym.imp.USER32.dll_CharLowerW]
call ebx
lea ecx, [ebp - 0x24]
call fcn.0040335f
push dword [ebp - 0x24]
call ebx
mov ebx, str..ini
lea ecx, [ebp - 0x30]
push ebx
call fcn.00402ff8
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00407e0f
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00407d51
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 7
push eax
call fcn.00405e7d
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 8
mov eax, dword [eax]
push eax
push dword [eax - 8]
call fcn.004031bc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jl 0x4060fe
mov dword [ebp - 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x406110
mov eax, dword [0x419068]
mov dword [ebp - 0x14], eax
push dword [ecx]
lea ecx, [ebp - 0x14]
call fcn.00407d29
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xd
call fcn.00402f28
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call fcn.00402f28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call fcn.00402f28
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xa
call fcn.00402f28
push dword [ebp - 0x14]
push 0x431778
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
lea ecx, [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.00407f16
test eax, eax
je 0x406216
mov eax, dword [ebp - 0x14]
push ecx
mov dword [ebp - 0x34], esp
mov ecx, esp
cmp dword [eax - 0xc], 0
jl 0x406183
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x406192
mov eax, dword [0x419068]
mov dword [ecx], eax
push dword [ebp - 0x14]
call fcn.00407d29
call fcn.00405e21
cmp eax, 1
pop ecx
jne 0x406216
push str.eeee
lea ecx, [ebp - 0x10]
call fcn.00402f54
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xe
call fcn.004032b4
push eax
push str.TestIni
call fcn.00405d0e
pop ecx
pop ecx
push 0x425328
lea ecx, [ebp - 0x10]
call fcn.00403177
push 0x6f
lea ecx, [ebp - 0x10]
call fcn.004032b4
push eax
push str.TestIni
call fcn.00405d28
pop ecx
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403333
push str.eeee
push dword [ebp - 0x10]
call sub.MSVCRT.dll_wcscmp
pop ecx
mov byte [ebp - 4], 0xa
pop ecx
test eax, eax
lea ecx, [ebp - 0x10]
je 0x4063c8
call fcn.00402f28
mov eax, dword [0x419068]
mov dword [ebp - 0x10], eax
push 0
push 0x1a
push 0x400
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xf
call fcn.004032b4
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403333
push edi
lea ecx, [ebp - 0x18]
call fcn.00402ff8
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00407d51
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x11
call fcn.00407e73
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
call fcn.00402f28
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xf
call fcn.00402f28
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
lea ecx, [ebp - 0x18]
call fcn.00402ff8
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0x12
call fcn.00407dab
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x13
push ecx
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00407d51
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x14
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00407d51
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x15
call fcn.00403124
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x14
call fcn.00402f28
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x13
call fcn.00402f28
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x34]
call fcn.00402f28
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xf
call fcn.00402f28
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.00402f28
push dword [ebp - 0x14]
push 0x431778
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.eeee
lea ecx, [ebp - 0x28]
call fcn.00402f54
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x16
call fcn.004032b4
mov esi, str.TestIni
push eax
push esi
call fcn.00405d0e
pop ecx
pop ecx
push 0x425328
lea ecx, [ebp - 0x28]
call fcn.00403177
push 0x6f
lea ecx, [ebp - 0x28]
call fcn.004032b4
push eax
push esi
call fcn.00405d28
pop ecx
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x28]
call fcn.00403333
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.00402f28
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402f28
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00402f28
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00402f28
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402f28
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
call fcn.00402f28
jmp 0x40632a