Function at 0x410430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54396b
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x5960c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 4], 1
cmp dword [ebp + 0x18], eax
jne 0x4104c1
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0xf
mov byte [ebx], al
xor edi, edi
mov eax, 0x5722cf
mov esi, ebx
call fcn.00405480
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jb 0x4104a1
mov eax, dword [ebp + 8]
push eax
call fcn.0041aff6
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], edi
mov byte [ebp + 8], 0
cmp dword [ebp + 0x38], esi
jb 0x4106f0
mov ecx, dword [ebp + 0x24]
push ecx
jmp 0x4106e8
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x120], eax
mov edi, 0x34
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea esi, [ebp - 0x130]
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
call fcn.00405480
xor esi, esi
push esi
lea edx, [ebp + 8]
push edx
or eax, 0xffffffff
lea edi, [ebp - 0x130]
mov byte [ebp - 4], 2
call fcn.0040d000
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
jae 0x41051d
mov eax, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x134]
push ecx
push 1
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x4105f3
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
jae 0x410552
lea eax, [ebp - 0x130]
lea edx, [ebp - 0x134]
push edx
push 0x101
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x4105f3
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], 0xf
xor edi, edi
mov eax, 0x5722cf
mov esi, ebx
mov byte [ebx], 0
call fcn.00405480
mov esi, 0x10
cmp dword [ebp - 0x11c], esi
jb 0x4105a6
mov eax, dword [ebp - 0x130]
push eax
call fcn.0041aff6
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
cmp dword [ebp + 0x1c], esi
jb 0x4105d3
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041aff6
add esp, 4
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp dword [ebp + 0x38], esi
jb 0x4106f0
mov edx, dword [ebp + 0x24]
push edx
jmp 0x4106e8
push 0x103
lea eax, [ebp - 0x113]
push esi
push eax
mov byte [ebp - 0x114], 0
call fcn.00521f30
mov eax, dword [ebp + 0x24]
add esp, 0xc
cmp dword [ebp + 0x38], 0x10
mov dword [ebp - 0x138], 0x104
jae 0x410625
lea eax, [ebp + 0x24]
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x114]
push edx
push esi
push esi
push eax
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x134]
cmp eax, esi
je 0x41065a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x134], esi
lea eax, [ebp - 0x114]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], esi
mov byte [ebx], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410670
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x114]
mov esi, ebx
call fcn.00405480
mov esi, 0x10
cmp dword [ebp - 0x11c], esi
jb 0x4106a4
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.0041aff6
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
cmp dword [ebp + 0x1c], esi
jb 0x4106d1
mov edx, dword [ebp + 8]
push edx
call fcn.0041aff6
add esp, 4
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp dword [ebp + 0x38], esi
jb 0x4106f0
mov eax, dword [ebp + 0x24]
push eax
call fcn.0041aff6
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051ac68
mov esp, ebp
pop ebp
ret