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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4668cc
mov eax, dword fs:[0]
push eax
sub esp, 0x6d4
mov eax, dword [0x483004]
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
push edx
mov edx, ecx
xor ebx, ebx
lea ecx, [ebp - 0x670]
call fcn.00404910
add esp, 4
lea ecx, [ebp - 0x6ac]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x65c], 8
lea eax, [ebp - 0x670]
push ecx
cmovae eax, dword [ebp - 0x670]
push 0x20219
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d647
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004398f0
add esp, 0xc
mov dword [ebp - 0x6b8], 0x104
lea eax, [ebp - 0x6dc]
mov dword [ebp - 0x6a8], ebx
push eax
lea eax, [ebp - 0x6c4]
push eax
lea eax, [ebp - 0x6c8]
push eax
lea eax, [ebp - 0x6cc]
push eax
lea eax, [ebp - 0x6d0]
push eax
lea eax, [ebp - 0x6d4]
push eax
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x6a8]
push eax
push ebx
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x6ac]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x6b0]
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 - 0x6a8], esi
jbe 0x40d63b
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x6b0]
add eax, 2
mov dword [ebp - 0x6b4], eax
lea eax, [ebp - 0x6dc]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x6b4]
push eax
push edi
push esi
push dword [ebp - 0x6ac]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40d62e
cmp dword [ebp - 0x6b4], eax
jbe 0x40d62e
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], eax
mov word [ebp - 0x658], ax
cmp word [edi], ax
je 0x40d445
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d436
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x658]
call fcn.00403220
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x640]
push 1
xor eax, eax
mov dword [ebp - 0x62c], 7
push 0x471aac
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
call fcn.00403220
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x670]
lea ecx, [ebp - 0x688]
call fcn.0040f2d0
add esp, 4
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x6a0]
call fcn.0040f320
mov eax, dword [ebp - 0x674]
add esp, 4
cmp eax, 8
jb 0x40d4dd
inc eax
lea ecx, [ebp - 0x688]
push eax
push dword [ebp - 0x688]
call fcn.00403390
xor eax, eax
mov dword [ebp - 0x674], 7
mov word [ebp - 0x688], ax
mov eax, dword [ebp - 0x62c]
mov dword [ebp - 0x678], 0
cmp eax, 8
jb 0x40d518
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.00403390
xor eax, eax
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x644]
mov dword [ebp - 0x630], 0
cmp eax, 8
jb 0x40d556
inc eax
lea ecx, [ebp - 0x658]
push eax
push dword [ebp - 0x658]
call fcn.00403390
cmp dword [ebp - 0x68c], 8
lea ecx, [ebp - 0x6a4]
push ecx
push 0x20219
lea eax, [ebp - 0x6a0]
cmovae eax, dword [ebp - 0x6a0]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d610
push 0x208
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x6bc], 0x208
push eax
mov dword [ebp - 0x6c0], 0x208
call fcn.004398f0
add esp, 0xc
lea eax, [ebp - 0x6bc]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push str.UninstallerPath
push dword [ebp - 0x6a4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d604
lea eax, [ebp - 0x6c0]
push eax
lea eax, [ebp - 0x628]
push eax
push 0
push 0
push str.UninstallerArgs
push dword [ebp - 0x6a4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d604
inc ebx
push dword [ebp - 0x6a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x68c]
cmp eax, 8
jb 0x40d62e
inc eax
lea ecx, [ebp - 0x6a0]
push eax
push dword [ebp - 0x6a0]
call fcn.00403390
inc esi
cmp esi, dword [ebp - 0x6a8]
jb 0x40d3d0
push dword [ebp - 0x6ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x65c]
cmp ecx, 8
jb 0x40d665
inc ecx
push ecx
push dword [ebp - 0x670]
lea ecx, [ebp - 0x670]
call fcn.00403390
mov eax, ebx
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.004369c2
mov esp, ebp
pop ebp
ret