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

Disassembly:
sub esp, 0x2d8
push ebp
push esi
xor esi, esi
push 2
push esi
push esi
push 0x485fbc
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x440b7c
test dword [0x4900e8], 0x10000
je 0x440b71
push str.PowerXpressGetSetLDASupport:_fail_to_get_dev_handle
call fcn.0040aab0
add esp, 4
pop esi
xor eax, eax
pop ebp
add esp, 0x2d8
ret
lea eax, [esp + 0x1c0]
push eax
push ebp
mov dword [esp + 0x1c8], 0x11f
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailA]
test eax, eax
jne 0x440bc5
test dword [0x4900e8], 0x10000
je 0x440bb3
push str.PowerXpressGetSetLDASupport:_fail_to_get_device_info_list_details
call fcn.0040aab0
add esp, 4
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop esi
xor eax, eax
pop ebp
add esp, 0x2d8
ret
push ebx
push edi
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebp
mov dword [esp + 0x28], 0x1c
mov dword [esp + 0x24], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x440d33
mov esi, dword [esp + 0x2fc]
mov edi, dword [esp + 0x2f8]
mov ebx, dword [esp + 0x2f0]
lea ecx, [ecx]
push 0
push 0xc8
lea edx, [esp + 0x108]
push edx
push 0
push 9
lea eax, [esp + 0x30]
push eax
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x440c3c
test dword [0x4900e8], 0x10000
je 0x440c3c
push str.PowerXpressGetSetLDASupport:_fail_to_get_SPDRP_DRIVER
call fcn.0040aab0
add esp, 4
lea ecx, [esp + 0x100]
push ecx
push str.SYSTEMCurrentControlSetControlClass
lea edx, [esp + 0x40]
push str._s_s
push edx
call fcn.0045e6a9
mov eax, dword [0x4900e8]
add esp, 0x10
test eax, 0x10000
je 0x440c79
lea eax, [esp + 0x38]
push eax
push str.PowerXpressGetSetLDASupport:_registry:_s_n
call fcn.0040aab0
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
lea edx, [esp + 0x44]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x440d0a
mov eax, dword [esp + 0x2ec]
cmp eax, 1
jne 0x440ce0
mov ecx, dword [esp + 0x10]
push edi
push esi
lea eax, [esp + 0x2fc]
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x440d49
test dword [0x4900e8], 0x10000
je 0x440d0a
push str.PowerXpressGetSetLDASupport:_fail_to_query_registry
call fcn.0040aab0
add esp, 4
jmp 0x440d0a
test eax, eax
jne 0x440d0a
mov edx, dword [edi]
mov eax, dword [esp + 0x2f4]
mov ecx, dword [esp + 0x10]
push edx
push esi
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x440d5e
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
inc eax
push ecx
push eax
push ebp
mov dword [esp + 0x24], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x440c00
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x14]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x2d8
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 1
jmp 0x440d33
test dword [0x4900e8], 0x10000
je 0x440d77
push str.PowerXpressGetSetLDASupport:_fail_to_set_registry
call fcn.0040aab0
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x2d8
ret