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

Disassembly:
push 0xffffffffffffffff
push 0x48fea9
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x44c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x464]
mov dword fs:[0], eax
mov esi, dword [esp + 0x494]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x47c]
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x478], ebx
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00403fb0
push 8
push str.UserReg
lea ecx, [esp + 0x48]
mov byte [esp + 0x474], 1
call fcn.00415820
mov ebp, dword [esp + 0x490]
cmp ebp, ebx
mov edi, 0x20019
je 0x417294
mov edi, 0x20119
cmp dword [esp + 0x58], 0x10
mov eax, dword [esp + 0x44]
jae 0x4172a3
lea eax, [esp + 0x44]
push ebp
push eax
call fcn.0040dd00
add esp, 8
test eax, eax
je 0x417543
push 8
push str.Product
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00404100
mov eax, dword [esp + 0x44]
mov ebp, 0x10
cmp dword [esp + 0x58], ebp
mov byte [esp + 0x46c], 2
mov dword [esp + 0x1c], ebx
jae 0x4172f4
lea eax, [esp + 0x44]
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x417368
cmp dword [esp + 0x3c], ebp
jb 0x41731e
mov edx, dword [esp + 0x28]
push edx
call fcn.00477a90
add esp, 4
cmp dword [esp + 0x58], ebp
mov esi, 0xf
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jb 0x417342
mov eax, dword [esp + 0x44]
push eax
call fcn.00477a90
add esp, 4
cmp dword [esp + 0x48c], ebp
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x417715
mov ecx, dword [esp + 0x478]
push ecx
jmp 0x41770d
push 0x3ff
lea edx, [esp + 0x62]
push ebx
push edx
mov word [esp + 0x68], bx
call fcn.00477c40
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push str.Prod_Name
mov ebp, 0x400
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 1
call edi
test eax, eax
jne 0x4173e0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x5c]
mov byte [esp + ecx + 0x5c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4173c6
sub eax, edx
push eax
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x2c]
call fcn.00415820
push 1
push 0x4983e4
lea ecx, [esp + 0x2c]
call fcn.00415820
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push str.Prod_Ver
push eax
mov dword [esp + 0x2c], ebp
call edi
test eax, eax
jne 0x41743d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x5c]
mov byte [esp + ecx + 0x5c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x417423
sub eax, edx
push eax
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x2c]
call fcn.00415820
push 1
push 0x4983e4
lea ecx, [esp + 0x2c]
call fcn.00415820
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push str.RegVType
push eax
mov dword [esp + 0x2c], ebp
call edi
test eax, eax
jne 0x41749a
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x5c]
mov byte [esp + ecx + 0x5c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x417480
sub eax, edx
push eax
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x2c]
call fcn.00415820
push 1
push 0x4983e4
lea ecx, [esp + 0x2c]
call fcn.00415820
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push str.SR_No
push eax
mov dword [esp + 0x2c], ebp
call edi
test eax, eax
jne 0x4174fa
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x5c]
mov byte [esp + ecx + 0x5c], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4174e0
sub eax, edx
push eax
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x2c]
call fcn.00415820
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00415720
push 1
push 0x4983c0
mov ecx, esi
call fcn.00415820
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jb 0x4176d9
mov edx, dword [esp + 0x28]
push edx
call fcn.00477a90
add esp, 4
jmp 0x4176d9
mov eax, dword [esp + 0x478]
mov esi, 0x10
cmp dword [esp + 0x48c], esi
mov dword [esp + 0x18], ebx
jae 0x417563
lea eax, [esp + 0x478]
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x4175c0
cmp dword [esp + 0x58], esi
jb 0x41758d
mov edx, dword [esp + 0x44]
push edx
call fcn.00477a90
add esp, 4
cmp dword [esp + 0x48c], esi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x4175b6
mov eax, dword [esp + 0x478]
push eax
call fcn.00477a90
add esp, 4
mov eax, 1
jmp 0x417717
push 0x3ff
lea ecx, [esp + 0x61]
push ebx
push ecx
xor edi, edi
mov byte [esp + 0x68], bl
call fcn.00477c40
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0x400
lea edx, [esp + 0x60]
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4176c9
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x47c]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.00403fb0
push 1
push 0x4983bc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x474], 3
call fcn.00415820
lea eax, [esp + 0x5c]
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x417640
sub eax, esi
push eax
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x2c]
call fcn.00415820
mov eax, dword [esp + 0x1c]
push eax
push ebp
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x50]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00403fb0
mov ecx, dword [esp + 0x38]
call fcn.004171f0
add edi, 1
cmp dword [esp + 0x3c], 0x10
mov byte [esp + 0x46c], 1
jb 0x4176ab
mov eax, dword [esp + 0x28]
push eax
call fcn.00477a90
add esp, 4
mov edx, dword [esp + 0x18]
push 0x400
lea ecx, [esp + 0x60]
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4175f7
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x10
cmp dword [esp + 0x58], esi
jb 0x4176ec
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00477a90
add esp, 4
cmp dword [esp + 0x48c], esi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x417715
mov edx, dword [esp + 0x478]
push edx
call fcn.00477a90
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.00477bf8
add esp, 0x45c
ret 0x24