Function at 0x45a9df
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28c
mov eax, 0x5ac745
call fcn.00588aeb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x294], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x290], eax
mov eax, dword [ebp + 0x14]
push 0x5d0398
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp + 0x18]
push str.DetectDevice2K
push 5
mov dword [ebp - 0x298], eax
call fcn.00423f75
xor ecx, ecx
mov esi, ecx
xor eax, eax
add esp, 0xc
mov bl, cl
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ecx
mov word [ebp - 0x230], ax
mov dword [ebp - 4], ecx
call fcn.0045b9bf
test eax, eax
jne 0x45aa67
xor bl, bl
jmp 0x45adae
xor ecx, ecx
mov eax, ecx
mov dword [ebp - 0x27c], eax
jmp 0x45aa75
xor ecx, ecx
cmp eax, 0x14
jae 0x45adae
push 2
push ecx
push ecx
push dword [eax + 0x62f9b8]
call dword [0x63a924]
mov edi, eax
mov dword [ebp - 0x274], edi
cmp edi, 0xffffffff
je 0x45ad97
xor eax, eax
jmp 0x45ad82
lea ecx, [ebp - 0x24c]
push ecx
push eax
push edi
mov dword [ebp - 0x24c], 0x1c
call dword [0x63a928]
test eax, eax
je 0x45ad90
lea eax, [ebp - 0x270]
push eax
xor eax, eax
push eax
push eax
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [0x63a92c]
push dword [ebp - 0x270]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x45ad75
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x270]
lea eax, [ebp - 0x284]
push edi
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x274]
call dword [0x63a92c]
test eax, eax
je 0x45ad64
xor ebx, ebx
inc ebx
xor eax, eax
cmp dword [ebp - 0x284], 7
jne 0x45ab8f
mov ebx, edi
cmp word [edi], ax
je 0x45ab8d
mov esi, eax
mov eax, dword [ebp - 0x270]
and eax, 0xfffffffe
sub eax, ebx
add eax, edi
sar eax, 1
push eax
push ebx
inc esi
call fcn.0058b10d
lea ebx, [ebx + eax*2]
add ebx, 2
xor eax, eax
pop ecx
pop ecx
cmp word [ebx], ax
jne 0x45ab53
mov dword [ebp - 0x268], esi
mov esi, dword [ebp - 0x26c]
mov ebx, dword [ebp - 0x268]
jmp 0x45ab8f
mov ebx, eax
push 0xa
push str.WSDPRINT_
mov dword [ebp - 0x268], eax
call fcn.0058b10d
push eax
push str.WSDPRINT_
push edi
call fcn.0058b693
add esp, 0x14
test eax, eax
je 0x45abdc
lea eax, [ebp - 0x26c]
push eax
mov eax, dword [ebp - 0x270]
push ebx
shr eax, 1
push eax
push edi
push dword [ebp - 0x278]
call fcn.0045b060
mov esi, dword [ebp - 0x26c]
add esp, 0x14
jmp 0x45abf7
push edi
push str.Skip_DetectHardwareID_Function._HardwareID_is___1_s___n
push str.DetectDevice2K
push 5
call fcn.00423f75
mov eax, dword [ebp - 0x268]
add esp, 0x10
test eax, eax
je 0x45ad56
push str.PRINTER
lea ecx, [esi + 0x18]
call fcn.0041ee46
test eax, eax
jne 0x45ad56
push 0x20019
push 1
push eax
mov word [ebp - 0x218], ax
push 1
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x274]
call dword [0x63a930]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45ac6e
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x218]
push eax
xor eax, eax
push eax
push eax
push str.PortName
push ebx
mov dword [ebp - 0x288], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5bef10
mov ecx, esi
call fcn.0041ee46
test eax, eax
je 0x45ad56
cmp word [ebp - 0x218], 0
je 0x45ad56
lea eax, [ebp - 0x218]
push eax
call fcn.00588144
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403cef
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0045b35b
mov ebx, dword [ebp - 0x294]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00401322
xor eax, eax
push eax
push 1
lea ecx, [ebp - 0x264]
call fcn.00403a7f
mov esi, dword [ebp - 0x26c]
xor edx, edx
cmp dword [ebx + 0x10], edx
jne 0x45ad3b
mov eax, dword [ebp - 0x28c]
cmp eax, esi
je 0x45ad0f
push 0xffffffffffffffff
push edx
push esi
mov ecx, eax
call fcn.00403c35
xor edx, edx
mov ecx, dword [ebp - 0x290]
lea eax, [esi + 0x58]
cmp ecx, eax
je 0x45ad25
push 0xffffffffffffffff
push edx
push eax
call fcn.00403c35
push str.MS4:_DetectDevice2K_friendlyName_is_not_found._n
push str.DetectDevice2K
push 5
call fcn.00423f75
add esp, 0xc
xor edx, edx
mov eax, dword [ebp - 0x298]
lea ecx, [ebp - 0x230]
cmp eax, ecx
je 0x45ad56
push 0xffffffffffffffff
push edx
push ecx
mov ecx, eax
call fcn.00403c35
push dword [ebp - 0x278]
call fcn.0045a969
pop ecx
mov bl, al
push edi
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x280]
mov edi, dword [ebp - 0x274]
inc eax
mov dword [ebp - 0x280], eax
test bl, bl
je 0x45aaa6
push edi
call dword [0x63a934]
mov eax, dword [ebp - 0x27c]
add eax, 4
mov dword [ebp - 0x27c], eax
test bl, bl
je 0x45aa73
push 0x5d03b4
push str.DetectDevice2K
push 5
call fcn.00423f75
add esp, 0xc
xor eax, eax
push eax
push 1
lea ecx, [ebp - 0x230]
call fcn.00403a7f
mov al, bl
call fcn.00588a9a
ret