Function at 0x40d3b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444717
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x45e554]
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.004144f5
mov ecx, eax
test ecx, ecx
jne 0x40d405
push 0x80004005
call fcn.00402370
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.004032f0
test ebx, ebx
jne 0x40d432
xor ecx, ecx
jmp 0x40d446
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d437
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0xbc]
call fcn.00402940
push esi
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
call fcn.004022b0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, dword [ebp - 0xb0]
mov ebx, dword [ebp - 0xbc]
cmp dword [eax - 0xc], 0
jle 0x40d54c
push 0x2e
push eax
call fcn.0042de77
mov esi, eax
add esp, 8
test esi, esi
je 0x40d54c
sub esi, dword [ebp - 0xb0]
sar esi, 1
cmp esi, 1
jl 0x40d54c
push esi
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xb0]
call fcn.0040e150
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0xb8]
push edi
call fcn.00434fe4
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.0040e1c0
mov esi, dword [ebp - 0xb4]
push esi
call fcn.00434fe4
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 0x40d525
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 0x40d72f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40d72f
lea eax, [ebp - 0xb8]
push eax
push 0x20019
push 0
push ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d72f
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 0x40d723
xor ebx, ebx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xa4]
call fcn.004022b0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xa4]
cmp dword [eax - 0xc], 0
jle 0x40d6b3
push 0x2e
push eax
call fcn.0042de77
mov esi, eax
add esp, 8
test esi, esi
je 0x40d6a7
mov eax, dword [ebp - 0xa4]
sub esi, eax
sar esi, 1
cmp esi, 1
jl 0x40d6ad
push esi
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xa4]
call fcn.0040e150
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0xa8]
push edi
call fcn.00434fe4
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.0040e1c0
mov esi, dword [ebp - 0xc8]
push esi
call fcn.00434fe4
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0xcc]
cmp eax, ebx
jg 0x40d668
jne 0x40d670
cmp ecx, dword [ebp - 0xac]
jle 0x40d670
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 0x40d688
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 0x40d6a4
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 0x40d6eb
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 0x40d5b3
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 0x40d775
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 0x40d796
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 0x6c]
test ecx, ecx
je 0x40d79a
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 0x40d79a
xor esi, esi
jmp 0x40d79f
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 0x40d7c0
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 0x40d7dc
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.0042b520
mov esp, ebp
pop ebp
ret 8