Function at 0x414710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x608]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x604]
mov dword [ebp - 0x614], eax
push ecx
push 0
push 0
push 0
push 3
push str.s_1_1_0
push eax
mov dword [ebp - 0x618], edi
mov dword [ebp - 0x608], 0x200
call dword [sym.imp.msi.dll_MsiQueryComponentStateW]
mov dword [ebp - 0x60c], 1
test eax, eax
jne 0x41481c
mov ebx, dword [edi + 8]
lea esi, [ebx - 1]
test esi, esi
js 0x4147c8
cmp esi, ebx
jge 0x4149e3
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x604]
mov eax, dword [eax + esi*4]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4147ba
test dx, dx
je 0x4147b6
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4147ba
add ecx, 4
add eax, 4
test dx, dx
jne 0x414794
xor eax, eax
jmp 0x4147bf
sbb eax, eax
or eax, 1
test eax, eax
je 0x4147d7
sub esi, 1
jns 0x414780
lea eax, [ebp - 0x604]
mov ecx, edi
push eax
push ebx
call fcn.00424d42
mov ebx, dword [ebp - 0x60c]
lea eax, [ebp - 0x608]
push eax
lea eax, [ebp - 0x604]
mov dword [ebp - 0x608], 0x200
push eax
push 0
push 0
push ebx
push 3
push str.s_1_1_0
push dword [ebp - 0x614]
call dword [sym.imp.msi.dll_MsiQueryComponentStateW]
inc ebx
mov dword [ebp - 0x60c], ebx
test eax, eax
je 0x414776
push str.MsiEnumProductsEx
push eax
push str._t_d___s
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402630
add esp, 0x14
lea ecx, [ebp - 0x204]
call fcn.004041a0
cmp dword [edi + 8], 0
je 0x4149d0
lea eax, [ebp - 0x610]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4148ba
push str.RegOpenKeyEx
push eax
push str._t_d___s
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402630
add esp, 0x14
lea ecx, [ebp - 0x204]
call fcn.004041a0
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00424d8d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054e183
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [edi + 8]
sub esi, 1
js 0x4149c4
nop word [eax + eax]
mov dword [ebp - 0x608], 0x200
test esi, esi
js 0x4149e3
cmp esi, dword [edi + 8]
jge 0x4149e3
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x608]
push ecx
lea ecx, [ebp - 0x604]
push ecx
push 0
push 0xffff
push str.ProfileImagePath
push dword [eax + esi*4]
lea ebx, [esi*4]
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4149b1
lea ecx, [ebp - 0x604]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414930
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
js 0x4149bb
nop word [eax + eax]
cmp word [ebp + eax*2 - 0x604], 0x5c
je 0x414962
sub eax, 1
jns 0x414950
jmp 0x4149bb
lea edx, [ebp - 0x602]
lea edx, [edx + eax*2]
cmp esi, dword [edi + 8]
jge 0x4149e3
mov edi, dword [edi + 4]
add edi, ebx
test edx, edx
jne 0x41498c
xor ecx, ecx
push ecx
push edx
mov ecx, edi
call fcn.00407390
mov edi, dword [ebp - 0x618]
jmp 0x4149bb
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414991
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00407390
mov edi, dword [ebp - 0x618]
jmp 0x4149bb
push 1
push esi
mov ecx, edi
call fcn.00424c0f
sub esi, 1
jns 0x4148d0
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054e183
mov esp, ebp
pop ebp
ret 0xc
call fcn.004163ce
int3