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

Disassembly:
push 0xffffffffffffffff
push 0x41c021
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5ac
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], edi
lea ecx, [edi + 4]
mov dword [esp + 0x5c4], 1
call sub.MFC42.DLL_CStringList::RemoveAll
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c4], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xa4]
mov byte [esp + 0x5c4], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c4], 4
xor esi, esi
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x5c4], 5
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [edi + 0x3c], eax
mov bl, 0xa
jmp 0x40202d
mov esi, dword [esp + 0xac]
push str.SysEnv
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
push esi
lea eax, [esp + 0x3c]
push 0x4290b8
push eax
mov byte [esp + 0x5d0], 6
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x38]
lea edx, [esp + 0x24]
lea eax, [esp + 0x68]
push ecx
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x5c8], 7
call fcn.0041b82a
lea ecx, [esp + 0x68]
mov byte [esp + 0x5c4], 6
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5cc]
mov eax, dword [esp + 0x24]
push ecx
lea edx, [esp + 0xc0]
push 0x500
push edx
push 0x42a438
inc esi
push eax
push str.Environment
mov dword [esp + 0xc4], esi
call ebp
test eax, eax
mov dword [esp + 0x9c], eax
je 0x4028da
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041b81e
push 0x3e
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_2
push 0x5c
lea ecx, [esp + 0x18]
mov esi, eax
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea edx, [esp + 0xb4]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c8], 8
call fcn.0041b82a
lea ecx, [esp + 0xb4]
mov byte [esp + 0x5c4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c4], 9
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x58]
push 7
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5cc], 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 + 0x58]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x402376
lea ecx, [esp + 0xb0]
push esi
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c8], 0xb
call fcn.0041b82a
lea ecx, [esp + 0xb0]
mov byte [esp + 0x5c4], 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 + 0x64]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c8], 0xc
call fcn.0041b82a
lea ecx, [esp + 0x60]
mov byte [esp + 0x5c4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5cc]
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0xc0]
push 0x500
push edx
push 0x42a438
push eax
push str.FileGroup
call ebp
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
push 0x429094
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c8], 0xd
call sub.MFC42.DLL_CString::Find_1
lea edx, [esp + 0x90]
push eax
push edx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c8], 0xe
call fcn.0041b82a
lea ecx, [esp + 0x90]
mov byte [esp + 0x5c4], 0xd
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call fcn.0041b7f4
call fcn.00417040
add esp, 4
test eax, eax
jne 0x4022fb
lea ecx, [esp + 0x34]
lea edx, [esp + 0x50]
push ecx
push 0x42908c
push edx
call sub.MFC42.DLL_operator_1
push ecx
mov byte [esp + 0x5c8], 0xf
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x429074
push eax
push ecx
call sub.MFC42.DLL_operator
call fcn.00416710
add esp, 4
lea ecx, [esp + 0x50]
mov byte [esp + 0x5c4], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c4], bl
call sub.MFC42.DLL_CString::CString
jmp 0x4028b8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x74]
push eax
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0xac]
push ecx
push edx
mov byte [esp + 0x5d0], 0x10
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c8], 0x11
call fcn.0041b82a
lea ecx, [esp + 0xa8]
mov byte [esp + 0x5c4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x70]
mov byte [esp + 0x5c4], 0xd
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x5c4], bl
lea ecx, [esp + 0x20]
jmp 0x402885
lea eax, [esp + 0x78]
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 + 0x5cc], 0x12
call edi
add esp, 8
test eax, eax
je 0x4023df
lea ecx, [esp + 0x98]
push 0xb
push ecx
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 + 0x98]
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 0x4023e4
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x78]
mov byte [esp + 0x5c4], bl
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x40249f
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x48]
mov eax, dword [edx + 0x3c]
add eax, 0xe4
push eax
call fcn.0041b7f4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x80]
mov byte [esp + 0x5c4], 0x13
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
sub eax, esi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea eax, [esp + 0x4c]
lea ecx, [esp + 0xbc]
push eax
push ecx
mov byte [esp + 0x5d0], 0x14
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c8], 0x15
call fcn.0041b82a
lea ecx, [esp + 0xb8]
mov byte [esp + 0x5c4], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x80]
mov byte [esp + 0x5c4], 0x13
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x5c4], bl
lea ecx, [esp + 0x48]
jmp 0x402885
lea edx, [esp + 0xa0]
push 0x10
push edx
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 + 0xa0]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x4027a8
lea eax, [esp + 0x88]
push esi
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c8], 0x16
call fcn.0041b82a
lea ecx, [esp + 0x88]
mov byte [esp + 0x5c4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x54]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x18]
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c8], 0x17
call fcn.0041b82a
lea ecx, [esp + 0x54]
mov byte [esp + 0x5c4], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x5cc]
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xc0]
push 0x500
push ecx
push 0x42a438
push edx
push str.FileGroup
call ebp
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_1
push 0x429094
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c8], 0x18
call sub.MFC42.DLL_CString::Find_1
lea ecx, [esp + 0x5c]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c8], 0x19
call fcn.0041b82a
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5c4], 0x18
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReverseFind
mov edi, eax
lea edx, [esp + 0x40]
push edi
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
inc edi
lea eax, [esp + 0x3c]
push edi
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x5cc], 0x1a
call sub.MFC42.DLL_CString::Mid
mov byte [esp + 0x5c4], 0x1b
push ecx
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.0041b7f4
push ecx
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x5d0], 0x1c
call fcn.0041b7f4
lea ecx, [esp + 0x38]
mov byte [esp + 0x5cc], 0x1b
push ecx
call fcn.00416dc0
add esp, 8
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x5cc], 0x1d
call fcn.0041b7f4
call fcn.00417040
add esp, 4
test eax, eax
jne 0x402700
lea eax, [esp + 0x34]
lea ecx, [esp + 0x64]
push eax
push 0x42908c
push ecx
call sub.MFC42.DLL_operator_1
push ecx
mov byte [esp + 0x5c8], 0x1e
mov edx, esp
mov dword [esp + 0x30], esp
push 0x429074
push eax
push edx
call sub.MFC42.DLL_operator
call fcn.00416710
add esp, 4
lea ecx, [esp + 0x64]
mov byte [esp + 0x5c4], 0x1d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c4], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c4], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x5c4], 0x18
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c4], bl
call sub.MFC42.DLL_CString::CString
jmp 0x4028b8
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x74]
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
push eax
lea edx, [esp + 0x34]
lea eax, [esp + 0x70]
push edx
push eax
mov byte [esp + 0x5d0], 0x1f
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c8], 0x20
call fcn.0041b82a
lea ecx, [esp + 0x6c]
mov byte [esp + 0x5c4], 0x1f
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x74]
mov byte [esp + 0x5c4], 0x1d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c4], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c4], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x5c4], 0x18
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x5c4], bl
lea ecx, [esp + 0x1c]
jmp 0x402885
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x7c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
sub eax, esi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c8], 0x21
call fcn.0041b82a
lea ecx, [esp + 0x7c]
mov byte [esp + 0x5c4], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x28]
push 0x429044
lea ecx, [esp + 0x98]
mov eax, dword [esi + 0x3c]
add eax, 0xc8
push eax
push ecx
call sub.MFC42.DLL_operator
mov edx, dword [esi + 0x3c]
mov byte [esp + 0x5c4], 0x22
add edx, 0xd0
push edx
push eax
lea eax, [esp + 0x94]
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x84]
push ecx
push eax
push edx
mov byte [esp + 0x5d0], 0x23
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c8], 0x24
call fcn.0041b82a
lea ecx, [esp + 0x84]
mov byte [esp + 0x5c4], 0x23
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x8c]
mov byte [esp + 0x5c4], 0x22
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x5c4], bl
lea ecx, [esp + 0x94]
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0041b7f4
call fcn.004169f0
add esp, 4
test eax, eax
je 0x4028b8
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edx + 4]
call sub.MFC42.DLL_CStringList::AddTail
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c4], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x9c]
test eax, eax
jne 0x402026
mov eax, dword [esp + 0x5d0]
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.Install
push eax
call esi
add esp, 8
test eax, eax
jne 0x402938
mov esi, dword [esp + 0x28]
lea eax, [esi + 4]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x4290c4
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00402b60
jmp 0x40296e
mov ecx, dword [esp + 0x5d0]
push str.Uninstall
push ecx
call esi
add esp, 8
test eax, eax
jne 0x40296e
mov esi, dword [esp + 0x28]
lea eax, [esi + 4]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x4290c4
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00403040
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa4]
mov byte [esp + 0x5c4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5cc]
mov byte [esp + 0x5c4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5d0]
mov dword [esp + 0x5c4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5bc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5b8
ret 8