Function at 0x412960
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41e9a7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x8854
call fcn.0041be10
mov eax, dword [0x42b75c]
xor eax, esp
mov dword [esp + 0x8850], eax
push ebx
push esi
push edi
mov eax, dword [0x42b75c]
xor eax, esp
push eax
lea eax, [esp + 0x8868]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x34]
call fcn.004019f0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x8870], 0
call fcn.004019f0
lea ecx, [esp + 0x24]
mov byte [esp + 0x8870], 1
call fcn.004019f0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8870], 2
call fcn.004019f0
mov bl, 3
push str.SoftwareHewlett_Packardusg_
lea ecx, [esp + 0x20]
mov byte [esp + 0x8874], bl
call fcn.00401a40
push esi
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x887c], 4
call fcn.00401e70
add esp, 0xc
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x8874], 5
call fcn.00401580
lea ecx, [esp + 0x14]
mov byte [esp + 0x8870], 4
call fcn.00401cb0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8870], bl
call fcn.00401cb0
push str.9BC1D286AD8DEC8EB6C5DF83_straight_gangsta_pimpin_yo_printahs
mov ecx, edi
call fcn.00401580
push str.MVpC
lea ecx, [esp + 0x18]
call fcn.00401a40
push str.UserInsertHp
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x887c], 6
call fcn.00401e70
add esp, 0xc
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x8874], 7
call fcn.00401580
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8870], 6
call fcn.00401cb0
lea ecx, [esp + 0x14]
mov byte [esp + 0x8870], bl
call fcn.00401cb0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x24]
push edx
push eax
push ecx
call fcn.00414960
add esp, 0xc
test eax, eax
je 0x412ae0
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.00402170
push str.MVpC
lea ecx, [esp + 0x18]
call fcn.00401a40
push str.UserOptIn
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x887c], 8
call fcn.00401e70
add esp, 0xc
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x8874], 9
call fcn.00401580
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8870], 8
call fcn.00401cb0
lea ecx, [esp + 0x14]
mov byte [esp + 0x8870], bl
call fcn.00401cb0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.00414960
add esp, 0xc
test eax, eax
je 0x412b66
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.00402170
push str.MVpC
lea ecx, [esp + 0x18]
call fcn.00401a40
push str.ThresholdThresholdLow
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x887c], 0xa
call fcn.00401e70
add esp, 0xc
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x8874], 0xb
call fcn.00401580
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8870], 0xa
call fcn.00401cb0
lea ecx, [esp + 0x14]
mov byte [esp + 0x8870], bl
call fcn.00401cb0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
call fcn.00414960
add esp, 0xc
test eax, eax
je 0x412bec
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.00402170
push str.MVpC
lea ecx, [esp + 0x18]
call fcn.00401a40
push str.ThresholdThresholdHi
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x887c], 0xc
call fcn.00401e70
add esp, 0xc
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x8874], 0xd
call fcn.00401580
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8870], 0xc
call fcn.00401cb0
lea ecx, [esp + 0x14]
mov byte [esp + 0x8870], bl
call fcn.00401cb0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x24]
push edx
push eax
push ecx
call fcn.00414960
add esp, 0xc
test eax, eax
je 0x412c7e
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.00402170
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.00402170
push str.MVpC
lea ecx, [esp + 0x18]
call fcn.00401a40
push str.GoodGetCount
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x887c], 0xe
call fcn.00401e70
add esp, 0xc
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x8874], 0xf
call fcn.00401580
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8870], 0xe
call fcn.00401cb0
lea ecx, [esp + 0x14]
mov byte [esp + 0x8870], bl
call fcn.00401cb0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x24]
push edx
push eax
push ecx
call fcn.00414960
add esp, 0xc
test eax, eax
je 0x412d04
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.00402170
push str.MVpC
lea ecx, [esp + 0x18]
call fcn.00401a40
push str.WaitState
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x887c], 0x10
call fcn.00401e70
add esp, 0xc
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x8874], 0x11
call fcn.00401580
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8870], 0x10
call fcn.00401cb0
lea ecx, [esp + 0x14]
mov byte [esp + 0x8870], bl
call fcn.00401cb0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.00414960
add esp, 0xc
test eax, eax
je 0x412d8a
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.00402170
push str.SixMonthWindow
lea ecx, [esp + 0x58]
call fcn.00401a40
mov esi, eax
push 0x420f50
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x887c], 0x12
call fcn.00401e70
push esi
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x8888], 0x13
call fcn.00401e30
add esp, 0x18
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x8874], 0x14
call fcn.00401580
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8870], 0x13
call fcn.00401cb0
lea ecx, [esp + 0x14]
mov byte [esp + 0x8870], 0x12
call fcn.00401cb0
lea ecx, [esp + 0x54]
mov byte [esp + 0x8870], bl
call fcn.00401cb0
mov ebx, 0x400
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
xor esi, esi
call fcn.00414060
test eax, eax
je 0x412e9b
lea edx, [esp + 0x54]
push edx
call fcn.00413f10
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x54]
add esp, 4
push eax
push 0x7fff
lea eax, [esp + 0x864]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea ecx, [esp + 0x54]
mov esi, eax
call fcn.00401cb0
test esi, esi
jbe 0x412f49
mov ebx, dword [sym.imp.MSVCR90.dll__mbschr]
lea eax, [esp + 0x85c]
push 0x3d
push eax
call ebx
mov esi, eax
add esp, 8
inc esi
push esi
mov ecx, edi
call fcn.00402190
push 0
push esi
call ebx
inc eax
add esp, 8
cmp byte [eax], 0
jne 0x412e75
jmp 0x412f49
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x40]
push edx
push 0x20019
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412f49
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x4c]
push 0
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x470]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x412f3e
cmp dword [esp + 0x48], 1
jne 0x412f04
lea ecx, [esp + 0x5c]
push ecx
mov ecx, edi
call fcn.00402190
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x4c]
push 0
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x470]
push eax
inc esi
push esi
push ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x412ef1
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8870], 2
call fcn.00401cb0
lea ecx, [esp + 0x24]
mov byte [esp + 0x8870], 1
call fcn.00401cb0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8870], 0
call fcn.00401cb0
lea ecx, [esp + 0x34]
mov dword [esp + 0x8870], 0xffffffff
call fcn.00401cb0
xor eax, eax
mov ecx, dword [esp + 0x8868]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8850]
xor ecx, esp
call fcn.0041bd34
mov esp, ebp
pop ebp
ret 8