Function at 0x40daa0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445652
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x460554]
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 - 0xd4], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xb4], eax
call fcn.004153de
mov ecx, eax
test ecx, ecx
je 0x40e01a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xac], esi
push 0
push 0
push 0xffffffffffffffff
push str.TypeLib_
push 0
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 3
call ebx
lea edi, [eax - 1]
test edi, edi
jle 0x40db6e
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40db4b
push edi
lea ecx, [ebp - 0xac]
call fcn.004022b0
mov esi, dword [ebp - 0xac]
push edi
push esi
push 0xffffffffffffffff
push str.TypeLib_
push 0
push 3
call ebx
cmp edi, dword [esi - 8]
jg 0x40e024
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x40db79
lea ecx, [ebp - 0xac]
call fcn.00402180
mov esi, dword [ebp - 0xcc]
test esi, esi
jne 0x40db87
xor ecx, ecx
jmp 0x40db9f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40db90
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xac]
call fcn.00402b00
push dword [ebp - 0xb4]
xor edi, edi
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xb8], edi
call fcn.00402550
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xa8]
cmp dword [eax - 0xc], edi
jle 0x40dce4
push 0x2e
push eax
call fcn.0042de79
mov esi, eax
add esp, 8
test esi, esi
je 0x40dce4
mov ecx, dword [ebp - 0xa8]
sub esi, ecx
sar esi, 1
cmp esi, 1
jl 0x40dce4
test esi, esi
cmovns edi, esi
cmp edi, dword [ecx - 0xc]
jl 0x40dc27
add ecx, 0xfffffff0
push ecx
call fcn.00401d40
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0xb0], edi
jmp 0x40dc5c
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x40dc37
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x40dc43
call fcn.004153de
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push edi
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xb0]
call fcn.0040b410
mov edi, dword [ebp - 0xb0]
push edi
mov byte [ebp - 4], 2
call fcn.004359d5
mov ecx, dword [ebp - 0xa8]
lea edx, [esi + 1]
add esp, 4
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xb4]
mov ecx, dword [ecx - 0xc]
sub ecx, edx
push ecx
push edx
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040b2d0
mov esi, dword [ebp - 0xb4]
push esi
call fcn.004359d5
or ebx, 0xffffffff
mov dword [ebp - 0xb8], eax
add esp, 4
add esi, 0xfffffff0
mov ecx, ebx
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40dcc0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40df4a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40df4a
lea eax, [ebp - 0xb0]
push eax
push 0x20019
push 0
push dword [ebp - 0xac]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40df50
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0xdc]
push eax
xor edi, edi
mov dword [ebp - 0xc4], 0x40
push edi
push edi
push edi
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc0], edi
push eax
lea eax, [ebp - 0x90]
push eax
push edi
push dword [ebp - 0xb0]
call ebx
test eax, eax
jne 0x40df3e
nop dword [eax]
call fcn.004153de
test eax, eax
je 0x40e01a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xbc]
call fcn.004020d0
test al, al
jne 0x40ddb2
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dd90
sub ecx, edx
lea eax, [ebp - 0x90]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xbc]
call fcn.00402420
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0xbc]
cmp dword [esi - 0xc], 0
jle 0x40dee5
push 0x2e
push esi
call fcn.0042de79
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40dedf
sub ebx, esi
sar ebx, 1
cmp ebx, 1
jl 0x40dedf
xor edi, edi
test ebx, ebx
cmovns edi, ebx
cmp edi, dword [esi - 0xc]
jl 0x40de0b
lea eax, [esi - 0x10]
push eax
call fcn.00401d40
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0xc8], edi
jmp 0x40de3b
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x40de1b
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x40de27
call fcn.004153de
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push edi
push esi
lea ecx, [ebp - 0xc8]
call fcn.0040b410
mov edi, dword [ebp - 0xc8]
push edi
mov byte [ebp - 4], 5
call fcn.004359d5
mov ecx, dword [esi - 0xc]
lea edx, [ebx + 1]
add esp, 4
mov dword [ebp - 0xd0], eax
sub ecx, edx
lea eax, [ebp - 0xb4]
push ecx
push edx
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040b2d0
push dword [ebp - 0xb4]
call fcn.004359d5
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0xd0]
cmp eax, dword [ebp - 0xa4]
jg 0x40de92
jne 0x40de9e
cmp ecx, dword [ebp - 0xb8]
jle 0x40de9e
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xb4]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40debe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40ded9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0xc0]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc edi
mov dword [ebp - 0xc4], 0x40
mov dword [ebp - 0xc0], edi
add esi, 0xfffffff0
mov byte [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40df12
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0xdc]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x90]
push eax
push edi
push dword [ebp - 0xb0]
call ebx
test eax, eax
je 0x40dd50
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0xcc]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, dword [ebp - 0xd4]
mov ebx, dword [ebp - 0xb8]
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x40df8c
mov eax, dword [ecx]
lea edx, [ebp - 0xa0]
push 0
push ebx
push edi
push edx
push ecx
call dword [eax + 0x24]
test eax, eax
jne 0x40dfa8
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x40dfac
mov eax, dword [ecx]
lea edx, [ebp - 0xa0]
push 0
push ebx
push edi
push edx
push ecx
call dword [eax + 0x24]
test eax, eax
je 0x40dfac
xor esi, esi
jmp 0x40dfb1
mov esi, 1
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0xa8]
mov eax, ecx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dfd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xac]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40dffa
mov ecx, dword [eax]
push eax
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.0042c635
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004025f0
push 0x80070057
call fcn.004025f0
int3