Function at 0x416dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41ec81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x520
push ebx
push ebp
push esi
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x534], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x534], 3
call sub.MFC42.DLL_CString::CString_2
mov bl, 4
push 0
push 0x429044
lea ecx, [esp + 0x548]
mov byte [esp + 0x53c], bl
call sub.MFC42.DLL_CString::Find_3
mov esi, eax
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x548]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x538], 5
call fcn.0041b82a
lea ecx, [esp + 0x14]
mov byte [esp + 0x534], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x540]
lea edx, [esp + 0x14]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x540]
sub eax, esi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x538], 6
call fcn.0041b82a
lea ecx, [esp + 0x14]
mov byte [esp + 0x534], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.HKEY_LOCAL_MACHINE
push eax
call esi
test eax, eax
mov ebp, 0x80000002
je 0x416ebd
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push str.HKEY_CLASS_ROOT
push ecx
call esi
test eax, eax
jne 0x416ed2
mov ebp, 0x80000000
mov edx, dword [esp + 0xc]
push str.HKEY_CURRENT_USER
push edx
call esi
test eax, eax
jne 0x416ee7
mov ebp, 0x80000001
mov eax, dword [esp + 0xc]
push str.HKEY_CURRENT_CONFIG
push eax
call esi
test eax, eax
jne 0x416efc
mov ebp, 0x80000005
mov ecx, dword [esp + 0xc]
push str.HKEY_USERS
push ecx
call esi
test eax, eax
jne 0x416f11
mov ebp, 0x80000003
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x538], 7
call sub.MFC42.DLL_CString::Empty
mov dx, word [0x42a43c]
mov ecx, 0x13f
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], dx
mov dword [esp + 0x28], 0x500
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
stosw word es:[edi], ax
lea eax, [esp + 0x24]
push eax
push 1
push 0
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x416fa6
lea edx, [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x548]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041b81e
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x53c]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0041b7f4
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x534], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x534], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x534], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x540]
mov byte [esp + 0x534], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x544]
mov byte [esp + 0x534], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x52c]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x52c
ret