Function at 0x443200
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 0x443440
cmp ecx, edx
push ebx
jne 0x44325f
mov ebx, dword [eax + 0xc]
xor ecx, ecx
cmp ebx, edx
setne cl
mov dword [esp + 0x14], ecx
jmp 0x443279
cmp ecx, 2
jne 0x44326d
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], edx
jmp 0x443279
cmp ecx, 3
jne 0x443279
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], eax
cmp edi, esi
je 0x443281
push 2
jmp 0x443283
push 8
push esi
push esi
push 0x486504
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
cmp edi, 0xffffffff
je 0x44343f
lea ecx, [esp + 0x2a4]
push ecx
push edi
mov dword [esp + 0x2ac], 0x11f
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailA]
test eax, eax
je 0x443438
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 0x443438
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 [0x492150]
test eax, eax
jne 0x4434fe
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 0x443355
lea eax, [esp + 0x1dc]
push eax
call fcn.004425a0
add esp, 4
mov bl, al
neg bl
sbb bl, bl
inc bl
jmp 0x44336e
test dword [0x4910e8], 0x10000
je 0x44336e
push str.PowerXpressUpdateRegistry:_fail_to_find_device_registry_n
call fcn.0040a4a0
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 0x44344a
test bl, bl
je 0x4434fe
lea eax, [esp + 0x114]
push eax
push str.SYSTEMCurrentControlSetControlClass
lea ecx, [esp + 0x54]
push str._s_s
push ecx
call fcn.0045f139
mov eax, dword [0x4910e8]
add esp, 0x10
test eax, 0x10000
je 0x4433e0
lea edx, [esp + 0x4c]
push edx
push str.PowerXpressUpdateRegistry:__IGPU__registry:_s_n
call fcn.0040a4a0
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 0x44342d
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 0x4434fe
lea edx, [esp + 0x114]
push edx
push str.SYSTEMCurrentControlSetControlClass
lea eax, [esp + 0x54]
push str._s_s
push eax
call fcn.0045f139
mov eax, dword [0x4910e8]
add esp, 0x10
test eax, 0x10000
je 0x44348f
lea ecx, [esp + 0x4c]
push ecx
push str.PowerXpressUpdateRegistry:__DGPU__registry:_s_n
call fcn.0040a4a0
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 0x4434f3
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 0x4432f0
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x47c
ret