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

Disassembly:
mov eax, 0x10260
call fcn.0048a3a0
mov eax, dword [0x828208]
xor eax, esp
mov dword [esp + 0x1025c], eax
mov eax, dword [esp + 0x1026c]
push ebx
mov ebx, dword [esp + 0x10268]
push ebp
push esi
push edi
push 0x104
mov dword [esp + 0x40], eax
mov esi, edx
lea eax, [esp + 0x164]
mov dword [esp + 0x34], esi
push 0
push eax
mov edi, ecx
call fcn.0048ff50
add esp, 0xc
mov dword [esp + 0x34], 0x104
lea eax, [esp + 0x58]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x38]
push eax
push 0
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x188]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4066d4
push 0x7fff
lea eax, [esp + 0x826c]
mov dword [esp + 0x2c], 0
push 0
push eax
mov dword [esp + 0x24], 0x7fff
call fcn.0048ff50
push 0x7fff
lea eax, [esp + 0x278]
mov dword [esp + 0x24], 0
push 0
push eax
mov dword [esp + 0x38], 0x7fff
call fcn.0048ff50
push esi
push str._nNumber_of_subkeys:__d_n
push edi
mov dword [esp + 0x48], 0
call fcn.0040adc0
xor ebp, ebp
add esp, 0x24
mov dword [esp + 0x2c], ebp
cmp dword [esp + 0x1c], ebp
jbe 0x4066d4
mov esi, dword [esp + 0x30]
nop word [eax + eax]
lea eax, [esp + 0x58]
mov dword [esp + 0x38], 0xff
push eax
push 0
push 0
push 0
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x74]
push eax
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x406420
lea eax, [esp + 0x60]
push eax
lea eax, [ebp + 1]
push eax
push str.__d___s_n
push edi
call fcn.0040adc0
add esp, 0x10
lea eax, [esp + 0x28]
push eax
push 0x20019
push 0
lea eax, [esp + 0x6c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x54]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
xor ebp, ebp
mov byte [esp + 0x13], 0
cmp dword [esp + 0x24], ebp
jbe 0x4066b7
nop dword [eax]
push 0x7fff
lea eax, [esp + 0x26c]
mov dword [esp + 0x24], 0x7fff
push 0
push eax
mov dword [esp + 0x24], 0x7fff
call fcn.0048ff50
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x827c]
push eax
push ebp
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push dword [esp + 0x1c]
mov esi, eax
push dword [esp + 0x30]
push str.enumerating__d_of__d:_n
push edi
call fcn.0040adc0
push esi
push dword [esp + 0x38]
push ebp
push str.enum_idx__d_of__d_valreturned:_0x_X_n
push edi
call fcn.0040adc0
lea eax, [esp + 0x84]
push eax
push str._tsubkey:__s_n
push edi
call fcn.0040adc0
push ebp
push str._tvalIdx:_0x_X_n
push edi
call fcn.0040adc0
lea eax, [esp + 0x82a4]
push eax
push str._t_ValueName__s_n
push edi
call fcn.0040adc0
add esp, 0x48
push dword [esp + 0x18]
push str._tcchValueName:_0x_x_n
push edi
call fcn.0040adc0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, 1
jne 0x406548
lea eax, [esp + 0x268]
push eax
push str._tREG_SZ:__s_n
jmp 0x40655a
cmp eax, 4
jne 0x406567
lea eax, [esp + 0x268]
push eax
push str._tREG_DWORD:_0x_X_n
push edi
call fcn.0040adc0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
push str._tType:_0x_X_n
push edi
call fcn.0040adc0
push dword [esp + 0x2c]
push str.cbData:_0x_X_n
push edi
call fcn.0040adc0
push dword [esp + 0x2c]
push str._tType:__X_n
push edi
call fcn.0040adc0
mov eax, dword [esp + 0x38]
add esp, 0x24
cmp eax, 1
jne 0x40663d
mov ecx, 0xc
lea eax, [esp + 0x8268]
cmp dword [esp + 0x18], ecx
cmovb ecx, dword [esp + 0x18]
push ecx
push eax
push 0x4da840
call fcn.00499c10
add esp, 0xc
test eax, eax
jne 0x406639
push ebx
lea eax, [esp + 0x26c]
push eax
push str.CHECKING_ProductName___s_against__s
push edi
call fcn.0040adc0
mov ecx, ebx
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4065e5
mov eax, dword [esp + 0x20]
sub ecx, edx
cmp eax, ecx
jb 0x406609
mov eax, ebx
lea edx, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406600
sub eax, edx
push eax
lea eax, [esp + 0x26c]
push eax
push ebx
call fcn.00499c10
add esp, 0xc
test eax, eax
jne 0x4066a8
push ebx
push str._tFOUND:__s_n
push edi
call fcn.0040adc0
add esp, 0xc
mov byte [esp + 0x13], 1
jmp 0x4066a8
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
je 0x4066a8
cmp eax, 4
jne 0x4066a8
mov ecx, 8
lea eax, [esp + 0x8268]
cmp dword [esp + 0x18], ecx
cmovb ecx, dword [esp + 0x18]
push ecx
push eax
push str.Version
call fcn.00499c10
add esp, 0xc
test eax, eax
jne 0x4066a8
push dword [esp + 0x268]
push str._tFOUND_VERSION:_0x_X_n
push edi
call fcn.0040adc0
mov ecx, dword [esp + 0x48]
add esp, 0xc
mov eax, dword [esp + 0x268]
test ecx, ecx
je 0x406697
mov dword [ecx], eax
cmp dword [esp + 0x10278], eax
je 0x406728
jb 0x406715
ja 0x406701
inc ebp
cmp ebp, dword [esp + 0x24]
jb 0x406470
mov esi, dword [esp + 0x30]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x2c]
inc ebp
mov dword [esp + 0x2c], ebp
cmp ebp, dword [esp + 0x1c]
jb 0x4063e0
push ebx
push str._t_s_NOT_FOUND_____n
push edi
call fcn.0040adc0
mov eax, 0xfffffffe
add esp, 0xc
mov ecx, dword [esp + 0x1026c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048980e
add esp, 0x10260
ret
push ebx
push str._t_s_EXISTING_VERSION_LOWER_____n
push edi
call fcn.0040adc0
add esp, 0xc
or eax, 0xffffffff
jmp 0x4066e8
push ebx
push str._t_s_EXISTING_VERSION_HIGHER_____n
push edi
call fcn.0040adc0
mov eax, 1
jmp 0x4066e5
push ebx
push str._t_s_VERSION_MATCH_____n
push edi
call fcn.0040adc0
add esp, 0xc
xor eax, eax
jmp 0x4066e8