Function at 0x441740
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 0x486504
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x44178c
test dword [0x4910e8], 0x10000
je 0x441781
push str.PowerXpressGetSetLDASupport:_fail_to_get_dev_handle
call fcn.0040a4a0
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 0x4417d5
test dword [0x4910e8], 0x10000
je 0x4417c3
push str.PowerXpressGetSetLDASupport:_fail_to_get_device_info_list_details
call fcn.0040a4a0
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 0x441943
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 0x44184c
test dword [0x4910e8], 0x10000
je 0x44184c
push str.PowerXpressGetSetLDASupport:_fail_to_get_SPDRP_DRIVER
call fcn.0040a4a0
add esp, 4
lea ecx, [esp + 0x100]
push ecx
push str.SYSTEMCurrentControlSetControlClass
lea edx, [esp + 0x40]
push str._s_s
push edx
call fcn.0045f139
mov eax, dword [0x4910e8]
add esp, 0x10
test eax, 0x10000
je 0x441889
lea eax, [esp + 0x38]
push eax
push str.PowerXpressGetSetLDASupport:_registry:_s_n
call fcn.0040a4a0
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 0x44191a
mov eax, dword [esp + 0x2ec]
cmp eax, 1
jne 0x4418f0
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 0x441959
test dword [0x4910e8], 0x10000
je 0x44191a
push str.PowerXpressGetSetLDASupport:_fail_to_query_registry
call fcn.0040a4a0
add esp, 4
jmp 0x44191a
test eax, eax
jne 0x44191a
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 0x44196e
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 0x441810
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 0x441943
test dword [0x4910e8], 0x10000
je 0x441987
push str.PowerXpressGetSetLDASupport:_fail_to_set_registry
call fcn.0040a4a0
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