Function at 0x406b60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40b6e9
mov eax, dword fs:[0]
push eax
sub esp, 0x860
mov eax, dword [0x411028]
xor eax, esp
mov dword [esp + 0x858], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x411028]
xor eax, esp
push eax
lea eax, [esp + 0x874]
mov dword fs:[0], eax
mov eax, dword [esp + 0x884]
mov dword [esp + 0x2c], eax
mov ebx, 1
mov eax, Ordinal_4
mov dword [esp + 0x1c], eax
test byte [0x411800], bl
jne 0x406bc7
or dword [0x411800], ebx
mov dword [0x4117fc], eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor ebp, ebp
lea ecx, [esp + 0x50]
mov dword [esp + 0x87c], ebp
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x7fc
lea ecx, [esp + 0x74]
push ebp
mov dword [esp + 0x884], ebx
push ecx
mov dword [esp + 0x78], 0x20
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push ebx
push ebp
push str.SYSTEMCurrentControlSetControlhivelist
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x406dcd
push ebp
push ebp
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
push ecx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push edx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebp
je 0x406c61
lea eax, [esp + 0x34]
push eax
jmp 0x406dd2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x14], ebx
mov dword [0x4117fc], ecx
add eax, ebx
xor ecx, ecx
mov dword [esp + 0x18], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call sub.mfc90u.dll_new__
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
mov edi, eax
push ebp
push edi
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
push ebp
push esi
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
push edi
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
push ebp
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x38]
push ecx
push esi
push ebp
push edx
mov dword [esp + 0x40], ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x406db0
mov ebx, dword [esp + 0x2c]
cmp dword [esp + 0x20], 4
jne 0x406d2d
movzx eax, byte [edi]
push 0xa
push 0x400
lea ecx, [esp + 0x74]
push ecx
push eax
call dword [sym.imp.MSVCR90.dll__ultow_s]
add esp, 0x10
test eax, eax
jne 0x406d38
lea edx, [esp + 0x6c]
push edx
jmp 0x406d2e
push edi
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push esi
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea eax, [esp + 0x34]
push eax
call fcn.00407130
mov ecx, dword [esp + 0x14]
push ecx
push 0
push edi
inc ebp
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
push 0
push esi
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
push edi
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
push 0
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x38]
push ecx
push esi
push ebp
push edx
mov dword [esp + 0x40], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x406d02
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call sub.mfc90u.dll_delete
add esp, 4
push edi
call sub.mfc90u.dll_delete
add esp, 4
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x880], 0xffffffff
call fcn.00406e10
mov ecx, dword [esp + 0x874]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x858]
xor ecx, esp
call fcn.0040a4b0
add esp, 0x86c
ret