Function at 0x462c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0654
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push str.InstallUsbPrinter::GetPrinterHID
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 1
call fcn.0040a480
mov byte [ebp - 4], 2
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x462c8a
test byte [ecx + 0x1c], 1
je 0x462c8a
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cdca0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1e
call fcn.00401840
add esp, 0xc
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x4632ee
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x464], eax
mov eax, 0x5c6930
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x464]
test eax, 0xffff0000
jne 0x462cc8
movzx eax, ax
push eax
call fcn.00403020
jmp 0x462cd4
push 0
push 0x5c6930
call fcn.00403bb0
push 0x410
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 4
push 0
push eax
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x478], 0
call fcn.00571c00
add esp, 0xc
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x4632f8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x484], eax
mov eax, str.USBPRINT_
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x484]
test eax, 0xffff0000
jne 0x462d40
movzx eax, ax
push eax
call fcn.00403020
jmp 0x462d4c
push 9
push str.USBPRINT_
call fcn.00403bb0
mov byte [ebp - 4], 6
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x480], 0
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x463302
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x460], eax
mov eax, str.SYSTEMCurrentControlSetEnumUSBPRINT
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x460]
test eax, 0xffff0000
jne 0x462da2
movzx eax, ax
push eax
call fcn.00403020
jmp 0x462dae
push 0x26
push str.SYSTEMCurrentControlSetEnumUSBPRINT
call fcn.00403bb0
push 0x5c692c
lea edx, [ebp - 0x460]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x46c]
call fcn.0042af40
lea ecx, [ebp + 8]
mov byte [ebp - 4], 9
push ecx
mov edx, eax
lea ecx, [ebp - 0x470]
call fcn.00437b70
add esp, 8
mov byte [ebp - 4], 0xa
or ebx, 0xffffffff
mov edx, dword [eax]
mov edi, dword [ebp - 0x460]
lea ecx, [edx - 0x10]
lea esi, [edi - 0x10]
cmp ecx, esi
je 0x462e4c
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x462e37
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x462e37
call fcn.00403af0
mov dword [ebp - 0x45c], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x462e2c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x45c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x460], edi
jmp 0x462e4c
push dword [edx - 0xc]
lea ecx, [ebp - 0x460]
push edx
call fcn.00403bb0
mov edi, dword [ebp - 0x460]
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x470]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462e6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x46c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462e8e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x47c]
push eax
push 0x20019
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x484]
test eax, eax
jne 0x4631e1
lea eax, [ebp - 0x474]
mov dword [ebp - 0x478], 1
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x474], 0x410
push eax
lea eax, [ebp - 0x478]
push eax
push 0
push str.DeviceDesc
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4631aa
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x46330c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 0xb
test eax, 0xffff0000
jne 0x462f39
movzx eax, ax
lea ecx, [ebp - 0x46c]
push eax
call fcn.00403020
jmp 0x462f64
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462f42
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x46c]
call fcn.00403bb0
lea edx, [ebp - 0x46c]
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0xc]
call fcn.004080c0
test al, al
je 0x463189
push 0x410
lea eax, [ebp - 0x420]
mov dword [ebp - 0x478], 7
push 0
push eax
mov dword [ebp - 0x474], 0x410
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x478]
push eax
push 0
push str.HardwareID
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x463189
mov dword [ebp - 0x470], eax
nop
lea ecx, [ebp - 0x420]
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x468]
call fcn.00403320
mov byte [ebp - 4], 0xd
xor ebx, ebx
mov eax, dword [esi - 0xc]
test eax, eax
cmovns ebx, eax
mov eax, dword [ebp - 0x468]
cmp ebx, dword [eax - 0xc]
jl 0x463021
lea ecx, [eax - 0x10]
call fcn.00403af0
add eax, 0x10
mov dword [ebp - 0x45c], eax
jmp 0x463056
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x463031
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x46303d
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push ebx
push dword [ebp - 0x468]
lea ecx, [ebp - 0x45c]
call fcn.00403d50
mov eax, dword [ebp - 0x45c]
mov edx, esi
mov ecx, eax
nop word [eax + eax]
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x463086
test bx, bx
je 0x463082
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x463086
add ecx, 4
add edx, 4
test bx, bx
jne 0x463060
xor ebx, ebx
jmp 0x46308b
sbb ebx, ebx
or ebx, 1
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4630a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x468]
test ebx, ebx
je 0x4630f1
mov edx, dword [ebp - 0x470]
or ebx, 0xffffffff
inc edx
add edx, dword [eax - 0xc]
mov dword [ebp - 0x470], edx
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0xc
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4630db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x470]
cmp eax, 0x410
jb 0x462fe0
jmp 0x463189
mov ebx, dword [ebp - 0x464]
lea edx, [eax - 0x10]
add ebx, 0xfffffff0
mov dword [ebp - 0x45c], edx
cmp edx, ebx
je 0x463161
cmp dword [ebx + 0xc], 0
jl 0x46314c
mov edx, dword [edx]
cmp edx, dword [ebx]
jne 0x46314c
mov ecx, dword [ebp - 0x45c]
call fcn.00403af0
mov dword [ebp - 0x45c], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x463141
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x45c]
add eax, 0x10
mov dword [ebp - 0x464], eax
jmp 0x46315b
push dword [eax - 0xc]
lea ecx, [ebp - 0x464]
push eax
call fcn.00403bb0
mov eax, dword [ebp - 0x468]
or ebx, 0xffffffff
mov dword [ebp - 0x480], 1
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0xc
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x463189
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x46c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4631aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x480]
test edx, edx
je 0x4631e3
mov ecx, dword [0x6184f0]
push dword [ebp - 0x464]
push str.USBHARDWAREID
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
mov edx, dword [ebp - 0x480]
jmp 0x4631e3
xor edx, edx
mov byte [ebp - 0x454], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46322b
test byte [ecx + 0x1c], 1
je 0x46322b
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edx
cmovae eax, dword [0x608f54]
mov edx, 0x5cdca0
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1f
call fcn.004018a0
add esp, 0x10
mov byte [ebp - 4], 6
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x463246
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x463261
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x464]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x463282
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x458]
call fcn.0040a570
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4632ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4632ca
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x480]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004013a0
push 0x80004005
call fcn.004013a0
push 0x80004005
call fcn.004013a0
push 0x80004005
call fcn.004013a0
int3