Function at 0x406270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42a477
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x43b010]
xor eax, esp
mov dword [esp + 0x4b0], eax
push ebx
push esi
push edi
mov eax, dword [0x43b010]
xor eax, esp
push eax
lea eax, [esp + 0x4c8]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4062cb
push str._npf
push eax
call fcn.00417e59
add esp, 8
test eax, eax
jne 0x40630a
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4062e4
push 0x434dcc
push eax
call fcn.00417e59
add esp, 8
test eax, eax
jne 0x40630a
push ecx
call fcn.00404eb0
add esp, 4
push 0x535
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov ebx, dword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push dword [esi + 0xc]
xorps xmm0, xmm0
mov dword [esp + 0x38], 0
movq qword [esp + 0x3c], xmm0
mov dword [esp + 0x40], 0xf000c
call ebx
mov edi, dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
test eax, eax
je 0x4067d5
mov eax, dword [esi + 0x10]
test eax, eax
je 0x406383
push str._dssnp
push eax
call fcn.00417e59
add esp, 8
test eax, eax
je 0x406383
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 4
push str.SSNPNotifyEventSetting
push dword [esp + 0x30]
call edi
mov ecx, dword [esi + 0x38]
mov eax, 1
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x4063a0
xor edx, edx
cmp dword [ecx + 0x1c], 3
cmove eax, edx
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
push 4
mov dword [esp + 0x4d4], eax
lea eax, [esp + 0x28]
push eax
push 4
push str.StaticMode
push dword [esp + 0x30]
call edi
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4064d7
mov eax, dword [eax + 0x1c]
cmp eax, 1
je 0x4063f7
cmp eax, 2
jne 0x4064d7
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push 0
push 5
push dword [esp + 0x30]
call dword [sym.imp.WINSPOOL.DRV_GetPrinterW]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40645b
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40645b
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebx
push 5
push dword [esp + 0x30]
call dword [sym.imp.WINSPOOL.DRV_GetPrinterW]
test eax, eax
je 0x406454
push dword [ebx + 4]
lea ecx, [esp + 0x84]
call fcn.0040a250
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x406499
push str._pqdmpa
push eax
call fcn.00417e59
add esp, 8
test eax, eax
je 0x406499
push str.972565793
call fcn.004178fd
add esp, 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push str.UPDMPA
push dword [esp + 0x30]
call edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4064d7
push str._pqdads
push eax
call fcn.00417e59
add esp, 8
test eax, eax
je 0x4064d7
push str.972565793
call fcn.004178fd
add esp, 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push str.UPDADS
push dword [esp + 0x30]
call edi
push 9
xor eax, eax
mov dword [esp + 0x68], 7
push str._qcomname
lea ecx, [esp + 0x58]
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
call fcn.0040adb0
mov byte [esp + 0x4d0], 1
lea eax, [esp + 0x50]
cmp dword [esp + 0x64], 8
cmovae eax, dword [esp + 0x50]
push eax
push dword [esi + 0x10]
call fcn.00417e59
add esp, 8
test eax, eax
je 0x4065d0
mov ecx, dword [esp + 0x60]
cmp word [eax + ecx*2], 0x22
lea eax, [eax + ecx*2]
jne 0x4065d0
add eax, 2
lea ecx, [esp + 0x68]
push eax
call fcn.0040a170
push 1
push 0
lea eax, [esp + 0x1c]
mov byte [esp + 0x4d8], 2
push eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x20], 0x22
call fcn.0040a830
cmp eax, 0xffffffff
je 0x406578
push eax
lea ecx, [esp + 0x6c]
call fcn.0040a490
cmp dword [esp + 0x78], 0
je 0x4065b5
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x9c]
call fcn.00414020
lea eax, [esp + 0x68]
mov byte [esp + 0x4d0], 3
push eax
lea ecx, [esp + 0x9c]
call fcn.004141e0
lea ecx, [esp + 0x98]
call fcn.00414190
mov byte [esp + 0x4d0], 1
cmp dword [esp + 0x7c], 8
jb 0x4065d0
push dword [esp + 0x68]
call fcn.004144c0
add esp, 4
mov ecx, dword [esp + 0x20]
mov edx, esi
call fcn.00406010
mov eax, dword [esi + 0x38]
test eax, eax
je 0x406782
mov eax, dword [eax + 0x1c]
cmp eax, 2
je 0x4065f7
cmp eax, 1
jne 0x406782
xor ecx, ecx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], cx
mov byte [esp + 0x4d0], 4
cmp eax, 2
je 0x406696
push 0x434e2c
push dword [esi + 0x10]
call fcn.00417e59
add esp, 8
test eax, eax
je 0x4066b9
add eax, 6
lea ecx, [esp + 0x38]
push eax
call fcn.0040a250
push 1
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x20
push eax
lea ecx, [esp + 0x44]
call fcn.0040a830
cmp eax, 0xffffffff
je 0x406669
push eax
lea ecx, [esp + 0x3c]
call fcn.0040a490
push 1
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x3d
push eax
lea ecx, [esp + 0x44]
call fcn.0040a830
cmp eax, 0xffffffff
je 0x4066b9
push 1
push eax
lea ecx, [esp + 0x40]
call fcn.0040a4d0
jmp 0x4066b9
cmp dword [esp + 0x90], 0
je 0x406782
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x44]
call fcn.0040a370
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x40676f
mov ebx, dword [esp + 0x4c]
lea eax, [esp + 0x38]
mov edx, dword [esp + 0x38]
cmp ebx, 8
mov edi, 0x22
cmovae eax, edx
cmp di, word [eax]
mov edi, dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
jne 0x40671a
lea eax, [ecx - 1]
push eax
push 1
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x44]
call fcn.0040a620
push eax
lea ecx, [esp + 0x3c]
call fcn.0040a1e0
lea ecx, [esp + 0x68]
call fcn.0040a220
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
cmp ebx, 8
lea eax, [esp + 0x38]
cmovae eax, edx
mov edx, 0x22
cmp dx, word [eax + ecx*2 - 2]
jne 0x40675b
lea eax, [ecx - 1]
push eax
push 0
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x44]
call fcn.0040a620
push eax
lea ecx, [esp + 0x3c]
call fcn.0040a1e0
lea ecx, [esp + 0x68]
call fcn.0040a220
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x38]
cmp ebx, 8
cmovae edx, dword [esp + 0x38]
call fcn.00404270
cmp dword [esp + 0x4c], 8
jb 0x406782
push dword [esp + 0x38]
call fcn.004144c0
add esp, 4
push dword [esp + 0x20]
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
cmp dword [esp + 0x64], 8
jb 0x40679f
push dword [esp + 0x50]
call fcn.004144c0
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
cmp dword [esp + 0x94], 8
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
jb 0x4067cf
push dword [esp + 0x80]
call fcn.004144c0
add esp, 4
mov ebx, dword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
xor eax, eax
push 0x1fe
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call fcn.0041a7b0
mov ecx, dword [0x43e928]
lea eax, [esp + 0x2c8]
add esp, 0xc
mov edx, 8
cmp dword [esi + 0x24], 1
push eax
je 0x406813
mov edx, 7
call fcn.00404d70
add esp, 4
lea eax, [esp + 0x2bc]
push dword [esi + 0xc]
push eax
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0xbc]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esi + 0x10], 0
mov dword [esi + 0x28], 1
je 0x406868
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40689d
cmp dword [eax + 4], 0
jne 0x40689d
cmp dword [eax + 8], 0
jne 0x40689d
mov ecx, dword [0x43e928]
lea eax, [esp + 0xbc]
push eax
mov edx, 0x2e
call fcn.00404d70
add esp, 4
test eax, eax
je 0x40689d
lea eax, [esp + 0xbc]
push eax
push 0x134
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x406abf
push str._eads
push eax
call fcn.00417e59
add esp, 8
test eax, eax
je 0x406abf
lea eax, [esp + 0x50]
mov dword [esp + 0x58], 0xf000c
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x54], 0
push eax
push dword [esi + 0xc]
mov dword [esp + 0x60], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 4
call ebx
test eax, eax
je 0x406abf
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push 0xf003f
push 0
push str.SoftwarePoliciesHewlett_PackardHP_Print_SettingsADSPrintPolicy
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406ab5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.SSNPDeviceUpdateInterval
push dword [esp + 0x3c]
call esi
test eax, eax
jne 0x406973
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push str.SSNPDeviceUpdateInterval
push dword [esp + 0x2c]
call edi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.SSNPShowSSNSettings
push dword [esp + 0x3c]
call esi
test eax, eax
jne 0x4069a7
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push str.SSNPShowSSNSettings
push dword [esp + 0x2c]
call edi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.SSNPShowSupportLink
push dword [esp + 0x3c]
call esi
test eax, eax
jne 0x4069db
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push str.SSNPShowSupportLink
push dword [esp + 0x2c]
call edi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.SSNPShowShopLink
push dword [esp + 0x3c]
call esi
test eax, eax
jne 0x406a0f
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push str.SSNPShowShopLink
push dword [esp + 0x2c]
call edi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.SSNPShowAlertLink
push dword [esp + 0x3c]
call esi
test eax, eax
jne 0x406a43
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push str.SSNPShowAlertLink
push dword [esp + 0x2c]
call edi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.SSNPUseLargeNotification
push dword [esp + 0x3c]
call esi
test eax, eax
jne 0x406a77
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push str.SSNPUseLargeNotification
push dword [esp + 0x2c]
call edi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.SSNPNotifyEventSetting
push dword [esp + 0x3c]
call esi
test eax, eax
jne 0x406aab
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push str.SSNPNotifyEventSetting
push dword [esp + 0x2c]
call edi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x1c]
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
mov ecx, dword [esp + 0x4c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0041729b
mov esp, ebp
pop ebp
ret