Function at 0x449fb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
or eax, 0xffffffff
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0xc], eax
je 0x44a225
push esi
push edi
mov eax, ebp
call fcn.004354e0
mov esi, eax
add esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
add esp, 4
cmp esi, 0x7fffffff
mov edi, eax
ja 0x44a008
mov eax, ebp
mov edx, esi
mov ecx, edi
call fcn.00402840
cmp edi, ebx
mov eax, edi
je 0x44a033
cmp word [edi], bx
je 0x44a033
mov esi, dword [sym.imp.USER32.dll_CharNextW]
lea esp, [esp]
cmp word [eax], 0x5c
jne 0x44a02b
mov word [eax], 0x23
push eax
call esi
cmp word [eax], bx
jne 0x44a020
mov eax, edi
call fcn.004354e0
mov esi, eax
mov eax, str.28d78fad_5a12_11d1_ae5b_0000f803a8c2
call fcn.004354e0
add esi, eax
mov eax, str.Device_Parameters
call fcn.004354e0
add esi, eax
mov eax, str.Control
call fcn.004354e0
add esi, eax
mov eax, 0x4aad98
call fcn.004354e0
add esi, eax
mov eax, str.SYSTEMCurrentControlSetControlDeviceClasses
call fcn.004354e0
lea ebp, [esi + eax + 5]
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
add esp, 4
cmp ebp, 0x7fffffff
mov esi, eax
ja 0x44a0ad
mov eax, str.SYSTEMCurrentControlSetControlDeviceClasses
mov edx, ebp
mov ecx, esi
call fcn.00402840
push str.28d78fad_5a12_11d1_ae5b_0000f803a8c2
mov eax, esi
call fcn.00430470
push edi
mov eax, esi
call fcn.00430470
push 0x4aad98
mov eax, esi
call fcn.00430470
push str.Control
mov eax, esi
call fcn.00430470
add esp, 0x10
lea eax, [esp + 0x24]
push eax
push 0x20019
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44a13d
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push str.Linked
push ecx
mov dword [esp + 0x30], 4
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44a130
cmp dword [esp + 0x10], ebx
je 0x44a130
lea ebx, [eax + 1]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44a158
push str.28d78fad_5a12_11d1_ae5b_0000f803a8c2
push str.28d78fad_5a12_11d1_ae5b_0000f803a8c2
call fcn.0047a268
add esp, 8
mov ebx, eax
neg ebx
sbb ebx, ebx
add ebx, 1
test ebx, ebx
je 0x44a205
cmp ebp, 0x7fffffff
ja 0x44a176
mov eax, str.SYSTEMCurrentControlSetControlDeviceClasses
mov edx, ebp
mov ecx, esi
call fcn.00402840
push str.28d78fad_5a12_11d1_ae5b_0000f803a8c2
mov eax, esi
call fcn.00430470
push edi
mov eax, esi
call fcn.00430470
push 0x4aad98
mov eax, esi
call fcn.00430470
push str.Device_Parameters
mov eax, esi
call fcn.00430470
add esp, 0x10
lea eax, [esp + 0x24]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44a205
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
push eax
push 0
push str.Port_Number
push ecx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44a1fa
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x44a212
push esi
call fcn.0045505b
add esp, 4
test edi, edi
je 0x44a21f
push edi
call fcn.0045505b
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret