Function at 0x407730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43210f
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp dword [0x44add8], 0
push 0x20
lea ecx, [ebp - 0x14]
je 0x407797
cmp dword [0x44addc], 0
je 0x407790
push str.6108618CE99C9024FBBB0AF217FD7047
jmp 0x4077ac
push str.4AC27515A1B27E448A4BC3EB8EFBB056
jmp 0x4077ac
cmp dword [0x44addc], 0
je 0x4077a7
push str.2629D5547AEB7DC48BB419B49D370C6A
jmp 0x4077ac
push str.E8D1E23D698D0E04CBC5B4583EE88D0E
call fcn.00402440
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push str.InstallerUpgradeCodes_
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00403130
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUpgradeCodes_
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00403130
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push dword [edi - 0xc]
push edi
call fcn.004032b0
push dword [edi - 0xc]
lea ecx, [ebp - 0x18]
push edi
call fcn.004032b0
push 0x2001f
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
push SysReAllocString
call fcn.004027e0
or esi, 0xffffffff
test eax, eax
jne 0x407ca1
xor ebx, ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x10], ebx
lea esp, [esp]
mov eax, dword [0x448020]
mov ecx, 0x448020
mov dword [ebp - 0x24], 0x3e8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x24]
test edx, edx
js 0x407c92
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x407886
push edx
lea ecx, [ebp - 0x1c]
call fcn.004026b0
mov esi, dword [ebp - 0x1c]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push dword [esi - 8]
mov dword [ebp - 0x28], eax
push esi
call fcn.00420547
add esp, 8
test eax, eax
js 0x407c92
cmp eax, dword [esi - 8]
jg 0x407c92
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x28], ecx
jne 0x40790c
mov eax, ebx
mov dword [ebp - 0x34], eax
cmp ebx, dword [ebp - 0x4c]
jb 0x4078f1
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x54]
call fcn.00408010
test al, al
je 0x407a07
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x54]
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 6
test ecx, ecx
je 0x407908
push esi
call fcn.00403130
inc ebx
mov dword [ebp - 0x50], ebx
inc dword [ebp - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40792d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x28], 0x103
jne 0x407840
mov eax, dword [ebp - 0x44]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40794a
push eax
call esi
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], SysStringLen
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call fcn.00408230
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x407974
push eax
call esi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call fcn.00408230
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4079a3
push ebx
call esi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
push str.InstallerFeatures_
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x40], 0
call fcn.00403130
push str.InstallerProducts_
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00403130
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x1c], 0
test esi, esi
je 0x407b8b
mov edi, edi
mov ebx, dword [ebp - 0x30]
add ebx, 0xfffffff0
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
lea edx, [ebx + 0xc]
mov ecx, eax
jl 0x407a11
cmp ecx, dword [ebx]
jne 0x407a11
mov eax, 1
lock xadd dword [edx], eax
jmp 0x407a53
push 0x8007000e
call fcn.00402950
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x34], edx
test edx, edx
je 0x407c9c
mov ecx, dword [ebx + 4]
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.0041fe58
mov ebx, dword [ebp - 0x34]
add esp, 0x10
lea eax, [ebx + 0x10]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1c]
cmp eax, esi
jae 0x407c92
mov ecx, dword [ebp - 0x54]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.004032b0
mov esi, dword [ebp - 0x10]
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], SysStringLen
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call fcn.00408230
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x407ab5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x2c]
add esi, 0xfffffff0
lea edx, [eax - 0x10]
mov dword [ebp - 0x40], 0
cmp edx, esi
je 0x407b0f
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x407b03
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x407b03
push edx
call fcn.004028c0
add esp, 4
mov dword [ebp - 0x34], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x407afb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x407b0f
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00402440
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004032b0
mov esi, dword [ebp - 0x10]
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], SysStringLen
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call fcn.00408230
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x407b54
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x44], ebx
add esi, 0xfffffff0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 8
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407b79
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, esi
jb 0x4079e0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407bac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407bcd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x407c14
test esi, esi
je 0x407c0b
xor edi, edi
or ebx, 0xffffffff
mov edx, dword [eax + edi*4]
sub edx, 0x10
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407bfd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x54]
inc edi
cmp edi, esi
jb 0x407be1
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x44]
push eax
call fcn.00420629
add esp, 4
or esi, 0xffffffff
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407c37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407c57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x407c62
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x407c80
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402950
call fcn.004028b0
mov ebx, dword [ebp - 0x44]
jmp 0x407c17