Function at 0x401e90
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f86c
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x124], 0
push 0x103
push 0
lea eax, [ebp - 0x123]
push eax
call fcn.004472f0
add esp, 0xc
push 0x58ae20
push str._sCompsVer.inf
lea ecx, [ebp - 0x124]
push ecx
call fcn.00447420
add esp, 0xc
mov byte [ebp - 0x24c], 0
push 0x103
push 0
lea edx, [ebp - 0x24b]
push edx
call fcn.004472f0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
push 0x104
lea ecx, [ebp - 0x24c]
push ecx
push str.Component
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24c]
push edx
lea ecx, [ebp - 0x140]
call fcn.004065c0
mov dword [ebp - 4], 0
mov byte [ebp - 0x405], 0x3d
push 1
push 0
lea eax, [ebp - 0x405]
push eax
lea ecx, [ebp - 0x140]
call fcn.00406f90
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40240c
mov ecx, dword [ebp - 0x10]
mov byte [ebp + ecx - 0x24c], 0
lea edx, [ebp - 0x24c]
push edx
call fcn.004482c0
add esp, 4
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x140]
call fcn.004079d0
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x410], edx
mov eax, dword [ebp - 0x410]
sub eax, 1
push eax
push 1
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x140]
call fcn.00406680
mov byte [ebp - 4], 1
cmp dword [ebp - 0x250], 0x10
jb 0x401ff0
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x414], edx
jmp 0x401ffc
lea eax, [ebp - 0x264]
mov dword [ebp - 0x414], eax
lea ecx, [ebp - 0x268]
push ecx
mov edx, dword [ebp - 0x414]
push edx
lea ecx, [ebp - 0x3c4]
call fcn.00407ed0
cmp dword [ebp - 0x250], 0x10
jb 0x40202c
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x41c], eax
jmp 0x402038
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x41c], ecx
lea edx, [ebp - 0x268]
push edx
mov eax, dword [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x3d4]
call fcn.00407ed0
mov ecx, dword [ebp - 0x3c4]
mov dword [ebp - 0x444], ecx
mov edx, dword [ebp - 0x3c0]
mov dword [ebp - 0x440], edx
lea eax, [ebp - 0x3cc]
push eax
lea ecx, [ebp - 0x268]
call fcn.00406630
mov ecx, dword [eax]
mov dword [ebp - 0x43c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x438], edx
mov eax, dword [ebp - 0x3d4]
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x3d0]
mov dword [ebp - 0x430], ecx
xor edx, edx
mov byte [ebp - 0x41d], dl
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x42c], ecx
movzx edx, byte [ebp - 0x41d]
push edx
movzx eax, byte [ebp - 0x41e]
push eax
push 0x44828d
mov ecx, dword [ebp - 0x440]
push ecx
mov edx, dword [ebp - 0x444]
push edx
mov eax, dword [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x3dc]
push edx
call fcn.00409ec0
add esp, 0x20
mov byte [ebp - 0x374], 0
push 0x103
push 0
lea eax, [ebp - 0x373]
push eax
call fcn.004472f0
add esp, 0xc
mov dword [ebp - 0x37c], 0x400
mov dword [ebp - 0x378], 0
lea ecx, [ebp - 0x26c]
push ecx
push 0x20019
push 0
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402384
mov dword [ebp - 0x380], 0
lea edx, [ebp - 0x37c]
push edx
lea eax, [ebp - 0x374]
push eax
lea ecx, [ebp - 0x380]
push ecx
push 0
push str.ForbidInstall
mov edx, dword [ebp - 0x26c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x378], eax
cmp dword [ebp - 0x378], 0
jne 0x402344
lea eax, [ebp - 0x374]
push eax
lea ecx, [ebp - 0x3a0]
call fcn.004065c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x45d]
mov dword [ebp - 0x45c], ecx
push 0
push 0
lea ecx, [ebp - 0x3bc]
call fcn.004070a0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x3bc]
push edx
lea eax, [ebp - 0x3a0]
push eax
call fcn.00402470
add esp, 8
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x464], ecx
cmp dword [ebp - 0x250], 0x10
jb 0x40220f
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x4b8], edx
jmp 0x40221b
lea eax, [ebp - 0x264]
mov dword [ebp - 0x4b8], eax
mov ecx, dword [ebp - 0x464]
push ecx
push 0
mov edx, dword [ebp - 0x4b8]
push edx
lea ecx, [ebp - 0x3bc]
call fcn.00406f90
mov dword [ebp - 0x384], eax
cmp dword [ebp - 0x384], 0
jl 0x4022b8
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3e0], 1
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x3bc]
call fcn.004070a0
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x3a0]
call fcn.004070a0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x268]
call fcn.004070a0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x140]
call fcn.004070a0
mov eax, dword [ebp - 0x3e0]
jmp 0x40244a
mov dword [ebp - 0x3e4], 0
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x3bc]
call fcn.004070a0
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x3a0]
call fcn.004070a0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x268]
call fcn.004070a0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x140]
call fcn.004070a0
mov eax, dword [ebp - 0x3e4]
jmp 0x40244a
mov dword [ebp - 0x3e8], 0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x268]
call fcn.004070a0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x140]
call fcn.004070a0
mov eax, dword [ebp - 0x3e8]
jmp 0x40244a
mov dword [ebp - 0x3ec], 0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x268]
call fcn.004070a0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x140]
call fcn.004070a0
mov eax, dword [ebp - 0x3ec]
jmp 0x40244a
mov dword [ebp - 0x3f4], 0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x140]
call fcn.004070a0
mov eax, dword [ebp - 0x3f4]
jmp 0x40244a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret