Function at 0x407af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a0f0
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x4959d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x98]
xor esi, esi
push edx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xac], esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, esi
jl 0x407e9c
mov edi, dword [ebp - 0xac]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x407b74
sub eax, edx
sar eax, 1
inc eax
push eax
call fcn.00459af1
mov ebx, eax
mov eax, edi
add esp, 4
mov dword [ebp - 0xc0], ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x407ba0
sub eax, edx
sar eax, 1
inc eax
push eax
push edi
push ebx
call fcn.0045995d
mov eax, dword [ebp - 0xac]
add esp, 0xc
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x72
mov dword [ebp - 0xb4], 0x72
call fcn.00459af1
add esp, 4
lea ecx, [ebp - 0xc4]
push ecx
push 0x20019
push esi
push str.CLSID
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push SysReAllocStringLen
mov edi, eax
mov byte [ebp - 0x99], 1
call esi
test eax, eax
jne 0x407e62
lea edx, [ebp - 0xa0]
push edx
push 0x20019
push eax
mov eax, dword [ebp - 0xc4]
push ebx
push eax
call esi
mov ecx, dword [ebp - 0xc4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [ebp - 0xc8], eax
call esi
push ebx
call fcn.00459ab7
add esp, 4
cmp dword [ebp - 0xc8], 0
mov dword [ebp - 0xc0], 0
jne 0x407e41
mov eax, dword [ebp - 0xa0]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 0xbc]
push edx
push 0x20019
push 0
push str.TypeLib
push eax
call ebx
test eax, eax
je 0x407cab
mov ecx, dword [ebp - 0xa0]
push ecx
call esi
push 0
push 6
lea edx, [ebp - 0xdc]
push edx
call fcn.004019c0
push 0x4919c0
lea eax, [ebp - 0xdc]
push eax
call fcn.00466804
mov edx, dword [ebp - 0xa0]
lea ecx, [ebp - 0xb0]
push ecx
push 0x20019
push 0
push str.version
push edx
call ebx
mov ebx, eax
mov eax, dword [ebp - 0xa0]
push eax
call esi
test ebx, ebx
je 0x407cdd
mov byte [ebp - 0x99], 0
mov edx, dword [ebp - 0xbc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0xb4]
push ecx
push edi
push 0
push 0
push 0
push edx
call ebx
mov eax, dword [ebp - 0xbc]
push eax
call esi
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0x78]
push edx
push 0
push 0
push 0
push eax
call ebx
mov ecx, dword [ebp - 0xb0]
push ecx
call esi
mov eax, edi
lea edx, [eax + 1]
jmp 0x407d30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407d30
sub eax, edx
lea edx, [eax + eax + 2]
push edx
call fcn.00459af1
mov esi, eax
mov eax, edi
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407d50
sub eax, edx
inc eax
push eax
push edi
push esi
call fcn.0045960c
xor ebx, ebx
add esp, 0xc
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
cmp byte [ebp - 0x99], bl
je 0x407d9c
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x78]
push str._d._d
push edx
call fcn.0045a207
add esp, 0x10
jmp 0x407dbd
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xa4]
mov ebx, edi
call fcn.00408080
add esp, 4
test al, al
je 0x407e9c
xor ebx, ebx
push edi
call fcn.00459ab7
mov edx, dword [0x47e29c]
mov ecx, dword [0x47e298]
mov eax, dword [0x47e2a0]
add esp, 4
mov dword [ebp - 0x84], edx
lea edx, [ebp - 0x88]
mov dword [ebp - 0x88], ecx
mov ecx, dword [0x47e2a4]
push edx
push esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
call dword [sym.imp.ole32.dll_CLSIDFromString]
push esi
call fcn.00459ab7
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa8]
add esp, 4
lea eax, [ebp - 0xb8]
push eax
push ebx
push ecx
push edx
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0xb8], ebx
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
xor ecx, ecx
test eax, eax
sets cl
lea eax, [ecx - 1]
and eax, dword [ebp - 0xb8]
jmp 0x407e9e
push 0
push 6
lea edx, [ebp - 0x104]
push edx
call fcn.004019c0
push 0x4919c0
lea eax, [ebp - 0x104]
push eax
call fcn.00466804
push 0
push 6
lea ecx, [ebp - 0xf0]
push ecx
call fcn.004019c0
push 0x4919c0
lea edx, [ebp - 0xf0]
push edx
call fcn.00466804
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x407e96
push eax
call fcn.00459ab7
add esp, 4
mov eax, 0x407e9c
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00457a03
mov esp, ebp
pop ebp
ret