Function at 0x408e90
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40bc56
mov eax, dword fs:[0]
push eax
sub esp, 0x404
mov eax, dword [0x41100c]
xor eax, esp
mov dword [esp + 0x3fc], eax
push esi
push edi
mov eax, dword [0x41100c]
xor eax, esp
push eax
lea eax, [esp + 0x410]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 8
push eax
mov dword [esp + 0x24], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call dword [sym.imp.mfc120u.dll_Ordinal_7881]
push 0
call dword [sym.imp.mfc120u.dll_Ordinal_2163]
add esp, 4
push 0xc
call dword [sym.imp.mfc120u.dll_Ordinal_1506]
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x418], 0
test eax, eax
je 0x408f2b
mov ecx, eax
call dword [sym.imp.mfc120u.dll_Ordinal_949]
jmp 0x408f2d
xor eax, eax
push 0x40d314
mov ecx, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x41c], 0xffffffff
call dword [sym.imp.mfc120u.dll_Ordinal_13771]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x204], ax
lea eax, [esp + 0x206]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x1fc]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x1fc]
push eax
push 0x411790
call dword [sym.imp.mfc120u.dll_Ordinal_4772]
add esp, 8
mov ecx, 0x411790
push 0x40d2c4
push 0x40d344
call dword [sym.imp.mfc120u.dll_Ordinal_12634]
mov edi, 1
lea esp, [esp]
push edi
xorps xmm0, xmm0
mov byte [esp + 0x178], 0
lea eax, [esp + 0x178]
movq qword [esp + 0x189], xmm0
push 0x40d334
push eax
movdqu xmmword [esp + 0x181], xmm0
mov dword [esp + 0x199], 0
mov word [esp + 0x19d], 0
mov byte [esp + 0x19f], 0
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
mov byte [esp + 0x194], 0
lea eax, [esp + 0x195]
push 0x63
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x194]
push str.._u.ini
push 0x64
push eax
push 0x40c9f4
lea eax, [esp + 0x184]
push eax
push 0x40d340
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x194], 0
jle 0x409123
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x198]
call fcn.00408b70
test eax, eax
js 0x409166
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x194]
push 0
push 0
inc esi
push esi
push eax
push 0
push 0xfde9
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x10], eax
test eax, eax
je 0x409161
push eax
mov ecx, 0x411798
call dword [sym.imp.mfc120u.dll_Ordinal_5019]
push dword [esp + 0x10]
push eax
push esi
lea eax, [esp + 0x1a0]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x409161
push 0xffffffffffffffff
mov ecx, 0x411798
call dword [sym.imp.mfc120u.dll_Ordinal_12430]
call fcn.00408d00
mov ecx, 0x411790
call fcn.00406840
test al, al
je 0x409123
push ecx
lea ecx, [esp + 0x28]
call fcn.004075f0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
mov dword [esp + 0x418], 1
mov dword [eax + 0x20], ecx
call dword [sym.imp.mfc120u.dll_Ordinal_4049]
lea ecx, [esp + 0x24]
mov dword [esp + 0x418], 0xffffffff
call fcn.00407740
inc edi
cmp edi, 0x64
jle 0x408fb0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x40913c
mov eax, dword [ecx]
push 1
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0x410]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3fc]
xor ecx, esp
call fcn.0040a185
mov esp, ebp
pop ebp
ret
call fcn.00408c50
push eax
call fcn.00408c70
int3