Function at 0x45bac0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28c
mov eax, 0x5b373f
call fcn.0058f792
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 0x5d6450
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp + 0x18]
push str.DetectDevice2K
push 5
mov dword [ebp - 0x298], eax
call fcn.00424dad
xor ecx, ecx
mov dword [ebp - 0x21c], 7
mov esi, ecx
mov dword [ebp - 0x220], ecx
xor eax, eax
mov dword [ebp - 0x26c], esi
add esp, 0xc
mov word [ebp - 0x230], ax
mov bl, cl
mov dword [ebp - 4], ecx
call fcn.0045caa6
test eax, eax
jne 0x45bb48
xor bl, bl
jmp 0x45be8f
xor ecx, ecx
mov eax, ecx
mov dword [ebp - 0x27c], eax
jmp 0x45bb56
xor ecx, ecx
cmp eax, 0x14
jae 0x45be8f
push 2
push ecx
push ecx
push dword [eax + 0x636110]
call dword [0x641a5c]
mov edi, eax
mov dword [ebp - 0x274], edi
cmp edi, 0xffffffff
je 0x45be78
xor eax, eax
jmp 0x45be63
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0x1c
push ecx
push eax
push edi
call dword [0x641a60]
test eax, eax
je 0x45be71
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 [0x641a64]
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 0x45be56
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 [0x641a64]
test eax, eax
je 0x45be45
xor ebx, ebx
xor eax, eax
inc ebx
cmp dword [ebp - 0x284], 7
jne 0x45bc70
mov ebx, edi
cmp word [edi], ax
je 0x45bc6e
mov esi, eax
mov eax, dword [ebp - 0x270]
inc esi
and eax, 0xfffffffe
sub eax, ebx
add eax, edi
sar eax, 1
push eax
push ebx
call fcn.00591dbe
pop ecx
pop ecx
lea ebx, [ebx + eax*2]
xor eax, eax
add ebx, 2
cmp word [ebx], ax
jne 0x45bc34
mov dword [ebp - 0x268], esi
mov esi, dword [ebp - 0x26c]
mov ebx, dword [ebp - 0x268]
jmp 0x45bc70
mov ebx, eax
push 0xa
push str.WSDPRINT_
mov dword [ebp - 0x268], eax
call fcn.00591dbe
push eax
push str.WSDPRINT_
push edi
call fcn.00592342
add esp, 0x14
test eax, eax
je 0x45bcbd
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.0045c141
mov esi, dword [ebp - 0x26c]
add esp, 0x14
jmp 0x45bcd8
push edi
push str.Skip_DetectHardwareID_Function._HardwareID_is___1_s___n
push str.DetectDevice2K
push 5
call fcn.00424dad
mov eax, dword [ebp - 0x268]
add esp, 0x10
test eax, eax
je 0x45be37
push str.PRINTER
lea ecx, [esi + 0x18]
call fcn.0041fdbb
test eax, eax
jne 0x45be37
push 0x20019
push 1
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x24c]
push 1
push eax
push dword [ebp - 0x274]
call dword [0x641a68]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45bd4f
lea eax, [ebp - 0x288]
mov dword [ebp - 0x288], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
xor eax, eax
push eax
push eax
push str.PortName
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5c4f10
mov ecx, esi
call fcn.0041fdbb
test eax, eax
je 0x45be37
cmp word [ebp - 0x218], 0
je 0x45be37
lea eax, [ebp - 0x218]
push eax
call fcn.0058edd4
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00404be0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0045c43e
mov ebx, dword [ebp - 0x294]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00401e90
xor eax, eax
lea ecx, [ebp - 0x264]
push eax
push 1
call fcn.00404970
mov esi, dword [ebp - 0x26c]
xor edx, edx
cmp dword [ebx + 0x10], edx
jne 0x45be1c
mov eax, dword [ebp - 0x28c]
cmp eax, esi
je 0x45bdf0
push 0xffffffffffffffff
push edx
push esi
mov ecx, eax
call fcn.00404b26
xor edx, edx
mov ecx, dword [ebp - 0x290]
lea eax, [esi + 0x58]
cmp ecx, eax
je 0x45be06
push 0xffffffffffffffff
push edx
push eax
call fcn.00404b26
push str.MS4:_DetectDevice2K_friendlyName_is_not_found._n
push str.DetectDevice2K
push 5
call fcn.00424dad
add esp, 0xc
xor edx, edx
mov eax, dword [ebp - 0x298]
lea ecx, [ebp - 0x230]
cmp eax, ecx
je 0x45be37
push 0xffffffffffffffff
push edx
push ecx
mov ecx, eax
call fcn.00404b26
push dword [ebp - 0x278]
call fcn.0045ba4a
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 0x45bb87
push edi
call dword [0x641a6c]
mov eax, dword [ebp - 0x27c]
add eax, 4
mov dword [ebp - 0x27c], eax
test bl, bl
je 0x45bb54
push 0x5d646c
push str.DetectDevice2K
push 5
call fcn.00424dad
add esp, 0xc
lea ecx, [ebp - 0x230]
xor eax, eax
push eax
push 1
call fcn.00404970
mov al, bl
call fcn.0058f741
ret