Function at 0x4857d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52aa99
push eax
mov dword fs:[0], esp
sub esp, 0x654
push ebx
mov ebx, dword [esp + 0x668]
push ebp
push esi
test ebx, ebx
push edi
je 0x485a29
push 0xffffffffffffffff
push str.EITCC
call fcn.00484ff0
add esp, 8
mov dword [esp + 0x10], eax
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x559470
mov dword [esp + 0x670], 0
call edi
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
push esi
call ebp
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00485050
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push ebx
call edi
mov ebx, eax
mov dword [esp + 0x3c], ebx
push ebx
mov byte [esp + 0x670], 1
call ebp
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00485050
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
jl 0x485a1f
lea eax, [esp + 0x264]
push 0x100
lea ecx, [esp + 0x50]
push eax
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0
push 0
lea edx, [esp + 0x16c]
push 0x100
push edx
lea eax, [esp + 0x274]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x164]
lea edx, [esp + 0x464]
push ecx
push str.CLSID_sCategoryName
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x464]
push eax
push 1
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
lea eax, [esp + 0x5c]
push edx
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x1c]
mov ebp, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x24], 1
jbe 0x4859aa
test ebp, ebp
jne 0x4859aa
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x66c], 2
call fcn.00485150
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
mov byte [esp + 0x66c], 3
je 0x48596e
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call fcn.004851a0
jmp 0x485970
xor eax, eax
test eax, eax
mov byte [esp + 0x66c], 2
mov dword [esp + 0x18], eax
je 0x485989
mov ecx, eax
call fcn.00485270
jmp 0x48598b
xor eax, eax
mov edx, dword [esp + 0x678]
lea ecx, [esp + 0x18]
mov dword [edx], eax
call fcn.00485150
push ebx
call esi
mov eax, dword [esp + 0x10]
push eax
jmp 0x485b62
lea ecx, [esp + 0x14]
lea edx, [esp + 0x4c]
push ecx
push 0x53c724
push 7
push 0
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4859d9
mov eax, dword [esp + 0x14]
test eax, eax
je 0x485a1f
jmp 0x485a19
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 0x800
lea edx, [esp + 0x48]
push 1
mov dword [esp + 0x4c], str.CategoryName
mov ecx, dword [eax]
push edx
push 0x53c624
push eax
call dword [ecx + 0x14]
mov edx, dword [esp + 0x20]
xor eax, eax
cmp edx, 0xffffffff
setne al
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x485a33
test eax, eax
je 0x485a1f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, 0x80004005
jmp 0x485b66
mov ebp, eax
test eax, eax
mov dword [esp + 0x38], ebp
je 0x485a43
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov word [esp + 0x28], 0
lea edx, [esp + 0x28]
mov byte [esp + 0x66c], 5
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x485a70
mov dword [esp + 0x30], eax
mov ebx, 8
push 0x559428
mov word [esp + 0x2c], bx
call edi
xor esi, esi
mov dword [esp + 0x30], eax
cmp eax, esi
jne 0x485aa3
mov ecx, 0x559428
test ecx, ecx
je 0x485aa3
mov word [esp + 0x28], 0xa
mov dword [esp + 0x30], 0x8007000e
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
push eax
push ebp
call fcn.00484fb0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
call edi
mov edi, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x18], esi
push 0xc
mov byte [esp + 0x670], 7
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, esi
mov byte [esp + 0x66c], bl
je 0x485af2
push edi
mov ecx, eax
call fcn.004851e0
mov esi, eax
test esi, esi
mov byte [esp + 0x66c], 7
mov dword [esp + 0x18], esi
je 0x485b0b
mov ecx, esi
call fcn.00485270
jmp 0x485b0d
xor eax, eax
mov edx, dword [esp + 0x678]
mov dword [edx], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x485b24
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
je 0x485b2f
mov ecx, esi
call fcn.00485220
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call esi
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebp, ebp
mov byte [esp + 0x66c], 1
je 0x485b56
mov eax, dword [ebp]
push ebp
call dword [eax + 8]
mov ecx, dword [esp + 0x3c]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
xor eax, eax
mov ecx, dword [esp + 0x664]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x660
ret 8