Function at 0x4624f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a058f
mov eax, dword fs:[0]
push eax
sub esp, 0x484
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
mov edi, dword [ebp + 8]
xor ebx, ebx
push ecx
push str.InstallUsbPrinter::GetUSBPRINTList
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x490], edi
mov dword [ebp - 0x45c], ebx
call fcn.0040a480
mov dword [ebp - 4], ebx
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x462587
test byte [esi + 0x1c], 1
je 0x462587
cmp dword [0x608f68], 8
lea ecx, [ebx + 0x1b]
mov eax, 0x608f54
mov edx, 0x5cdca0
cmovae eax, dword [0x608f54]
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00401840
mov esi, dword [0x608f30]
add esp, 0xc
push 0x410
lea eax, [ebp - 0x420]
mov dword [ebp - 0x474], 0
push 0
push eax
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x464], 0
call fcn.00571c00
add esp, 0xc
test edi, edi
jne 0x462606
mov byte [ebp - 0x454], 1
cmp esi, 0x608f30
je 0x4625ff
test byte [esi + 0x1c], 1
je 0x4625ff
cmp dword [0x608f68], 8
lea ecx, [edi + 0x1c]
mov eax, 0x608f54
mov edx, 0x5cdca0
cmovae eax, dword [0x608f54]
push edi
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.004018a0
add esp, 0x10
xor esi, esi
jmp 0x462bc6
lea eax, [ebp - 0x474]
mov dword [ebp - 0x464], 0x410
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetEnumUSBPRINT
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x462b78
push eax
push eax
push eax
push eax
mov dword [ebp - 0x48c], eax
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push dword [ebp - 0x474]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x462b6c
mov esi, str.SYSTEMCurrentControlSetEnumUSBPRINT
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x462bf1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x460], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x460]
test esi, 0xffff0000
jne 0x4626a3
movzx eax, si
push eax
call fcn.00403020
jmp 0x4626af
push 0x26
push str.SYSTEMCurrentControlSetEnumUSBPRINT
call fcn.00403bb0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x460]
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov dword [ebp - 0x468], eax
test ecx, ecx
je 0x4626d4
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4626ea
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x462bf1
mov eax, dword [ecx]
call dword [eax + 0xc]
push 1
push 0x5c692c
push dword [esi - 0xc]
add eax, 0x10
lea ecx, [ebp - 0x480]
or ebx, 1
mov dword [ebp - 0x480], eax
mov edx, esi
mov dword [ebp - 0x45c], ebx
mov dword [ebp - 0x46c], ebx
call fcn.00416280
add esp, 0xc
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x480]
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov dword [ebp - 0x47c], eax
test ecx, ecx
je 0x462746
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x46275c
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x462bf1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x420]
or ebx, 2
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x45c], ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462780
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
mov edx, esi
push ecx
push eax
push dword [esi - 0xc]
lea ecx, [ebp - 0x484]
call fcn.00416280
mov eax, dword [ebp - 0x484]
add esp, 0xc
mov ebx, dword [ebp - 0x468]
lea edi, [eax - 0x10]
cmp edi, ebx
je 0x46280d
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4627fe
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x4627fe
mov ecx, edi
call fcn.00403af0
mov dword [ebp - 0x468], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x4627ed
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x468]
add esi, 0x10
mov dword [ebp - 0x460], esi
jmp 0x462813
push dword [eax - 0xc]
lea ecx, [ebp - 0x460]
push eax
call fcn.00403bb0
mov esi, dword [ebp - 0x460]
mov ebx, dword [ebp - 0x46c]
mov eax, ebx
and eax, 0xfffffffd
mov byte [ebp - 4], 3
mov dword [ebp - 0x45c], eax
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46283d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x47c]
and ebx, 0xfffffffc
mov dword [ebp - 0x45c], ebx
or eax, 0xffffffff
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462865
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x470]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x462b27
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x462bf1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 5
test eax, 0xffff0000
jne 0x4628c6
movzx eax, ax
lea ecx, [ebp - 0x46c]
push eax
call fcn.00403020
jmp 0x4628f2
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4628d0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x46c]
call fcn.00403bb0
push 0x410
lea eax, [ebp - 0x420]
mov dword [ebp - 0x464], 0x410
push 0
push eax
call fcn.00571c00
add esp, 0xc
mov dword [ebp - 0x468], 0
lea eax, [ebp - 0x464]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push dword [ebp - 0x470]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, dword [ebp - 0x46c]
test eax, eax
jne 0x462aff
nop
mov byte [ebp - 4], 7
mov ecx, dword [edi - 0x10]
mov dword [ebp - 0x47c], ebx
test ecx, ecx
je 0x46296c
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x462982
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x462bf1
mov eax, dword [ecx]
call dword [eax + 0xc]
push 1
push 0x5c692c
push dword [edi - 0xc]
add eax, 0x10
lea ecx, [ebp - 0x488]
or ebx, 4
mov dword [ebp - 0x488], eax
mov edx, edi
mov dword [ebp - 0x45c], ebx
call fcn.00416280
add esp, 0xc
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x488]
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x4629cf
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4629e5
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x462bf1
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x47c]
add eax, 0x10
mov dword [ebp - 0x478], eax
or ebx, 0xc
lea eax, [ebp - 0x420]
mov dword [ebp - 0x45c], ebx
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x462a10
sub eax, edx
lea ecx, [ebp - 0x478]
sar eax, 1
mov edx, esi
push eax
lea eax, [ebp - 0x420]
push eax
push dword [esi - 0xc]
call fcn.00416280
and ebx, 0xfffffffb
add esp, 0xc
mov dword [ebp - 0x45c], ebx
mov byte [ebp - 4], 9
lea edx, [esi - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462a5f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x478]
push eax
mov eax, dword [ebp - 0x490]
mov ecx, eax
push dword [eax + 8]
call fcn.0055b5b5
push 0x410
lea eax, [ebp - 0x420]
mov dword [ebp - 0x464], 0x410
push 0
push eax
call fcn.00571c00
mov byte [ebp - 4], 6
and ebx, 0xfffffff7
mov edx, dword [ebp - 0x478]
add esp, 0xc
mov dword [ebp - 0x45c], ebx
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462ac1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x468]
lea ecx, [ebp - 0x464]
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x420]
inc eax
push ecx
push eax
push dword [ebp - 0x470]
mov dword [ebp - 0x468], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x462950
mov esi, dword [ebp - 0x460]
push dword [ebp - 0x470]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x462b27
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x462b43
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x48c]
lea eax, [ebp - 0x464]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x420]
inc esi
push eax
mov dword [ebp - 0x48c], esi
push esi
jmp 0x462650
push dword [ebp - 0x474]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x454], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x462bc1
test byte [ecx + 0x1c], 1
je 0x462bc1
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
mov edx, 0x5cdca0
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1d
call fcn.004018a0
add esp, 0x10
mov esi, 1
lea ecx, [ebp - 0x458]
call fcn.0040a570
mov eax, esi
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 4
push 0x80004005
call fcn.004013a0
int3