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

Disassembly:
push 0xffffffffffffffff
push 0x41c756
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x40], esi
xor edi, edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x5e0], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x5e0], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc0]
mov byte [esp + 0x5e0], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
mov byte [esp + 0x5e0], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5e0], 4
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x5e0], 5
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esi + 4], eax
mov bl, 0xd
jmp 0x405ab2
mov edi, dword [esp + 0xc8]
push 0x4291d8
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
push edi
lea eax, [esp + 0x3c]
push 0x4290b8
push eax
mov byte [esp + 0x5ec], 6
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x38]
lea edx, [esp + 0x24]
lea eax, [esp + 0xcc]
push ecx
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x5e4], 7
call fcn.0041b82a
lea ecx, [esp + 0xcc]
mov byte [esp + 0x5e0], 6
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5e8]
mov eax, dword [esp + 0x5ec]
inc edi
push ecx
lea edx, [esp + 0xdc]
push 0x500
test eax, eax
mov eax, dword [esp + 0x2c]
push edx
push 0x42a438
mov dword [esp + 0xd8], edi
push eax
je 0x405b51
push 0x4291d4
jmp 0x405b56
push str.UNEXE
call ebp
push 0x42a438
lea ecx, [esp + 0x34]
mov dword [esp + 0x50], eax
call fcn.0041b81e
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x406534
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041b81e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::MakeUpper
push 0x2e
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReverseFind
mov edi, eax
test edi, edi
jle 0x405c66
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov eax, dword [edx - 8]
sub eax, edi
push eax
lea eax, [esp + 0xd4]
push eax
call sub.MFC42.DLL_CString::Right
push 0x4291ac
mov ecx, eax
mov byte [esp + 0x5e4], 8
call sub.MFC42.DLL_CString::Find_1
lea ecx, [esp + 0xd0]
mov esi, eax
mov byte [esp + 0x5e0], 6
call sub.MFC42.DLL_CString::CString
test esi, esi
jle 0x405c66
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x64]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
sub eax, esi
sub eax, edi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x5e4], 9
call fcn.0041b82a
lea ecx, [esp + 0x64]
mov byte [esp + 0x5e0], 6
call sub.MFC42.DLL_CString::CString
add esi, edi
lea eax, [esp + 0xbc]
push esi
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5e4], 0xa
call fcn.0041b82a
lea ecx, [esp + 0xbc]
mov byte [esp + 0x5e0], 6
call sub.MFC42.DLL_CString::CString
push 0x429044
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
push 0x5c
lea ecx, [esp + 0x18]
mov edi, eax
call sub.MFC42.DLL_CString::ReverseFind
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x6c]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x5e4], 0xb
call fcn.0041b82a
lea ecx, [esp + 0x6c]
mov byte [esp + 0x5e0], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x48]
mov byte [esp + 0x5e0], 0xc
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0xa4]
push 7
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5e8], bl
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str._Custom
push eax
call esi
add esp, 8
lea ecx, [esp + 0xa4]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x405f11
lea eax, [edi - 1]
lea ecx, [esp + 0x74]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5e4], 0xe
call fcn.0041b82a
lea ecx, [esp + 0x74]
mov byte [esp + 0x5e0], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x60]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5e4], 0xf
call fcn.0041b82a
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5e0], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5e8]
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0xdc]
push 0x500
push edx
push 0x42a438
push eax
push str.FileGroup
call ebp
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
push 0x429094
lea ecx, [esp + 0x24]
mov byte [esp + 0x5e4], 0x10
call sub.MFC42.DLL_CString::Find_1
lea edx, [esp + 0x7c]
push eax
push edx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x5e4], 0x11
call fcn.0041b82a
lea ecx, [esp + 0x7c]
mov byte [esp + 0x5e0], 0x10
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.0041b7f4
call fcn.00417040
add esp, 4
test eax, eax
jne 0x405e91
lea ecx, [esp + 0x2c]
lea edx, [esp + 0xac]
push ecx
push 0x4291c0
push edx
call sub.MFC42.DLL_operator_1
push ecx
mov byte [esp + 0x5e4], 0x12
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x4291b0
push eax
push ecx
call sub.MFC42.DLL_operator
call fcn.00416710
add esp, 4
lea ecx, [esp + 0xac]
mov byte [esp + 0x5e0], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x5e0], bl
call sub.MFC42.DLL_CString::CString
jmp 0x406512
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov eax, dword [edx - 8]
sub eax, edi
push eax
lea eax, [esp + 0xc8]
push eax
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x88]
push ecx
push edx
mov byte [esp + 0x5ec], 0x13
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5e4], 0x14
call fcn.0041b82a
lea ecx, [esp + 0x84]
mov byte [esp + 0x5e0], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc4]
mov byte [esp + 0x5e0], 0x10
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x5e0], bl
lea ecx, [esp + 0x20]
jmp 0x4064d3
lea eax, [esp + 0xb4]
push 0xb
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str._WINSYSDIR_
push eax
mov byte [esp + 0x5e8], 0x15
call esi
add esp, 8
test eax, eax
je 0x405f7d
lea ecx, [esp + 0x8c]
push 0xb
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str._SystemDir_
push eax
call esi
add esp, 8
lea ecx, [esp + 0x8c]
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 0x405f82
mov byte [esp + 0x13], 1
lea ecx, [esp + 0xb4]
mov byte [esp + 0x5e0], bl
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x406040
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x54]
mov eax, dword [edx + 4]
add eax, 0xe4
push eax
call fcn.0041b7f4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xd4]
mov byte [esp + 0x5e0], 0x16
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
add eax, 0xfffffff5
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea eax, [esp + 0x58]
lea ecx, [esp + 0x98]
push eax
push ecx
mov byte [esp + 0x5ec], 0x17
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5e4], 0x18
call fcn.0041b82a
lea ecx, [esp + 0x94]
mov byte [esp + 0x5e0], 0x17
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xd4]
mov byte [esp + 0x5e0], 0x16
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x5e0], bl
lea ecx, [esp + 0x54]
jmp 0x4064d3
lea edx, [esp + 0x9c]
push 0x10
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str._PathAddbyRegKey
push eax
call esi
add esp, 8
lea ecx, [esp + 0x9c]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x4063f0
lea eax, [edi - 1]
lea ecx, [esp + 0x60]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5e4], 0x19
call fcn.0041b82a
lea ecx, [esp + 0x60]
mov byte [esp + 0x5e0], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x6c]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5e4], 0x1a
call fcn.0041b82a
lea ecx, [esp + 0x68]
mov byte [esp + 0x5e0], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5e8]
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0xdc]
push 0x500
push edx
push 0x42a438
push eax
push str.FileGroup
call ebp
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
push 0x429094
lea ecx, [esp + 0x20]
mov byte [esp + 0x5e4], 0x1b
call sub.MFC42.DLL_CString::Find_1
lea edx, [esp + 0x70]
push eax
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5e4], 0x1c
call fcn.0041b82a
lea ecx, [esp + 0x70]
mov byte [esp + 0x5e0], 0x1b
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
lea eax, [esp + 0x3c]
push esi
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
inc esi
lea ecx, [esp + 0x34]
push esi
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x5e8], 0x1d
call sub.MFC42.DLL_CString::Mid
mov byte [esp + 0x5e0], 0x1e
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0041b7f4
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
mov byte [esp + 0x5ec], 0x1f
call fcn.0041b7f4
lea ecx, [esp + 0x30]
mov byte [esp + 0x5e8], 0x1e
push ecx
call fcn.00416dc0
add esp, 8
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov byte [esp + 0x5e8], 0x20
call fcn.0041b7f4
call fcn.00417040
add esp, 4
test eax, eax
jne 0x40629e
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x78]
push eax
push 0x4291c0
push ecx
call sub.MFC42.DLL_operator_1
push ecx
mov byte [esp + 0x5e4], 0x21
mov edx, esp
mov dword [esp + 0x54], esp
push 0x4291b0
push eax
push edx
call sub.MFC42.DLL_operator
call fcn.00416710
add esp, 4
lea ecx, [esp + 0x78]
mov byte [esp + 0x5e0], 0x20
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x5e0], 0x1e
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x5e0], 0x1d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5e0], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5e0], bl
call sub.MFC42.DLL_CString::CString
jmp 0x406512
push 1
push 0x5c
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x80]
push 1
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x5e8], 0x22
call sub.MFC42.DLL_CString::Right
mov ecx, dword [esp + 0x58]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x80]
test eax, eax
setne byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0x5e0], 0x20
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x40633d
lea edx, [esp + 0x28]
push 0x5c
lea eax, [esp + 0x8c]
push edx
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5e4], 0x23
call fcn.0041b82a
lea ecx, [esp + 0x88]
mov byte [esp + 0x5e0], 0x20
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x98]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
sub eax, edi
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x94]
push eax
push ecx
mov byte [esp + 0x5ec], 0x24
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5e4], 0x25
call fcn.0041b82a
lea ecx, [esp + 0x90]
mov byte [esp + 0x5e0], 0x24
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x98]
mov byte [esp + 0x5e0], 0x20
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x5e0], 0x1e
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x5e0], 0x1d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5e0], 0x1b
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x5e0], bl
lea ecx, [esp + 0x1c]
jmp 0x4064d3
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov eax, dword [edx - 8]
sub eax, edi
push eax
lea eax, [esp + 0xa4]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5e4], 0x26
call fcn.0041b82a
lea ecx, [esp + 0xa0]
mov byte [esp + 0x5e0], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x40]
push 0x429044
lea edx, [esp + 0xbc]
mov ecx, dword [esi + 4]
add ecx, 0xc8
push ecx
push edx
call sub.MFC42.DLL_operator
mov ecx, dword [esi + 4]
lea edx, [esp + 0xb0]
add ecx, 0xd0
mov byte [esp + 0x5e0], 0x27
push ecx
push eax
push edx
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x14]
lea edx, [esp + 0xa8]
push ecx
push eax
push edx
mov byte [esp + 0x5ec], 0x28
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5e4], 0x29
call fcn.0041b82a
lea ecx, [esp + 0xa8]
mov byte [esp + 0x5e0], 0x28
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xb0]
mov byte [esp + 0x5e0], 0x27
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x5e0], bl
lea ecx, [esp + 0xb8]
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call fcn.0041b7f4
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x5ec], 0x2a
call fcn.0041b7f4
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x5e8], bl
call fcn.00405750
lea ecx, [esp + 0x48]
mov byte [esp + 0x5e0], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x5e0], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x5e0], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x405aab
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5e0], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x5e0], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc0]
mov byte [esp + 0x5e0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x5e0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x5e0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5e8]
mov dword [esp + 0x5e0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5d8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5d4
ret 8