Function at 0x44a240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
je 0x44a25d
cmp dword [ebp + 0x10], 0
jne 0x44a264
xor eax, eax
jmp 0x44a512
push 0x7fffffff
mov eax, dword [ebp + 0xc]
push eax
call fcn.004496d0
add esp, 8
add eax, 1
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004056cd
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.004018f0
mov ecx, dword [ebp - 8]
push ecx
call fcn.004491e0
add esp, 4
push 0x7fffffff
push str.SYSTEMCurrentControlSetControlDeviceClasses
call fcn.004496d0
add esp, 8
mov esi, eax
push 0x7fffffff
mov edx, dword [ebp + 8]
push edx
call fcn.004496d0
add esp, 8
add esi, eax
push 0x7fffffff
mov eax, dword [ebp - 8]
push eax
call fcn.004496d0
add esp, 8
add esi, eax
push 0x7fffffff
push 0x45c36c
call fcn.004496d0
add esp, 8
add esi, eax
push 0x7fffffff
push str.Control
call fcn.004496d0
add esp, 8
add esi, eax
push 0x7fffffff
push str.Device_Parameters
call fcn.004496d0
add esp, 8
lea ecx, [esi + eax + 0xa]
mov dword [ebp - 0x10], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004056cd
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
push str.SYSTEMCurrentControlSetControlDeviceClasses
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004018f0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004018c0
add esp, 8
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004018c0
add esp, 8
push 0x45c36c
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004018c0
add esp, 8
push str.Control
mov edx, dword [ebp - 0xc]
push edx
call fcn.004018c0
add esp, 8
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44a424
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.Linked
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44a40d
cmp dword [ebp - 0x1c], 0
je 0x44a40d
mov dword [ebp - 0x40], 1
jmp 0x44a414
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x44a4df
mov dword [ebp - 0x14], 0
push str.SYSTEMCurrentControlSetControlDeviceClasses
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004018f0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004018c0
add esp, 8
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004018c0
add esp, 8
push 0x45c36c
mov edx, dword [ebp - 0xc]
push edx
call fcn.004018c0
add esp, 8
push str.Device_Parameters
mov eax, dword [ebp - 0xc]
push eax
call fcn.004018c0
add esp, 8
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp - 0xc]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44a4df
mov dword [ebp - 0x28], 4
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
push str.Port_Number
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x44a4f7
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.004056d8
add esp, 4
cmp dword [ebp - 8], 0
je 0x44a50f
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004056d8
add esp, 4
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret 0xc