Function at 0x444110
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [ebp + 8]
push esi
xor esi, esi
xor ecx, ecx
push edi
mov edi, dword [eax + 4]
mov edx, 1
cmp edi, edx
sete cl
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], edx
mov edi, ecx
mov ecx, dword [eax + 8]
cmp ecx, esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ecx
je 0x44432e
cmp ecx, edx
push ebx
jne 0x444165
mov ebx, dword [eax + 0xc]
xor ecx, ecx
cmp ebx, edx
setne cl
mov dword [ebp - 8], ecx
jmp 0x44417d
cmp ecx, 2
jne 0x444172
mov edx, dword [eax + 0xc]
mov dword [ebp - 8], edx
jmp 0x44417d
cmp ecx, 3
jne 0x44417d
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
cmp edi, esi
je 0x444185
push 2
jmp 0x444187
push 8
push esi
push esi
push 0x48e904
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
cmp edi, 0xffffffff
je 0x44432d
lea ecx, [ebp - 0x3b0]
push ecx
push edi
mov dword [ebp - 0x3b0], 0x11f
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailA]
test eax, eax
je 0x444326
lea edx, [ebp - 0x38]
push edx
push esi
push edi
mov dword [ebp - 0x38], 0x1c
mov dword [ebp + 8], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x444326
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x24]
push 0
push 0
push 0xc8
lea eax, [ebp - 0x478]
push eax
push ecx
xor bl, bl
call dword [0x49b6f0]
test eax, eax
jne 0x4443e5
lea edx, [ebp - 0xc]
push edx
push 0xc8
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 1
lea edx, [ebp - 0x38]
push edx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x444245
lea eax, [ebp - 0x290]
push eax
call fcn.00443560
add esp, 4
mov bl, al
neg bl
sbb bl, bl
inc bl
jmp 0x44425e
test dword [0x49a0e8], 0x10000
je 0x44425e
push str.PowerXpressUpdateRegistry:_fail_to_find_device_registry_n
call fcn.0040acd0
add esp, 4
lea ecx, [ebp - 0xc]
push ecx
push 0xc8
lea edx, [ebp - 0x1c8]
push edx
lea eax, [ebp - 0x10]
push eax
push 9
lea ecx, [ebp - 0x38]
push ecx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x444334
test bl, bl
je 0x4443e5
lea eax, [ebp - 0x1c8]
push eax
push str.SYSTEMCurrentControlSetControlClass
lea ecx, [ebp - 0x100]
push str._s_s
push ecx
call fcn.00460f01
mov eax, dword [0x49a0e8]
add esp, 0x10
test eax, 0x10000
je 0x4442d2
lea edx, [ebp - 0x100]
push edx
push str.PowerXpressUpdateRegistry:__IGPU__registry:_s_n
call fcn.0040acd0
add esp, 8
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
lea ecx, [ebp - 0x100]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44431c
push 4
lea edx, [ebp - 0x14]
push edx
push 4
push eax
mov eax, dword [ebp - 4]
push str.PXReason
push eax
call esi
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push str.PXValue
push edx
call esi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test bl, bl
jne 0x4443e5
lea edx, [ebp - 0x1c8]
push edx
push str.SYSTEMCurrentControlSetControlClass
lea eax, [ebp - 0x100]
push str._s_s
push eax
call fcn.00460f01
mov eax, dword [0x49a0e8]
add esp, 0x10
test eax, 0x10000
je 0x44437c
lea ecx, [ebp - 0x100]
push ecx
push str.PowerXpressUpdateRegistry:__DGPU__registry:_s_n
call fcn.0040acd0
add esp, 8
lea edx, [ebp - 4]
push edx
push 0x2001f
push 0
lea eax, [ebp - 0x100]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4443db
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push eax
push str.PXReason
push edx
call esi
mov ecx, dword [ebp - 4]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.PXValue
push ecx
call esi
mov eax, dword [ebp - 4]
push 4
lea edx, [ebp - 0x18]
push edx
push 4
push 0
push str.PXBlockModeSet
push eax
call esi
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x38]
inc eax
push edx
push eax
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x4441e3
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret