Function at 0x412e30
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41e1f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa44
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0xa5c], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x38]
mov byte [esp + 0xa5c], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0xa5c], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0xa5c], 3
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0xa64]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0xa60], 4
call fcn.0041b7f4
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.HKCR
push ecx
mov byte [esp + 0xa64], 5
call esi
add esp, 8
test eax, eax
jne 0x412ee2
push str.HKEY_CLASSES_ROOT
lea ecx, [esp + 0x18]
call fcn.0041b81e
mov edx, dword [esp + 0x10]
push str.HKCU
push edx
call esi
add esp, 8
test eax, eax
jne 0x412f03
push str.HKEY_CURRENT_USER
lea ecx, [esp + 0x18]
call fcn.0041b81e
mov eax, dword [esp + 0x10]
push str.HKLM
push eax
call esi
add esp, 8
test eax, eax
jne 0x412f24
push str.HKEY_LOCAL_MACHINE
lea ecx, [esp + 0x18]
call fcn.0041b81e
mov ecx, dword [esp + 0x10]
push 0x4296d4
push ecx
call esi
add esp, 8
test eax, eax
jne 0x412f45
push str.HKEY_USERS
lea ecx, [esp + 0x18]
call fcn.0041b81e
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 0x2c]
add eax, 0xcc
push eax
call fcn.0041b7f4
lea ecx, [esp + 0x20]
mov byte [esp + 0xa5c], 6
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0xa5c], 7
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa5c], 8
call sub.MFC42.DLL_CString::CString_2
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov bl, 9
mov byte [esp + 0xa5c], bl
xor esi, esi
push esi
lea edx, [esp + 0x20]
push 0x4290b8
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0xa64]
lea ecx, [esp + 0x10]
push eax
call fcn.0041b82a
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa60], 0xa
call fcn.0041b82a
lea ecx, [esp + 0x30]
mov byte [esp + 0xa5c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x558]
push 0x500
push edx
push 0x42a438
push eax
push str.Registry
call ebp
test eax, eax
je 0x413027
inc esi
jmp 0x412fa0
dec esi
push esi
lea ecx, [esp + 0x20]
push 0x4290b8
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0xa64]
lea ecx, [esp + 0x10]
push edx
call fcn.0041b82a
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa60], 0xb
call fcn.0041b82a
lea ecx, [esp + 0x30]
mov byte [esp + 0xa5c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x58]
push 0x500
push ecx
push 0x42a438
push edx
push str.Registry
call ebp
dec esi
test eax, eax
je 0x4131f9
lea eax, [esp + 0x54]
lea ecx, [esp + 0x18]
push eax
call fcn.0041b81e
push 0x5c
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReverseFind
mov edi, eax
lea ecx, [esp + 0x34]
push edi
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xa60], 0xc
call fcn.0041b82a
lea ecx, [esp + 0x34]
mov byte [esp + 0xa5c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x24]
push 0x42a438
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x41316f
lea eax, [esp + 0x14]
push 0x429044
lea ecx, [esp + 0x4c]
push eax
push ecx
call sub.MFC42.DLL_operator
lea edx, [esp + 0x24]
mov byte [esp + 0xa5c], 0xd
push edx
push eax
lea eax, [esp + 0x44]
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xa60], 0xe
call fcn.0041b82a
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa5c], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0xa5c], bl
call sub.MFC42.DLL_CString::CString
jmp 0x41317d
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.0041b82a
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
mov eax, dword [edx - 8]
sub eax, edi
dec eax
push eax
lea eax, [esp + 0x48]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa60], 0xf
call fcn.0041b82a
lea ecx, [esp + 0x44]
mov byte [esp + 0xa5c], bl
call sub.MFC42.DLL_CString::CString
push 0
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
call fcn.0041b7f4
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
mov byte [esp + 0xa6c], 0x10
call fcn.0041b7f4
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0xa68], bl
call fcn.004129c0
jmp 0x413028
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa5c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0xa5c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xa5c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa5c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xa5c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0xa5c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xa5c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0xa5c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xa5c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa64]
mov dword [esp + 0xa5c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xa54]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xa50
ret 4