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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ab84
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe88
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0xff
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x44], 0x64
mov dword [ebp - 0x2c], 0x400
mov dword [ebp - 0x48], str.SYSTEMCurrentControlSetEnum
mov dword [ebp - 0x24], str.SYSTEMCurrentControlSetControlPrintPrinters
mov byte [ebp - 0x268], 0
mov byte [ebp - 0xa90], 0
mov edi, dword [ebp + 8]
test edi, edi
jne 0x463bb3
lea eax, [edi - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 0x400
ja 0x46430a
cmp dword [eax*4 + 0x576170], 0
jne 0x463be1
mov eax, 0xffffff9a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x30]
push eax
push str.SYSTEMCurrentControlSetControlPrintPrinters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x463c0f
mov eax, 0xffffff92
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x34]
mov eax, ecx
inc ecx
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x44]
push ecx
lea edx, [ebp - 0xa90]
push edx
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4642ea
lea eax, [ebp - 0xa90]
call fcn.004635d0
mov ecx, edi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x463c70
test dl, dl
je 0x463c6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x463c70
add eax, 2
add ecx, 2
test dl, dl
jne 0x463c50
xor eax, eax
jmp 0x463c75
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x463c16
mov ecx, dword [ebp - 0x24]
push ecx
push 0x400
lea edx, [ebp - 0x690]
push edx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push 0x5394c4
push 0x400
lea eax, [ebp - 0x690]
push eax
mov esi, dword [sym.imp.MSVCR100.dll_strcat_s]
call esi
add esp, 0xc
push edi
push 0x400
lea ecx, [ebp - 0x690]
push ecx
call esi
add esp, 0xc
mov byte [ebp - 0xa90], 0
lea edx, [ebp - 0x38]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x690]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x463cf1
mov dword [ebp - 0x14], 0xffffffff
jmp 0x463d6d
push str.Port
lea edi, [ebp - 0x38]
lea ebx, [ebp - 0xa90]
call fcn.00463610
add esp, 4
mov dword [ebp - 0x14], eax
cmp eax, 7
jle 0x463d6d
mov eax, ebx
lea ecx, [ebp - 0xa0]
call fcn.0040f980
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
push ecx
call fcn.0045e7d0
add esp, 4
mov bl, al
mov byte [ebp - 4], 0
lea esi, [ebp - 0xa0]
call fcn.004150e0
test bl, bl
je 0x463d67
lea edx, [ebp - 0xa90]
push edx
push 0x20
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax*4 + 0x576170]
add ecx, 0x1400
push ecx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
mov esi, dword [sym.imp.MSVCR100.dll_strcat_s]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx*4 + 0x576170]
cmp byte [eax], 0
jne 0x463e5a
mov ecx, dword [ebp - 0x24]
push ecx
push 0x400
lea edx, [ebp - 0x690]
push edx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push 0x5394c4
push 0x400
lea eax, [ebp - 0x690]
push eax
call esi
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x400
lea edx, [ebp - 0x690]
push edx
call esi
add esp, 0xc
push 0x5394c4
push 0x400
lea eax, [ebp - 0x690]
push eax
call esi
add esp, 0xc
push str.DsSpooler
push 0x400
lea ecx, [ebp - 0x690]
push ecx
call esi
add esp, 0xc
mov byte [ebp - 0xa90], 0
lea edx, [ebp - 0x3c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x690]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x463e21
mov dword [ebp - 0x14], 0xffffffff
jmp 0x463e5a
push str.serverName
lea edi, [ebp - 0x3c]
lea ebx, [ebp - 0xa90]
call fcn.00463610
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x463e5a
mov ecx, ebx
push ecx
push 0x400
mov edx, dword [ebp + 0xc]
mov eax, dword [edx*4 + 0x576170]
push eax
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx*4 + 0x576170]
cmp byte [edx + 0x800], 0
jne 0x463f51
mov eax, dword [ebp - 0x24]
push eax
push 0x400
lea ecx, [ebp - 0x690]
push ecx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push 0x5394c4
push 0x400
lea edx, [ebp - 0x690]
push edx
call esi
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x400
lea ecx, [ebp - 0x690]
push ecx
call esi
add esp, 0xc
push 0x5394c4
push 0x400
lea edx, [ebp - 0x690]
push edx
call esi
add esp, 0xc
push str.DsSpooler
push 0x400
lea eax, [ebp - 0x690]
push eax
call esi
add esp, 0xc
mov byte [ebp - 0xa90], 0
lea ecx, [ebp - 0x40]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x690]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x463f12
mov dword [ebp - 0x14], 0xffffffff
jmp 0x463f51
push str.printShareName
lea edi, [ebp - 0x40]
lea ebx, [ebp - 0xa90]
call fcn.00463610
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x463f51
mov eax, ebx
push eax
push 0x400
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx*4 + 0x576170]
add edx, 0x800
push edx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
mov eax, dword [ebp - 0x24]
push eax
push 0x400
lea ecx, [ebp - 0x690]
push ecx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push 0x5394c4
push 0x400
lea edx, [ebp - 0x690]
push edx
call esi
add esp, 0xc
mov edi, dword [ebp + 8]
push edi
push 0x400
lea eax, [ebp - 0x690]
push eax
call esi
add esp, 0xc
push 0x5394c4
push 0x400
lea ecx, [ebp - 0x690]
push ecx
call esi
add esp, 0xc
push str.PnPData
push 0x400
lea edx, [ebp - 0x690]
push edx
call esi
add esp, 0xc
push 0xff
push 0
lea eax, [ebp - 0xa90]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x2c], 0x400
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x690]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x463c16
mov dword [ebp - 0x14], eax
nop
mov ecx, dword [ebp - 0x14]
mov eax, ecx
inc ecx
mov dword [ebp - 0x14], ecx
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xa90]
push edx
push eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4642d8
mov ecx, str.DeviceInstanceId
lea eax, [ebp - 0xa90]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x464060
test dl, dl
je 0x46405c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x464060
add eax, 2
add ecx, 2
test dl, dl
jne 0x464040
xor eax, eax
jmp 0x464065
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4642cc
mov dword [ebp - 0x18], 0xff
mov dword [ebp - 0x1c], 1
push 0xff
push eax
lea ecx, [ebp - 0x268]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.DeviceInstanceId
mov edx, dword [ebp - 0x28]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
jne 0x4642cc
mov eax, dword [ebp - 0x48]
push eax
push 0x400
lea ecx, [ebp - 0xe90]
push ecx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push 0x5394c4
push 0x400
lea edx, [ebp - 0xe90]
push edx
call esi
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
push 0x400
lea ecx, [ebp - 0xe90]
push ecx
call esi
add esp, 0xc
push 0xff
push 0
lea edx, [ebp - 0x268]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xe90]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4642cc
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.LocationInformation
mov edx, dword [ebp - 0x20]
push edx
call edi
test eax, eax
jne 0x4641c9
lea eax, [ebp - 0x261]
lea ecx, [ebp - 0x84]
call fcn.0040f980
mov byte [ebp - 4], 2
lea eax, [ebp - 0x84]
push eax
call fcn.0045e7d0
add esp, 4
mov bl, al
mov byte [ebp - 4], 0
lea esi, [ebp - 0x84]
call fcn.004150e0
test bl, bl
je 0x4641b2
lea ecx, [ebp - 0x261]
push ecx
push 0x20
mov edx, dword [ebp + 0xc]
mov eax, dword [edx*4 + 0x576170]
add eax, 0x1400
push eax
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
jmp 0x4641c3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx*4 + 0x576170]
mov byte [edx + 0x1400], 0
mov esi, dword [sym.imp.MSVCR100.dll_strcat_s]
mov byte [ebp - 0x268], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x268]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push str.DeviceDesc
mov eax, dword [ebp - 0x20]
push eax
call edi
test eax, eax
jne 0x4642c2
cmp byte [ebp - 0x268], al
je 0x4642c2
lea ecx, [ebp - 0x268]
push ecx
mov edi, dword [ebp + 0xc]
mov edx, dword [edi*4 + 0x576170]
add edx, 0x400
push edx
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x4642c2
mov eax, dword [edi*4 + 0x576170]
add eax, 0x400
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.004efe70
add esp, 8
mov bl, 3
mov byte [ebp - 4], bl
lea edx, [ebp - 0x68]
push edx
mov eax, str._:
call fcn.0040fb70
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0xbc]
push ecx
call fcn.004efe70
add esp, 8
mov byte [ebp - 4], 4
push 0
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x68]
call fcn.00412830
mov byte [ebp - 4], bl
lea esi, [ebp - 0xbc]
call fcn.004150b0
lea edx, [ebp - 0x268]
push edx
push 0x400
mov eax, edi
mov ecx, dword [eax*4 + 0x576170]
add ecx, 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
mov byte [ebp - 4], 0
lea esi, [ebp - 0x68]
call fcn.004150b0
mov esi, dword [sym.imp.MSVCR100.dll_strcat_s]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], 0x400
jmp 0x464000
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp + 8]
jmp 0x463c16
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xffffff9b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret