Function at 0x4092d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447f6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x528
push ebx
push esi
push edi
mov dword [esp + 0x20], 1
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x430]
rep stosd dword es:[edi], eax
push 0x44c080
mov ecx, 0x3f
lea edi, [esp + 0x334]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
lea eax, [esp + 0x438]
push 0x44bbe8
xor ebx, ebx
push eax
mov dword [esp + 0x54c], ebx
call edi
push str.LPTENUM
push esi
lea ecx, [esp + 0x348]
push 0x44bbe8
push ecx
call edi
add esp, 0x20
push ebx
push 0x44bfb0
lea ecx, [esp + 0x1c]
call fcn.00401a70
lea edx, [esp + 0xc]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x33c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409576
mov edx, dword [esp + 0xc]
mov ecx, 0x3f
lea edi, [esp + 0x30]
push 0xfc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
push ecx
push ebx
mov dword [esp + 0x24], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edx
call ebx
test eax, eax
jne 0x40952c
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0x20019
xor esi, esi
push esi
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409505
mov ecx, 0x3f
lea edi, [esp + 0x130]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov edi, 0xfc
push edi
lea eax, [esp + 0x134]
push eax
push esi
push ecx
call ebx
test eax, eax
jne 0x4094bf
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push 0x20019
push 0
lea eax, [esp + 0x13c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409492
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push str.DeviceDesc
push edx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40949a
lea eax, [esp + 0x230]
push eax
call fcn.004081e0
add esp, 4
mov dword [esp + 0x2c], eax
jmp 0x40949a
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
push edi
lea edx, [esp + 0x134]
push edx
inc esi
push esi
push eax
call ebx
test eax, eax
je 0x409425
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4094f8
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4094d0
sub eax, edx
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401b10
push 1
push 0x44b648
lea ecx, [esp + 0x1c]
call fcn.00401b10
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409509
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
push 0xfc
lea ecx, [esp + 0x34]
inc eax
push ecx
push eax
push edx
mov dword [esp + 0x28], eax
call ebx
test eax, eax
je 0x4093d4
mov edi, dword [esp + 0x14]
push 0x44bfb0
push edi
call fcn.0042f5a3
add esp, 8
test eax, eax
je 0x409567
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.004014e0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call fcn.00406610
add esp, 8
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x40957a
mov dword [esp + 0x20], ebx
push ebx
push 0x44bfb0
lea ecx, [esp + 0x1c]
call fcn.00401a70
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push str.SystemCurrentControlSetServicesClassPrinter
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409751
mov ecx, 0x3f
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
push 0xfc
lea eax, [esp + 0x34]
push eax
xor edi, edi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4096c9
jmp 0x4095e0
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40966c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push str.DriverDesc
push edx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], 0xfc
call esi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push str.DriverDesc
push eax
call esi
test eax, eax
jne 0x40966c
lea ecx, [esp + 0x230]
push ecx
call fcn.004081e0
add esp, 4
mov ebx, eax
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4096aa
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409682
sub eax, edx
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401b10
push 1
push 0x44b648
lea ecx, [esp + 0x1c]
call fcn.00401b10
mov edx, dword [esp + 0xc]
push 0xfc
lea ecx, [esp + 0x34]
push ecx
inc edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4095e0
mov esi, dword [esp + 0x14]
push 0x44bfb0
push esi
call fcn.0042f5a3
add esp, 8
test eax, eax
je 0x409751
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
add esi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov ebx, esp
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x40970c
cmp eax, dword [esi]
jne 0x40970c
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40973f
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x409721
jmp fcn.00401260
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
push eax
call fcn.00406610
add esp, 8
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
push esi
push 0x44bfb0
lea ecx, [esp + 0x1c]
call fcn.00401a70
lea edx, [esp + 0xc]
push edx
push 0x20019
push esi
push str.EnumUSBPRINT
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4099bf
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ecx, 0x3f
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
push 0xfc
lea eax, [esp + 0x34]
push eax
push esi
push ecx
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x40991c
jmp 0x4097c7
xor esi, esi
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x20019
push esi
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4098f5
mov ecx, 0x3f
lea edi, [esp + 0x130]
rep stosd dword es:[edi], eax
mov edi, 0xfc
push edi
lea edx, [esp + 0x134]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
jne 0x4098b0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x13c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409883
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push str.DeviceDesc
push ecx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40988b
lea edx, [esp + 0x230]
push edx
call fcn.004081e0
add esp, 4
mov dword [esp + 0x2c], eax
jmp 0x40988b
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x134]
push ecx
inc esi
push esi
push edx
call ebx
test eax, eax
je 0x409816
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4098e8
lea eax, [esp + 0x30]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4098c0
sub eax, edx
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401b10
push 1
push 0x44b648
lea ecx, [esp + 0x1c]
call fcn.00401b10
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4098f9
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x18]
push 0xfc
inc eax
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
push eax
call ebx
test eax, eax
je 0x4097c5
mov ebx, dword [esp + 0x14]
push 0x44bfb0
push ebx
call fcn.0042f5a3
add esp, 8
test eax, eax
je 0x4099ae
push ecx
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
lea esi, [ebx - 0x10]
mov dword [esp + 0x1c], esp
mov dword [esp + 0x1c], esp
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x409965
cmp eax, dword [esi]
jne 0x409965
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x409998
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x40997a
jmp fcn.00401260
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
add eax, 0x10
mov dword [ecx], eax
mov edx, dword [esp + 0x10]
push edx
call fcn.00406610
add esp, 8
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x20]
jmp 0x4099c3
mov ebx, dword [esp + 0x14]
lea eax, [ebx - 0x10]
mov dword [esp + 0x53c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4099e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x534]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret