Function at 0x406108
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41730d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x47c
call fcn.00416550
mov dword [ebp - 0x454], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], 0x400
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x424]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
push 0x4204d8
lea ecx, [ebp - 0x41c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
push str.LicenseFilePath
lea ecx, [ebp - 0x420]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x414]
push ecx
push 1
push 0
lea ecx, [ebp - 0x41c]
call fcn.00404570
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x4062ab
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x410]
push ecx
push 0
lea ecx, [ebp - 0x420]
call fcn.00404570
push eax
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x418], 0
jne 0x4062ab
lea ecx, [ebp - 0x40c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00406f40
push 0x4219d4
lea edx, [ebp + 0xc]
push edx
call fcn.00404600
and eax, 0xff
test eax, eax
jne 0x406241
push 0x4219d8
lea eax, [ebp - 0x424]
push eax
call fcn.00404600
and eax, 0xff
test eax, eax
je 0x4062ab
mov eax, 4
call fcn.00416550
mov ecx, esp
mov dword [ebp - 0x430], esp
lea edx, [ebp - 0x424]
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x45c], eax
mov byte [ebp - 4], 4
mov eax, 4
call fcn.00416550
mov ecx, esp
mov dword [ebp - 0x434], esp
lea edx, [ebp + 0xc]
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x454]
mov ecx, dword [eax + 0xe0]
mov byte [ebp - 4], 3
call fcn.0041177f
cmp dword [ebp - 0x418], 0
jne 0x406305
mov dword [ebp - 0x438], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x420]
call fcn.00415d00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x41c]
call fcn.00415d00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x424]
call fcn.00415d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00415d00
mov eax, dword [ebp - 0x438]
jmp 0x4064d4
push str.No_System_Registry_Entry_Found:
lea ecx, [ebp - 0x42c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x420]
push ecx
push 0x420528
push str.SOFTWAREWONDERWARELICENSE
push 0x420548
push str.HKEY_LOCAL_MACHINE
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x43c]
push eax
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x464], eax
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x468], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x468]
push edx
lea eax, [ebp - 0x440]
push eax
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x46c], eax
mov ecx, dword [ebp - 0x46c]
mov dword [ebp - 0x470], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x470]
push edx
lea eax, [ebp - 0x444]
push eax
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x474], eax
mov ecx, dword [ebp - 0x474]
mov dword [ebp - 0x478], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x478]
push edx
lea eax, [ebp - 0x448]
push eax
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x47c], eax
mov ecx, dword [ebp - 0x47c]
mov dword [ebp - 0x480], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x480]
push edx
lea eax, [ebp - 0x44c]
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0x484], eax
mov ecx, dword [ebp - 0x484]
mov dword [ebp - 0x488], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x488]
push edx
lea ecx, [ebp - 0x42c]
call fcn.00415d54
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x44c]
call fcn.00415d00
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x448]
call fcn.00415d00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x444]
call fcn.00415d00
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x440]
call fcn.00415d00
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x43c]
call fcn.00415d00
push 0x30
push 0x420560
lea ecx, [ebp - 0x42c]
call fcn.00404570
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x450], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x42c]
call fcn.00415d00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x420]
call fcn.00415d00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x41c]
call fcn.00415d00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x424]
call fcn.00415d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00415d00
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc