Function at 0x409a40
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x413308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], 0x100
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x24]
mov byte [esp + 0x38], 1
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0xf003f
push ebx
push str.SOFTWAREKingsaft
push 0x80000002
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x409bda
mov edi, dword [esp + 0x14]
push 0x100
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
push ebx
push 0x41a6e8
push edi
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x409bff
cmp esi, ebx
jne 0x409bff
lea ecx, [esp + 0x20]
push 4
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x20]
mov edi, eax
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x20]
push 4
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x20]
push 2
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x20]
mov ebp, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
push 2
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x20]
mov esi, eax
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
push ebx
push ebx
push ebx
push esi
push ebp
push edi
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CTime::CTime
mov edx, dword [esp + 0x24]
push ecx
mov eax, esp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], esp
mov dword [eax], edx
call fcn.00409c70
cmp eax, ebx
je 0x409c2f
xor esi, esi
jmp 0x409c33
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
cmp edi, ebx
je 0x409c17
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x409c4f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret