Function at 0x46c0a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eb041
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x672014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x64]
push 0x20019
mov dword [ebp - 4], 0
push dword [eax]
push dword [ebp + 8]
call fcn.00435b20
test eax, eax
jne 0x46c6aa
xor esi, esi
mov dword [ebp - 0x1c], 0x3e8
mov dword [ebp - 0x28], esi
push 0x7d2
mov byte [ebp - 4], 1
call fcn.005c1d53
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
mov ebx, dword [ebp - 0x64]
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc esi
mov dword [ebp - 0x14], esi
test eax, eax
jne 0x46c663
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
push dword [ebp + 0xc]
mov word [edi + eax*2], cx
lea ecx, [ebp - 0x10]
call fcn.00410c20
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0046cb70
test edi, edi
jne 0x46c175
xor edx, edx
jmp 0x46c18f
mov edx, edi
lea ecx, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46c180
sub edx, ecx
sar edx, 1
mov eax, dword [ebp - 0x10]
mov ecx, edx
mov ebx, edi
mov dword [ebp - 0x48], edi
sub ebx, eax
not ecx
shr ecx, 0x1f
mov esi, dword [eax - 0xc]
sar ebx, 1
mov dword [ebp - 0x44], esi
test ecx, ecx
je 0x46c659
test edi, edi
jne 0x46c1b8
xor edx, edx
jmp 0x46c1c7
push edx
push edi
call fcn.005bf5a3
mov edx, eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, SysReAllocString
mov dword [ebp - 0x2c], edx
sub ecx, edx
cmp ecx, esi
jl 0x46c659
add esi, edx
js 0x46c659
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x46c1fe
push esi
lea ecx, [ebp - 0x10]
call fcn.00401eba
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x44]
cmp ebx, edx
lea ebx, [eax + ebx*2]
jbe 0x46c20b
mov ebx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x2c]
lea eax, [eax + edx*2]
push ecx
push ebx
push ecx
push eax
call fcn.00402097
mov eax, dword [ebp - 0x10]
add esp, 0x10
cmp esi, dword [eax - 8]
jg 0x46c659
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + esi*2], cx
call fcn.0040cdf0
test eax, eax
je 0x46c64f
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x46c258
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x46c25c
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x63cf60
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040d490
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.0046bad0
mov byte [ebp - 4], 3
add esp, 8
mov ecx, dword [ebp - 0x30]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46c2dd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46c2d6
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46c2d6
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call ebx
mov esi, dword [ebp + 8]
jmp 0x46c2e3
mov ecx, edx
call esi
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.0040cdf0
test eax, eax
je 0x46c64f
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x46c306
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x46c30a
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x24], eax
push str.DisplayVersion
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0040d490
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea edx, [ebp - 0x10]
call fcn.0046bad0
mov byte [ebp - 4], 5
add esp, 8
mov ecx, dword [ebp - 0x34]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46c37f
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46c378
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46c378
push 0
push dword [edx + 4]
call ebx
jmp 0x46c37c
mov ecx, edx
call esi
mov esi, dword [ebp + 8]
call fcn.0040cdf0
test eax, eax
je 0x46c64f
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x46c3a2
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x46c3a6
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x20], eax
push str.Publisher
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.0040d490
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
lea edx, [ebp - 0x10]
call fcn.0046bad0
mov byte [ebp - 4], 7
add esp, 8
mov ecx, dword [ebp - 0x38]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46c418
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46c414
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46c414
push 0
push dword [edx + 4]
call ebx
jmp 0x46c418
mov ecx, edx
call esi
push str.Version
lea ecx, [ebp - 0x3c]
call fcn.0040d490
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x10]
call fcn.0046bcb0
mov byte [ebp - 4], 7
add esp, 8
mov ecx, dword [ebp - 0x3c]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46c481
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46c47d
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46c47d
push 0
push dword [edx + 4]
call ebx
jmp 0x46c481
mov ecx, edx
call esi
mov esi, dword [ebp - 0x18]
cmp dword [esi - 0xc], 0
je 0x46c51f
push 0x10
call fcn.0046f39a
add esp, 4
test eax, eax
je 0x46c4a7
mov ecx, eax
call fcn.0046c6f0
mov ebx, eax
jmp 0x46c4a9
xor ebx, ebx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00410290
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebx + 4]
call fcn.00410290
mov eax, dword [ebp - 0x4c]
lea ecx, [ebx + 0xc]
mov dword [ebx + 8], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00410290
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x48], eax
call fcn.0046d200
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x44], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x46c4f9
mov dword [eax + 8], ebx
mov byte [ebp - 4], 7
mov dword [edx + 0x10], ecx
mov ecx, dword [ebp - 0x48]
mov dword [eax + 4], ecx
mov dword [eax], 0
inc dword [edx + 8]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x46c51a
mov dword [ecx], eax
jmp 0x46c51c
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [ebp - 0x1c], 0x3e8
or eax, 0xffffffff
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46c56c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46c568
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46c568
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46c56c
mov ecx, edx
call ebx
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46c5b4
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46c5b0
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46c5b0
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call ebx
jmp 0x46c5ba
mov ecx, edx
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46c5f7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46c5f5
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46c5f5
push 0
push dword [ecx + 4]
call ebx
jmp 0x46c5f7
call edx
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
mov esi, dword [ebp - 0x14]
test eax, eax
jg 0x46c126
mov edx, dword [ecx]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46c642
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46c642
push ecx
push 0
push dword [edx + 4]
call ebx
mov esi, dword [ebp - 0x14]
jmp 0x46c126
push ecx
mov ecx, edx
call esi
mov esi, dword [ebp - 0x14]
jmp 0x46c126
push 0x80004005
call fcn.004021c2
push 0x80070057
call fcn.004021c2
test ebx, ebx
je 0x46c675
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x64], esi
jmp 0x46c678
mov esi, dword [ebp - 0x64]
push edi
mov dword [ebp - 0x60], 0
call fcn.005bf75a
add esp, 4
mov dword [ebp - 0x28], 0
push 0
mov byte [ebp - 4], 0xb
call fcn.005bf75a
add esp, 4
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0
jmp 0x46c6ad
mov esi, dword [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x46c6c6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8