Function at 0x402260
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x814
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
push eax
push 0xf003f
push 0
push str.SOFTWAREClasses
push 0x80000002
call esi
test eax, eax
jne 0x4023e2
mov edx, dword [esp + 0x830]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call esi
mov ebx, dword [sym.imp.MSVCRT.dll_strncpy]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4023aa
push 6
lea ecx, [esp + 0x28]
push str.CLSID_
push ecx
mov dword [esp + 0x24], 0x3fa
call ebx
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x2a]
lea ecx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push 0
push 0
push edx
call ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push eax
call edi
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4023aa
mov ecx, dword [esp + 0x18]
push 0x10
push str.InProcServer32
lea edx, [esp + ecx + 0x31]
push edx
call ebx
mov edx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push 0xf003f
push 0
push ecx
push edx
call esi
test eax, eax
jne 0x4023aa
lea eax, [esp + 0x18]
lea ecx, [esp + 0x424]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push 0
push eax
mov dword [esp + 0x30], 0x400
call ebp
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
push ecx
call edi
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4023aa
mov edx, dword [esp + 0x834]
lea eax, [esp + 0x424]
push edx
push eax
call fcn.00402140
add esp, 8
test eax, eax
je 0x4023aa
mov ecx, dword [esp + 0x1c]
push ecx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x814
ret
mov edx, dword [esp + 0x82c]
mov eax, dword [esp + 0x828]
push edx
push eax
call fcn.00401fc0
add esp, 8
test eax, eax
jne 0x4023ef
mov ecx, dword [esp + 0x828]
push eax
push ecx
push str.errno:0018____Setup_ActiveX_fail
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x1c]
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x814
ret
mov edx, dword [esp + 0x828]
push 0x4048e0
push edx
call fcn.004020a0
add esp, 8
test eax, eax
je 0x4023db
mov ecx, dword [esp + 0x830]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push ecx
push edx
call esi
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4023db
push 0x34
lea eax, [esp + 0x28]
push str.SoftwareMicrosoftWindowsCurrentVersionExtStats_
push eax
mov dword [esp + 0x24], 0x3cc
call ebx
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x58]
lea eax, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push 0
push 0
push ecx
call ebp
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
push edx
call edi
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4023db
mov eax, dword [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x18]
push 0xa
push str.iexplore
lea edx, [esp + ecx + 0x5f]
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call esi
test eax, eax
jne 0x402528
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
mov ebx, 4
push str.Flags
push edx
mov dword [esp + 0x30], ebx
call ebp
test eax, eax
jne 0x4024f4
cmp dword [esp + 0x14], ebx
jne 0x4024f4
mov eax, dword [esp + 0x10]
push eax
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x814
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ebx
push ecx
push ebx
push 0
push str.Flags
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x814
ret
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push eax
push 0x80000001
mov byte [esp + ecx + 0x63], 0
call esi
test eax, eax
jne 0x4025fd
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0x80000001
mov byte [esp + edx + 0x63], 0x5c
call esi
test eax, eax
jne 0x4025fd
mov ebx, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x14]
push ebx
push edx
push ebx
push eax
mov eax, dword [esp + 0x20]
push str.Count
push eax
mov dword [esp + 0x2c], 1
call esi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ebx
push ecx
push ebx
push 0
push str.Type
push edx
call esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push 0
push str.Flags
push ecx
mov dword [esp + 0x2c], ebx
call esi
xor edx, edx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], edx
lea eax, [esp + 0x24]
mov dword [esp + 0x28], edx
push 0x10
mov dword [esp + 0x30], edx
push eax
push 3
push edx
push str.Time
push ecx
mov dword [esp + 0x48], edx
call esi
mov edx, dword [esp + 0x10]
push edx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x814
ret