Function at 0x4159b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b253f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], ebx
call sub.MFC42.DLL_CString::CString_5
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xc4]
push 0x40
push eax
push ecx
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea edx, [ebp - 0xc4]
lea ecx, [ebp - 0x28]
push edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_2
mov esi, eax
push str.CLSID_
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_4
push esi
push eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 4
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push ebx
push eax
push bind
call esi
lea ecx, [ebp + 0xc]
mov edi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
cmp edi, ebx
je 0x415a93
lea edx, [ebp - 0x34]
push 0x4c8548
push edx
mov dword [ebp - 0x34], 0x80004005
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.InprocServer32
push ecx
call esi
test eax, eax
je 0x415af3
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push 0x20019
push ebx
push str.InprocHandler32
push eax
call esi
test eax, eax
je 0x415af3
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push ebx
push str.LocalServer32
push edx
call esi
cmp eax, ebx
je 0x415af3
lea eax, [ebp - 0x44]
push 0x4c8548
push eax
mov dword [ebp - 0x44], 0x80004005
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x24]
push ecx
push ebx
push edx
push ebx
push ebx
push eax
mov dword [ebp - 0x20], ebx
call edi
cmp eax, ebx
jne 0x415ba2
cmp dword [ebp - 0x24], 1
jne 0x415ba2
mov ecx, dword [ebp - 0x20]
push ecx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x415b46
lea edx, [ebp - 0x2c]
push 0x4c8548
push edx
mov dword [ebp - 0x2c], 0x80004005
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push esi
push ecx
push ebx
push ebx
push edx
call edi
cmp eax, ebx
jne 0x415b8d
cmp dword [ebp - 0x24], 1
jne 0x415b8d
push esi
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push ecx
call edi
push esi
mov dword [ebp - 0x14], ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x415bdd
lea edx, [ebp - 0x30]
push 0x4c8548
push edx
mov dword [ebp - 0x30], 0x80004005
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x38]
push 0x4c8548
push eax
mov dword [ebp - 0x38], 0x80004005
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x18]
xor ebx, ebx
cmp eax, ebx
je 0x415bc7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x415bd5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x415bdb
ret
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov edi, 1
push ecx
mov ecx, esi
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x40], edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret