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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push esi
push edi
xor edi, edi
push 2
push edi
push edi
push 0x48e904
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 8], esi
jne 0x44279d
test dword [0x49a0e8], 0x10000
je 0x442795
push str.PowerXpressGetSetLDASupport:_fail_to_get_dev_handle
call fcn.0040acd0
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2dc]
push eax
push esi
mov dword [ebp - 0x2dc], 0x11f
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailA]
test eax, eax
jne 0x4427e1
test dword [0x49a0e8], 0x10000
je 0x4427d2
push str.PowerXpressGetSetLDASupport:_fail_to_get_device_info_list_details
call fcn.0040acd0
add esp, 4
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push edi
push esi
mov dword [ebp - 0x2c], 0x1c
mov dword [ebp - 0x10], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x442937
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
lea esp, [esp]
mov ecx, dword [ebp - 8]
push 0
push 0xc8
lea edx, [ebp - 0x1bc]
push edx
push 0
push 9
lea eax, [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x44284d
test dword [0x49a0e8], 0x10000
je 0x44284d
push str.PowerXpressGetSetLDASupport:_fail_to_get_SPDRP_DRIVER
call fcn.0040acd0
add esp, 4
lea edx, [ebp - 0x1bc]
push edx
push str.SYSTEMCurrentControlSetControlClass
lea eax, [ebp - 0xf4]
push str._s_s
push eax
call fcn.00460f01
mov eax, dword [0x49a0e8]
add esp, 0x10
test eax, 0x10000
je 0x44288d
lea ecx, [ebp - 0xf4]
push ecx
push str.PowerXpressGetSetLDASupport:_registry:_s_n
call fcn.0040acd0
add esp, 8
lea edx, [ebp - 4]
push edx
push 0x2001f
push 0
lea eax, [ebp - 0xf4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44290c
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x4428e8
mov edx, dword [ebp - 4]
push edi
push esi
lea ecx, [ebp + 0x10]
push ecx
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x442948
test dword [0x49a0e8], 0x10000
je 0x44290c
push str.PowerXpressGetSetLDASupport:_fail_to_query_registry
call fcn.0040acd0
add esp, 4
jmp 0x44290c
test eax, eax
jne 0x44290c
mov eax, dword [edi]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
push eax
push esi
push ecx
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x44296d
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x2c]
inc eax
push ecx
push eax
push edx
mov dword [ebp - 0x10], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x442810
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0xc]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 8]
push esi
mov dword [ebp - 0xc], 1
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0xc]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test dword [0x49a0e8], 0x10000
je 0x442986
push str.PowerXpressGetSetLDASupport:_fail_to_set_registry
call fcn.0040acd0
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret