Function at 0x40d6e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466942
mov eax, dword fs:[0]
push eax
sub esp, 0x708
mov eax, dword [0x483004]
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 ebx, dword [ebp + 8]
push edx
mov edx, ecx
mov dword [ebp - 0x6ec], ebx
lea ecx, [ebp - 0x674]
call fcn.00404910
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0x6ec]
mov edx, dword [ebx + 4]
push ecx
mov ecx, dword [ebx]
call fcn.0040f6f0
mov eax, dword [ebx]
lea ecx, [ebp - 0x6e0]
add esp, 8
mov dword [ebx + 4], eax
cmp dword [ebp - 0x660], 8
lea eax, [ebp - 0x674]
cmovae eax, dword [ebp - 0x674]
push ecx
push 0x20219
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40db60
push 0x208
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.004398f0
add esp, 0xc
mov dword [ebp - 0x6f0], 0x104
lea eax, [ebp - 0x714]
mov dword [ebp - 0x6dc], 0
push eax
lea eax, [ebp - 0x6fc]
push eax
lea eax, [ebp - 0x700]
push eax
lea eax, [ebp - 0x704]
push eax
lea eax, [ebp - 0x708]
push eax
lea eax, [ebp - 0x70c]
push eax
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x6dc]
push eax
push 0
lea eax, [ebp - 0x6f0]
push eax
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x6e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x6e4]
xor ecx, ecx
add eax, 0xa
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436c49
xor esi, esi
add esp, 4
mov edi, eax
cmp dword [ebp - 0x6dc], esi
jbe 0x40db54
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x6e4]
add eax, 2
mov dword [ebp - 0x6e8], eax
lea eax, [ebp - 0x714]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x6e8]
push eax
push edi
push esi
push dword [ebp - 0x6e0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40db47
cmp dword [ebp - 0x6e8], eax
jbe 0x40db47
mov dword [ebp - 0x648], 7
mov dword [ebp - 0x64c], eax
mov word [ebp - 0x65c], ax
cmp word [edi], ax
je 0x40d8b5
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d8a6
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x65c]
call fcn.00403220
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x644]
push 1
xor eax, eax
mov dword [ebp - 0x630], 7
push 0x471aac
mov dword [ebp - 0x634], 0
mov word [ebp - 0x644], ax
call fcn.00403220
lea eax, [ebp - 0x644]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x674]
lea ecx, [ebp - 0x68c]
call fcn.0040f2d0
add esp, 4
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x6a4]
call fcn.0040f320
add esp, 4
mov eax, dword [ebp - 0x678]
cmp eax, 8
jb 0x40d94d
inc eax
lea ecx, [ebp - 0x68c]
push eax
push dword [ebp - 0x68c]
call fcn.00403390
xor eax, eax
mov dword [ebp - 0x678], 7
mov dword [ebp - 0x67c], 0
mov word [ebp - 0x68c], ax
mov eax, dword [ebp - 0x630]
cmp eax, 8
jb 0x40d988
inc eax
lea ecx, [ebp - 0x644]
push eax
push dword [ebp - 0x644]
call fcn.00403390
xor eax, eax
mov dword [ebp - 0x630], 7
mov dword [ebp - 0x634], 0
mov word [ebp - 0x644], ax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x648]
cmp eax, 8
jb 0x40d9c7
inc eax
lea ecx, [ebp - 0x65c]
push eax
push dword [ebp - 0x65c]
call fcn.00403390
xor eax, eax
mov dword [ebp - 0x648], 7
cmp dword [ebp - 0x690], 8
lea ecx, [ebp - 0x6d8]
push ecx
mov word [ebp - 0x65c], ax
lea eax, [ebp - 0x6a4]
cmovae eax, dword [ebp - 0x6a4]
push 0x20219
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x64c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40db25
push 0x208
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x6f4], 0x208
push eax
mov dword [ebp - 0x6f8], 0x208
call fcn.004398f0
add esp, 0xc
lea eax, [ebp - 0x6f4]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push str.UninstallerPath
push dword [ebp - 0x6d8]
call ebx
test eax, eax
jne 0x40db19
lea eax, [ebp - 0x6f8]
push eax
lea eax, [ebp - 0x62c]
push eax
push 0
push 0
push str.UninstallerArgs
push dword [ebp - 0x6d8]
call ebx
test eax, eax
jne 0x40db19
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x6d4]
call fcn.00404830
lea eax, [ebp - 0x6d4]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x6ec]
push eax
call fcn.0040e350
mov eax, dword [ebp - 0x6a8]
cmp eax, 8
jb 0x40dade
inc eax
lea ecx, [ebp - 0x6bc]
push eax
push dword [ebp - 0x6bc]
call fcn.00403390
xor eax, eax
mov dword [ebp - 0x6a8], 7
mov word [ebp - 0x6bc], ax
mov eax, dword [ebp - 0x6c0]
mov dword [ebp - 0x6ac], 0
cmp eax, 8
jb 0x40db19
inc eax
lea ecx, [ebp - 0x6d4]
push eax
push dword [ebp - 0x6d4]
call fcn.00403390
push dword [ebp - 0x6d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x690]
cmp eax, 8
jb 0x40db47
inc eax
lea ecx, [ebp - 0x6a4]
push eax
push dword [ebp - 0x6a4]
call fcn.00403390
inc esi
cmp esi, dword [ebp - 0x6dc]
jb 0x40d840
push dword [ebp - 0x6e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x660]
cmp eax, 8
jb 0x40db7e
inc eax
lea ecx, [ebp - 0x674]
push eax
push dword [ebp - 0x674]
call fcn.00403390
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.004369c2
mov esp, ebp
pop ebp
ret