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

Disassembly:
push 0xffffffffffffffff
push 0x41c44d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c4
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x5dc], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x5dc], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xbc]
mov byte [esp + 0x5dc], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
mov byte [esp + 0x5dc], 4
xor edi, edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5dc], 5
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x5dc], 6
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esi + 4], eax
mov ebx, 0xb
jmp 0x4048c9
mov edi, dword [esp + 0xc4]
push 0x429198
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_1
push edi
lea eax, [esp + 0x44]
push 0x4290b8
push eax
mov byte [esp + 0x5e8], 7
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x40]
lea edx, [esp + 0x28]
lea eax, [esp + 0xc8]
push ecx
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5e0], 8
call fcn.0041b82a
lea ecx, [esp + 0xc8]
mov byte [esp + 0x5dc], 7
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5e4]
mov eax, dword [esp + 0x28]
push ecx
lea edx, [esp + 0xd8]
push 0x500
push edx
push 0x42a438
inc edi
push eax
push 0x429194
mov dword [esp + 0xdc], edi
call ebp
test eax, eax
mov dword [esp + 0xb4], eax
je 0x405304
lea ecx, [esp + 0xd4]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041b81e
push 0x429044
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
lea edx, [esp + 0x14]
lea ecx, [esp + 0x30]
push edx
mov esi, eax
call fcn.0041b82a
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x14]
push eax
lea eax, [esp + 0xd0]
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x5e0], 9
call fcn.0041b82a
lea ecx, [esp + 0xcc]
mov byte [esp + 0x5dc], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5dc], 0xa
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x60]
push 7
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5e4], 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 0x404c25
lea edx, [esi - 1]
lea eax, [esp + 0xb8]
push edx
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5e0], 0xc
call fcn.0041b82a
lea ecx, [esp + 0xb8]
mov byte [esp + 0x5dc], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x68]
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 + 0x5e0], 0xd
call fcn.0041b82a
lea ecx, [esp + 0x68]
mov byte [esp + 0x5dc], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x5e4]
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xd8]
push 0x500
push ecx
push 0x42a438
push edx
push str.FileGroup
call ebp
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::CString_1
push 0x429094
lea ecx, [esp + 0x28]
mov byte [esp + 0x5e0], 0xe
call sub.MFC42.DLL_CString::Find_1
lea ecx, [esp + 0xa0]
push eax
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x5e0], 0xf
call fcn.0041b82a
lea ecx, [esp + 0xa0]
mov byte [esp + 0x5dc], 0xe
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call fcn.0041b7f4
call fcn.00417040
add esp, 4
test eax, eax
jne 0x404bb1
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x70]
push eax
push 0x429188
push ecx
call sub.MFC42.DLL_operator_1
push ecx
mov byte [esp + 0x5e0], 0x10
mov edx, esp
mov dword [esp + 0x58], esp
push 0x429178
push eax
push edx
call sub.MFC42.DLL_operator
call fcn.00416710
add esp, 4
lea ecx, [esp + 0x70]
mov byte [esp + 0x5dc], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x5dc], bl
call sub.MFC42.DLL_CString::CString
jmp 0x4052e2
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 + 0x5c]
push edx
push eax
mov byte [esp + 0x5e8], 0x11
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5e0], 0x12
call fcn.0041b82a
lea ecx, [esp + 0x58]
mov byte [esp + 0x5dc], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x5dc], 0xe
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x5dc], bl
lea ecx, [esp + 0x24]
jmp 0x4051ea
lea ecx, [esp + 0x80]
push ebx
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str._WINSYSDIR_
push eax
mov byte [esp + 0x5e4], 0x13
call edi
add esp, 8
test eax, eax
je 0x404c8f
lea edx, [esp + 0xa8]
push ebx
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 + 0xa8]
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 0x404c94
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x80]
mov byte [esp + 0x5dc], bl
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x404d52
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
add ecx, 0xe4
push ecx
lea ecx, [esp + 0x50]
call fcn.0041b7f4
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov byte [esp + 0x5dc], 0x14
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 + 0xc4]
push ecx
push edx
mov byte [esp + 0x5e8], 0x15
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5e0], 0x16
call fcn.0041b82a
lea ecx, [esp + 0xc0]
mov byte [esp + 0x5dc], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x88]
mov byte [esp + 0x5dc], 0x14
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x5dc], bl
lea ecx, [esp + 0x4c]
jmp 0x4051ea
lea eax, [esp + 0xb0]
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 + 0xb0]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x405107
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 + 0x5e0], 0x17
call fcn.0041b82a
lea ecx, [esp + 0x90]
mov byte [esp + 0x5dc], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xd0]
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 + 0x5e0], 0x18
call fcn.0041b82a
lea ecx, [esp + 0xd0]
mov byte [esp + 0x5dc], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x5e4]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0xd8]
push 0x500
push eax
push 0x42a438
push ecx
push str.FileGroup
call ebp
lea edx, [esp + 0xd4]
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CString::CString_1
push 0x429094
lea ecx, [esp + 0x20]
mov byte [esp + 0x5e0], 0x19
call sub.MFC42.DLL_CString::Find_1
push eax
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5e0], 0x1a
call fcn.0041b82a
lea ecx, [esp + 0x98]
mov byte [esp + 0x5dc], 0x19
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReverseFind
mov edi, eax
lea ecx, [esp + 0x44]
push edi
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
inc edi
lea edx, [esp + 0x48]
push edi
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x5e4], 0x1b
call sub.MFC42.DLL_CString::Mid
mov byte [esp + 0x5dc], 0x1c
push ecx
lea eax, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.0041b7f4
push ecx
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x5e8], 0x1d
call fcn.0041b7f4
lea eax, [esp + 0x28]
mov byte [esp + 0x5e4], 0x1c
push eax
call fcn.00416dc0
add esp, 8
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0x5e4], 0x1e
call fcn.0041b7f4
call fcn.00417040
add esp, 4
test eax, eax
jne 0x404fc2
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x5c]
push eax
push 0x429188
push ecx
call sub.MFC42.DLL_operator_1
push ecx
mov byte [esp + 0x5e0], 0x1f
mov edx, esp
mov dword [esp + 0x3c], esp
push 0x429178
push eax
push edx
call sub.MFC42.DLL_operator
call fcn.00416710
add esp, 4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5dc], 0x1e
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x5dc], 0x1c
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x5dc], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x5dc], 0x19
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5dc], bl
call sub.MFC42.DLL_CString::CString
jmp 0x4052e2
push 1
push 0x5c
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x64]
push 1
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x5e4], 0x20
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 + 0x64]
test eax, eax
setne byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x5dc], 0x1e
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x405055
lea edx, [esp + 0x20]
push 0x5c
lea eax, [esp + 0x70]
push edx
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x5e0], 0x21
call fcn.0041b82a
lea ecx, [esp + 0x6c]
mov byte [esp + 0x5dc], 0x1e
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x7c]
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 + 0x78]
push eax
push ecx
mov byte [esp + 0x5e8], 0x22
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5e0], 0x23
call fcn.0041b82a
lea ecx, [esp + 0x74]
mov byte [esp + 0x5dc], 0x22
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov byte [esp + 0x5dc], 0x1e
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x5dc], 0x1c
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x5dc], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x5dc], 0x19
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5dc], bl
call sub.MFC42.DLL_CString::CString
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
jmp 0x4051ef
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov eax, dword [edx - 8]
sub eax, esi
push eax
lea eax, [esp + 0x88]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5e0], 0x24
call fcn.0041b82a
lea ecx, [esp + 0x84]
mov byte [esp + 0x5dc], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x34]
push 0x429044
lea edx, [esp + 0xa0]
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 + 0x94]
add ecx, 0xd0
mov byte [esp + 0x5dc], 0x25
push ecx
push eax
push edx
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x8c]
push ecx
push eax
push edx
mov byte [esp + 0x5e8], 0x26
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5e0], 0x27
call fcn.0041b82a
lea ecx, [esp + 0x8c]
mov byte [esp + 0x5dc], 0x26
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x94]
mov byte [esp + 0x5dc], 0x25
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x5dc], bl
lea ecx, [esp + 0x9c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x5e8]
push str.Install
push eax
call edi
add esp, 8
test eax, eax
jne 0x405224
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0041b7f4
mov ecx, dword [esp + 0x38]
call fcn.004044b0
jmp 0x4052e2
mov eax, dword [esp + 0x5e8]
push str.Uninstall
push eax
call edi
add esp, 8
test eax, eax
jne 0x4052e2
lea ecx, [esp + 0xac]
push ebx
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str._WINSYSDIR_
push eax
mov byte [esp + 0x5e4], 0x28
call edi
add esp, 8
test eax, eax
je 0x4052a8
lea edx, [esp + 0xa4]
push ebx
push edx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str._SystemDir_
push eax
call edi
add esp, 8
lea ecx, [esp + 0xa4]
test eax, eax
setne byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], 1
test al, al
jne 0x4052ad
mov byte [esp + 0x13], 0
lea ecx, [esp + 0xac]
mov byte [esp + 0x5dc], bl
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x4052e2
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.0041b7f4
mov ecx, dword [esp + 0x38]
call fcn.00404700
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5dc], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x5dc], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x5dc], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xb4]
test eax, eax
jne 0x4048c2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5dc], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x5dc], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xbc]
mov byte [esp + 0x5dc], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x5dc], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x5dc], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5e4]
mov byte [esp + 0x5dc], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5e8]
mov dword [esp + 0x5dc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5d4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5d0
ret 8