Function at 0x409280
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41cb85
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5bc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x3c], esi
xor edi, edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x5d4], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x5d4], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xb4]
mov byte [esp + 0x5d4], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5d4], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x54]
mov byte [esp + 0x5d4], 4
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x5d4], 5
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esi + 0xc], eax
mov bl, 0xa
jmp 0x409322
mov edi, dword [esp + 0xbc]
push str.Font
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_1
push edi
lea eax, [esp + 0x3c]
push 0x4290b8
push eax
mov byte [esp + 0x5e0], 6
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x38]
lea edx, [esp + 0x28]
lea eax, [esp + 0x70]
push ecx
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5d8], 7
call fcn.0041b82a
lea ecx, [esp + 0x70]
mov byte [esp + 0x5d4], 6
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5dc]
mov eax, dword [esp + 0x28]
push ecx
lea edx, [esp + 0xd0]
push 0x500
push edx
push 0x42a438
push eax
push str.Font
call ebp
inc edi
mov dword [esp + 0xac], eax
test eax, eax
mov dword [esp + 0xbc], edi
je 0x409c90
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041b81e
push 0x429044
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
push 0x5c
lea ecx, [esp + 0x18]
mov esi, eax
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea edx, [esp + 0xc4]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x5d8], 8
call fcn.0041b82a
lea ecx, [esp + 0xc4]
mov byte [esp + 0x5d4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x5d4], 9
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x60]
push 7
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5dc], bl
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str._Custom
push eax
call edi
add esp, 8
lea ecx, [esp + 0x60]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x409670
lea ecx, [esi - 1]
lea edx, [esp + 0x98]
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5d8], 0xb
call fcn.0041b82a
lea ecx, [esp + 0x98]
mov byte [esp + 0x5d4], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x68]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5d8], 0xc
call fcn.0041b82a
lea ecx, [esp + 0x68]
mov byte [esp + 0x5d4], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x5dc]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0xd0]
push 0x500
push eax
push 0x42a438
push ecx
push str.FileGroup
call ebp
lea edx, [esp + 0xcc]
lea ecx, [esp + 0x24]
push edx
call sub.MFC42.DLL_CString::CString_1
push 0x429094
lea ecx, [esp + 0x28]
mov byte [esp + 0x5d8], 0xd
call sub.MFC42.DLL_CString::Find_1
push eax
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x5d8], 0xe
call fcn.0041b82a
lea ecx, [esp + 0xc0]
mov byte [esp + 0x5d4], 0xd
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0041b7f4
call fcn.00417040
add esp, 4
test eax, eax
jne 0x4095f6
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x58]
push eax
push 0x429410
push ecx
call sub.MFC42.DLL_operator_1
push ecx
mov byte [esp + 0x5d8], 0xf
mov edx, esp
mov dword [esp + 0x48], esp
push 0x4293fc
push eax
push edx
call sub.MFC42.DLL_operator
call fcn.00416710
add esp, 4
lea ecx, [esp + 0x58]
mov byte [esp + 0x5d4], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x5d4], bl
call sub.MFC42.DLL_CString::CString
jmp 0x409c6e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x78]
mov eax, dword [eax - 8]
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
push eax
lea edx, [esp + 0x28]
lea eax, [esp + 0xa4]
push edx
push eax
mov byte [esp + 0x5e0], 0x10
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5d8], 0x11
call fcn.0041b82a
lea ecx, [esp + 0xa0]
mov byte [esp + 0x5d4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x5d4], 0xd
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x5d4], bl
lea ecx, [esp + 0x24]
jmp 0x409c2f
lea ecx, [esp + 0x80]
push 0xb
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str._WINSYSDIR_
push eax
mov byte [esp + 0x5dc], 0x12
call edi
add esp, 8
test eax, eax
je 0x4096dc
lea edx, [esp + 0xb8]
push 0xb
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str._SystemDir_
push eax
call edi
add esp, 8
lea ecx, [esp + 0xb8]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], 0
test al, al
je 0x4096e1
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x80]
mov byte [esp + 0x5d4], bl
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x40979f
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0xc]
add ecx, 0xe4
push ecx
lea ecx, [esp + 0x50]
call fcn.0041b7f4
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov byte [esp + 0x5d4], 0x13
mov eax, dword [edx - 8]
sub eax, esi
push eax
lea eax, [esp + 0x8c]
push eax
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0xac]
push ecx
push edx
mov byte [esp + 0x5e0], 0x14
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5d8], 0x15
call fcn.0041b82a
lea ecx, [esp + 0xa8]
mov byte [esp + 0x5d4], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x88]
mov byte [esp + 0x5d4], 0x13
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x5d4], bl
lea ecx, [esp + 0x4c]
jmp 0x409c2f
lea eax, [esp + 0xc8]
push 0x10
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str._PathAddbyRegKey
push eax
call edi
add esp, 8
lea ecx, [esp + 0xc8]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x409b4c
lea ecx, [esi - 1]
lea edx, [esp + 0x90]
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5d8], 0x16
call fcn.0041b82a
lea ecx, [esp + 0x90]
mov byte [esp + 0x5d4], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xb0]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5d8], 0x17
call fcn.0041b82a
lea ecx, [esp + 0xb0]
mov byte [esp + 0x5d4], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x5dc]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0xd0]
push 0x500
push eax
push 0x42a438
push ecx
push str.FileGroup
call ebp
lea edx, [esp + 0xcc]
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CString::CString_1
push 0x429094
lea ecx, [esp + 0x20]
mov byte [esp + 0x5d8], 0x18
call sub.MFC42.DLL_CString::Find_1
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5d8], 0x19
call fcn.0041b82a
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5d4], 0x18
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReverseFind
mov edi, eax
lea ecx, [esp + 0x40]
push edi
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
inc edi
lea edx, [esp + 0x30]
push edi
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x5dc], 0x1a
call sub.MFC42.DLL_CString::Mid
mov byte [esp + 0x5d4], 0x1b
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.0041b7f4
push ecx
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
mov byte [esp + 0x5e0], 0x1c
call fcn.0041b7f4
lea eax, [esp + 0x28]
mov byte [esp + 0x5dc], 0x1b
push eax
call fcn.00416dc0
add esp, 8
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x5dc], 0x1d
call fcn.0041b7f4
call fcn.00417040
add esp, 4
test eax, eax
jne 0x409a09
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x64]
push eax
push 0x429410
push ecx
call sub.MFC42.DLL_operator_1
push ecx
mov byte [esp + 0x5d8], 0x1e
mov edx, esp
mov dword [esp + 0x4c], esp
push 0x4293fc
push eax
push edx
call sub.MFC42.DLL_operator
call fcn.00416710
add esp, 4
lea ecx, [esp + 0x64]
mov byte [esp + 0x5d4], 0x1d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x5d4], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x5d4], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x5d4], 0x18
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5d4], bl
call sub.MFC42.DLL_CString::CString
jmp 0x409c6e
push 1
push 0x5c
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x6c]
push 1
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x5dc], 0x1f
call sub.MFC42.DLL_CString::Right
mov ecx, dword [esp + 0x50]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x6c]
test eax, eax
setne byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x5d4], 0x1d
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x409a9c
lea edx, [esp + 0x20]
push 0x5c
lea eax, [esp + 0x78]
push edx
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x5d8], 0x20
call fcn.0041b82a
lea ecx, [esp + 0x74]
mov byte [esp + 0x5d4], 0x1d
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x84]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
sub eax, esi
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x80]
push eax
push ecx
mov byte [esp + 0x5e0], 0x21
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5d8], 0x22
call fcn.0041b82a
lea ecx, [esp + 0x7c]
mov byte [esp + 0x5d4], 0x21
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x84]
mov byte [esp + 0x5d4], 0x1d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x5d4], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x5d4], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x5d4], 0x18
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x5d4], bl
lea ecx, [esp + 0x1c]
jmp 0x409c2f
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov eax, dword [edx - 8]
sub eax, esi
push eax
lea eax, [esp + 0x90]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5d8], 0x23
call fcn.0041b82a
lea ecx, [esp + 0x8c]
mov byte [esp + 0x5d4], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x3c]
push 0x429044
lea edx, [esp + 0xa8]
mov ecx, dword [esi + 0xc]
add ecx, 0xc8
push ecx
push edx
call sub.MFC42.DLL_operator
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x9c]
add ecx, 0xd0
mov byte [esp + 0x5d4], 0x24
push ecx
push eax
push edx
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x94]
push ecx
push eax
push edx
mov byte [esp + 0x5e0], 0x25
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5d8], 0x26
call fcn.0041b82a
lea ecx, [esp + 0x94]
mov byte [esp + 0x5d4], 0x25
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x9c]
mov byte [esp + 0x5d4], 0x24
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x5d4], bl
lea ecx, [esp + 0xa4]
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
call fcn.0041b7f4
push ecx
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x5e0], 0x27
call fcn.0041b7f4
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x5dc], bl
call fcn.00408df0
lea ecx, [esp + 0x34]
mov byte [esp + 0x5d4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x5d4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x5d4], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xac]
test eax, eax
jne 0x40931b
lea ecx, [esp + 0x54]
mov byte [esp + 0x5d4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5d4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xb4]
mov byte [esp + 0x5d4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x5d4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x5d4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5dc]
mov dword [esp + 0x5d4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5cc]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c8
ret 4