Function at 0x442e40
Capabilities:
Set registry value

Disassembly:
sub esp, 0x47c
mov eax, dword [esp + 0x480]
push ebp
mov ebp, dword [eax + 4]
xor ecx, ecx
push esi
xor esi, esi
mov edx, 1
cmp ebp, edx
sete cl
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], edx
mov edi, ecx
mov ecx, dword [eax + 8]
cmp ecx, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ecx
je 0x443080
cmp ecx, edx
push ebx
jne 0x442e9f
mov ebx, dword [eax + 0xc]
xor ecx, ecx
cmp ebx, edx
setne cl
mov dword [esp + 0x14], ecx
jmp 0x442eb9
cmp ecx, 2
jne 0x442ead
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], edx
jmp 0x442eb9
cmp ecx, 3
jne 0x442eb9
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], eax
cmp edi, esi
je 0x442ec1
push 2
jmp 0x442ec3
push 8
push esi
push esi
push 0x486164
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
cmp edi, 0xffffffff
je 0x44307f
lea ecx, [esp + 0x2a4]
push ecx
push edi
mov dword [esp + 0x2ac], 0x11f
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailA]
test eax, eax
je 0x443078
lea edx, [esp + 0x30]
push edx
push esi
push edi
mov dword [esp + 0x3c], 0x1c
mov dword [esp + 0x28], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x443078
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ebx, [ebx]
mov ecx, dword [esp + 0x44]
push 0
push 0
push 0xc8
lea eax, [esp + 0x3d0]
push eax
push ecx
xor bl, bl
call dword [0x491150]
test eax, eax
jne 0x44313e
lea edx, [esp + 0x18]
push edx
push 0xc8
lea eax, [esp + 0x1e4]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 1
lea edx, [esp + 0x44]
push edx
push edi
call ebp
test eax, eax
je 0x442f95
lea eax, [esp + 0x1dc]
push eax
call fcn.004421e0
add esp, 4
mov bl, al
neg bl
sbb bl, bl
inc bl
jmp 0x442fae
test dword [0x4900e8], 0x10000
je 0x442fae
push str.PowerXpressUpdateRegistry:_fail_to_find_device_registry_n
call fcn.0040aab0
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push 0xc8
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x2c]
push eax
push 9
lea ecx, [esp + 0x44]
push ecx
push edi
call ebp
mov eax, dword [esp + 0x28]
test eax, eax
je 0x44308a
test bl, bl
je 0x44313e
lea eax, [esp + 0x114]
push eax
push str.SYSTEMCurrentControlSetControlClass
lea ecx, [esp + 0x54]
push str._s_s
push ecx
call fcn.0045ebd9
mov eax, dword [0x4900e8]
add esp, 0x10
test eax, 0x10000
je 0x443020
lea edx, [esp + 0x4c]
push edx
push str.PowerXpressUpdateRegistry:__IGPU__registry:_s_n
call fcn.0040aab0
add esp, 8
lea eax, [esp + 0x10]
push eax
push 0x2001f
push 0
lea ecx, [esp + 0x58]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44306d
push 4
lea edx, [esp + 0x28]
push edx
push 4
push eax
mov eax, dword [esp + 0x20]
push str.PXReason
push eax
call esi
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.PXValue
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x47c
ret
test bl, bl
jne 0x44313e
lea edx, [esp + 0x114]
push edx
push str.SYSTEMCurrentControlSetControlClass
lea eax, [esp + 0x54]
push str._s_s
push eax
call fcn.0045ebd9
mov eax, dword [0x4900e8]
add esp, 0x10
test eax, 0x10000
je 0x4430cf
lea ecx, [esp + 0x4c]
push ecx
push str.PowerXpressUpdateRegistry:__DGPU__registry:_s_n
call fcn.0040aab0
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0x2001f
push 0
lea eax, [esp + 0x58]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x443133
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push eax
push str.PXReason
push edx
call esi
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.PXValue
push ecx
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x30]
push edx
push 4
push 0
push str.PXBlockModeSet
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x30]
inc eax
push edx
push eax
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x442f30
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x47c
ret