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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x358], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x103
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x18]
lea ecx, [esp + 0x155]
push ebx
push ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x15c], bl
call fcn.10116880
add esp, 0xc
push 0x103
lea edx, [esp + 0x4d]
push ebx
push edx
mov byte [esp + 0x54], bl
call fcn.10116880
add esp, 0xc
push 0x103
lea eax, [esp + 0x25d]
push ebx
push eax
mov byte [esp + 0x264], bl
call fcn.10116880
add esp, 0xc
mov dword [esp + 0x1c], 4
cmp esi, ebx
je 0x1005a2be
mov dword [esi], ebx
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x1005a2c8
mov byte [eax], bl
push str.WebScanC
lea ecx, [esp + 0x25c]
push str.SoftwareMicroWorldComponent_s
push ecx
call fcn.1010d6a8
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 9
push ebx
lea eax, [esp + 0x264]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x44], ebx
jne 0x1005a361
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x24]
push edx
push ebx
push str.Version
push eax
mov dword [esp + 0x58], 4
mov dword [esp + 0x54], 0x104
call esi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
push ecx
push edi
push ebx
push ebx
push str.InstallDirectory
push edx
mov byte [edi], bl
call esi
test eax, eax
je 0x1005a37a
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 0x14
push ebx
push edi
call fcn.10044cc0
add esp, 8
test eax, eax
jne 0x1005a38f
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x1005a35b
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x14]
push edx
push 9
push ebx
push str.Products
push eax
call edi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x1005a388
mov eax, str.WebScanC
mov ecx, eax
call fcn.10031890
test eax, eax
jne 0x1005a479
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push 9
push ebx
push str.WebScan
push eax
call edi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x1005a479
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push str.Enabled
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], 4
call esi
test eax, eax
jne 0x1005a46a
mov edi, 1
cmp dword [esp + 0x18], edi
jne 0x1005a46a
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x4c]
push eax
push ebx
push ebx
push str.Path
push ecx
mov byte [esp + 0x60], bl
mov dword [esp + 0x3c], 0x104
call esi
test eax, eax
jne 0x1005a46a
lea edx, [esp + 0x48]
push ebx
push edx
call fcn.10044cc0
add esp, 8
cmp eax, edi
jne 0x1005a46a
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0xc]
push eax
mov byte [esp + 0x4c], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0x104
lea ecx, [esp + 0x154]
push ecx
push ebx
push edx
xor edi, edi
mov byte [esp + 0x160], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x1005a592
cmp dword [esp + 0x2c], ebx
je 0x1005a4c2
mov eax, str.Webscan
lea ecx, [esp + 0x150]
call fcn.10031890
test eax, eax
jne 0x1005a569
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 9
push ebx
lea ecx, [esp + 0x15c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x1005a569
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push str.Enabled
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], 4
call esi
test eax, eax
jne 0x1005a55e
cmp dword [esp + 0x18], 1
jne 0x1005a55e
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x4c]
push edx
push ebx
push ebx
push str.Path
push eax
mov byte [esp + 0x60], bl
mov dword [esp + 0x3c], 0x104
call esi
test eax, eax
jne 0x1005a55e
lea ecx, [esp + 0x48]
push ebx
push ecx
call fcn.10044cc0
add esp, 8
cmp eax, 1
je 0x1005a5ab
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push 0x104
lea eax, [esp + 0x154]
push eax
inc edi
push edi
push ecx
mov byte [esp + 0x160], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x1005a4a3
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
jmp 0x1005a361
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x1005a5bf
lea ecx, [esp + 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x30]
cmp edx, ebx
je 0x1005a5dc
lea eax, [esp + 0x150]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1005a5d2
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push edx
mov eax, esi
call fcn.1005a1d0
add esp, 4
cmp eax, 1
je 0x1005a601
cmp esi, ebx
je 0x1005a601
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1010d699
mov esp, ebp
pop ebp
ret 0x14