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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x4a16f0]
push ebx
push esi
push edi
mov dword [ebp - 0x828], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x824]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x828]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x14]
push eax
call fcn.004070c2
lea eax, [ebp - 0x1c]
push eax
call fcn.00435c01
pop ecx
mov edi, 0x458778
push edi
lea ecx, [ebp - 4]
call fcn.0040182e
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x14]
push eax
push dword [eax - 8]
call fcn.00401ae1
lea ecx, [ebp - 4]
call fcn.00401802
push edi
lea ecx, [ebp - 4]
call fcn.0040182e
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x1c]
push eax
push dword [eax - 8]
call fcn.00401ae1
lea ecx, [ebp - 4]
call fcn.00401802
lea eax, [ebp - 0x1c]
push eax
call fcn.00429fee
lea eax, [ebp - 0x14]
push eax
call fcn.00429fee
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
call fcn.00401c06
push dword [ebp - 0x14]
mov esi, dword [sym.imp.USER32.dll_CharLowerW]
call esi
lea ecx, [ebp - 0x1c]
call fcn.00401c06
push dword [ebp - 0x1c]
call esi
mov eax, dword [0x4581d0]
push 0x45b054
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.0040182e
mov ebx, dword [eax]
push 0
call fcn.0044300d
pop ecx
push eax
lea eax, [ebp - 8]
push ebx
push eax
call fcn.00408f2b
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00401802
push 0x45b050
lea ecx, [ebp - 4]
call fcn.0040182e
mov eax, dword [ebp - 4]
push eax
push dword [eax - 8]
lea ecx, [ebp - 8]
call fcn.00401ae1
lea ecx, [ebp - 4]
call fcn.00401802
mov ecx, dword [ebp - 8]
cmp dword [ecx - 0xc], 0
lea eax, [ecx - 0xc]
jl 0x416b8a
push eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x416b9b
mov eax, dword [0x4581d0]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.00401988
push 0
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.00408ef9
test eax, eax
mov ebx, 0x4ca404
je 0x416cd2
lea eax, [ebp - 4]
push eax
call fcn.0040ddce
pop ecx
lea ecx, [ebp - 4]
call fcn.00401c06
push dword [ebp - 4]
call esi
push 0x45b04c
lea ecx, [ebp - 0xc]
call fcn.0040182e
mov eax, dword [eax]
xor esi, esi
push esi
push eax
lea ecx, [ebp - 4]
call fcn.00408ef9
test eax, eax
lea ecx, [ebp - 0xc]
setg byte [ebp - 0xd]
call fcn.00401802
cmp byte [ebp - 0xd], 0
je 0x416c05
mov dword [0x4ca458], 1
cmp dword [0x4ca458], esi
je 0x416c23
cmp dword [ebp + 8], esi
jne 0x416c23
push 0x45b048
push str.TestIni
call fcn.00414de0
pop ecx
pop ecx
lea ecx, [ebp - 4]
call fcn.00401802
mov eax, dword [0x4ca3fc]
push ecx
mov ecx, esp
cmp dword [eax - 0xc], esi
jl 0x416c46
mov dword [ecx], eax
sub eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x416c58
mov eax, dword [0x4581d0]
mov dword [ecx], eax
push dword [0x4ca3fc]
call fcn.00401988
call fcn.004361dc
cmp eax, 1
pop ecx
jne 0x416cd4
cmp dword [ebp + 8], esi
jne 0x416db2
lea eax, [ebp - 8]
push eax
push ecx
mov ecx, esp
push str.TestIni
call fcn.004070c2
push ecx
mov ecx, esp
push ebx
call fcn.004017bc
call fcn.00413d64
add esp, 0xc
lea ecx, [ebp - 8]
push 0x4a15c4
call fcn.004019af
lea eax, [ebp - 8]
push eax
push ecx
mov ecx, esp
push str.TestIni
call fcn.004070c2
push ecx
mov ecx, esp
push ebx
call fcn.004017bc
call fcn.00413e24
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.00442dbe
add esp, 0x14
test eax, eax
je 0x416dba
jmp 0x416cd4
xor esi, esi
mov eax, dword [0x4581d0]
push esi
push 0x1a
push 0x400
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00401b75
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00401bdd
push edi
lea ecx, [ebp - 0xc]
call fcn.0040182e
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004019f3
mov eax, dword [eax]
lea ecx, [ebp - 4]
push eax
push dword [eax - 8]
call fcn.00401ae1
lea ecx, [ebp - 0x20]
call fcn.00401802
lea ecx, [ebp - 0xc]
call fcn.00401802
cmp dword [ebp + 8], esi
jne 0x416d42
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x45b030
lea ecx, [ebp - 0xc]
call fcn.0040182e
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 4]
push 0x45b008
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00401a95
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004019f3
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004019f3
push eax
mov ecx, 0x4ca3fc
call fcn.0040711b
lea ecx, [ebp - 0x20]
call fcn.00401802
lea ecx, [ebp - 0x28]
call fcn.00401802
lea ecx, [ebp - 0x24]
call fcn.00401802
lea ecx, [ebp - 0xc]
call fcn.00401802
lea ecx, [ebp - 4]
call fcn.00401802
cmp dword [ebp + 8], esi
je 0x416dba
push 1
pop esi
jmp 0x416e85
push str._Test2
lea ecx, [ebp + 8]
call fcn.0040182e
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push eax
push dword [eax - 8]
call fcn.00401ae1
lea ecx, [ebp + 8]
call fcn.00401802
lea eax, [ebp - 8]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040711b
lea eax, [ebp - 8]
mov edi, str.TestIni
push eax
push ecx
mov ecx, esp
push edi
call fcn.004070c2
push ecx
mov ecx, esp
push ebx
call fcn.004017bc
call fcn.00413d64
add esp, 0xc
lea ecx, [ebp - 8]
push 0x4a15c4
call fcn.004019af
lea eax, [ebp - 8]
push eax
push ecx
mov ecx, esp
push edi
call fcn.004070c2
push ecx
mov ecx, esp
push ebx
call fcn.004017bc
call fcn.00413e24
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.00442dbe
add esp, 0x14
test eax, eax
je 0x416e85
push 0x4ca3fc
push str.Cannot_save_to_INI_file:_n
lea ecx, [ebp - 0x24]
call fcn.0040182e
push eax
lea eax, [ebp + 8]
push eax
call fcn.004019f3
mov eax, dword [eax]
push esi
push esi
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp + 8]
call fcn.00401802
lea ecx, [ebp - 0x24]
call fcn.00401802
lea ecx, [ebp - 0x18]
call fcn.00401802
lea ecx, [ebp - 8]
call fcn.00401802
lea ecx, [ebp - 0x1c]
call fcn.00401802
lea ecx, [ebp - 0x14]
call fcn.00401802
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret