Function at 0x40d410
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4440b7
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x45d554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc4], ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xd0], ebx
call fcn.00414495
mov ecx, eax
test ecx, ecx
jne 0x40d465
push 0x80004005
call fcn.004026b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xbc], eax
push str.TypeLib_
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 0
call fcn.00403560
test ebx, ebx
jne 0x40d492
xor ecx, ecx
jmp 0x40d4a6
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d497
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0xbc]
call fcn.00402ca0
push esi
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
call fcn.004025f0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, dword [ebp - 0xb0]
mov ebx, dword [ebp - 0xbc]
cmp dword [eax - 0xc], 0
jle 0x40d5ac
push 0x2e
push eax
call fcn.0042de77
mov esi, eax
add esp, 8
test esi, esi
je 0x40d5ac
sub esi, dword [ebp - 0xb0]
sar esi, 1
cmp esi, 1
jl 0x40d5ac
push esi
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xb0]
call fcn.0040e1b0
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0xb8]
push edi
call fcn.00434f19
add esp, 4
mov dword [ebp - 0xa8], eax
lea ecx, [esi + 1]
lea eax, [ebp - 0xb4]
push ecx
push eax
lea ecx, [ebp - 0xb0]
call fcn.0040e220
mov esi, dword [ebp - 0xb4]
push esi
call fcn.00434f19
add esp, 4
mov dword [ebp - 0xac], eax
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40d585
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d78f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40d78f
lea eax, [ebp - 0xb8]
push eax
push 0x20019
push 0
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d78f
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0x40
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push dword [ebp - 0xb8]
call esi
test eax, eax
jne 0x40d783
xor ebx, ebx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xa4]
call fcn.004025f0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xa4]
cmp dword [eax - 0xc], 0
jle 0x40d713
push 0x2e
push eax
call fcn.0042de77
mov esi, eax
add esp, 8
test esi, esi
je 0x40d707
mov eax, dword [ebp - 0xa4]
sub esi, eax
sar esi, 1
cmp esi, 1
jl 0x40d70d
push esi
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xa4]
call fcn.0040e1b0
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0xa8]
push edi
call fcn.00434f19
add esp, 4
mov dword [ebp - 0xcc], eax
lea ecx, [esi + 1]
lea eax, [ebp - 0xc8]
push ecx
push eax
lea ecx, [ebp - 0xa4]
call fcn.0040e220
mov esi, dword [ebp - 0xc8]
push esi
call fcn.00434f19
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0xcc]
cmp eax, ebx
jg 0x40d6c8
jne 0x40d6d0
cmp ecx, dword [ebp - 0xac]
jle 0x40d6d0
mov ebx, eax
mov dword [ebp - 0xac], ecx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d6e8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40d704
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or edi, 0xffffffff
mov eax, dword [ebp - 0xa4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp - 0xc0]
lea edx, [eax - 0x10]
inc ecx
mov dword [ebp - 0xb4], 0x40
mov dword [ebp - 0xc0], ecx
mov eax, edi
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d74b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc0]
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x90]
push eax
push ecx
push dword [ebp - 0xb8]
call esi
test eax, eax
je 0x40d613
mov dword [ebp - 0xa8], ebx
mov ebx, dword [ebp - 0xbc]
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0xd0]
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov eax, dword [ebp - 0xc4]
mov esi, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x5c]
test ecx, ecx
je 0x40d7d5
mov eax, dword [ecx]
lea edx, [ebp - 0xa0]
push 0
push dword [ebp - 0xac]
push esi
push edx
push ecx
call dword [eax + 0x24]
test eax, eax
jne 0x40d7f6
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 0x6c]
test ecx, ecx
je 0x40d7fa
mov eax, dword [ecx]
lea edx, [ebp - 0xa0]
push 0
push dword [ebp - 0xac]
push esi
push edx
push ecx
call dword [eax + 0x24]
test eax, eax
je 0x40d7fa
xor esi, esi
jmp 0x40d7ff
mov esi, 1
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0xb0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d820
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x40d83c
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b6e6
mov esp, ebp
pop ebp
ret 8