Function at 0x41020fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41148ddb
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x411bade8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SetPrinterProperties:_storing_properties_received_from_the_client.
push 0x1000001
push 0x63c
push str.TPAutoConnDll.cpp
xor ebx, ebx
xor edi, edi
call fcn.41002c10
add esp, 0x10
call fcn.41040000
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41021015
push 0x80004005
call fcn.410011f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
push ebx
push 0x411584dc
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
call fcn.410016e0
push 0xf003f
push str.SoftwareThinPrintTPAutoConnect
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0xffff
call fcn.41010fa0
test eax, eax
jne 0x410210bf
push str.PrinterPropertyFlags
lea ecx, [ebp - 0x10]
call fcn.41002090
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push ebx
push ecx
push edx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410210b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x410210bf
mov dword [ebp - 0x18], 0xffff
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
lea ecx, [ebp - 0x9c]
call fcn.41011f50
mov byte [ebp - 4], 2
cmp dword [ebp - 0x94], ebx
jne 0x41021342
push str.SetPrinterProperties:_no_entries_found.
push 0x2000001
push 0x64c
push str.TPAutoConnDll.cpp
call fcn.41002c10
mov eax, dword [ebp + 0x1c]
add esp, 0x10
cmp eax, ebx
je 0x410212f3
mov ecx, 0xdc
cmp cx, word [eax + 0x44]
jne 0x410212f3
movzx ecx, word [eax + 0x46]
mov edx, 0x408
cmp dx, cx
ja 0x410212f3
cmp dword [ecx + eax + 0xd4], 0x44505054
jne 0x410212f3
cmp dword [eax + 0xe0], 0x211
lea esi, [eax + 0xdc]
jb 0x410212f3
cmp dword [esi], 0x58455054
jne 0x410212f3
cmp esi, ebx
je 0x410212f3
push str.Printer_properties_are_empty._PrintAsImage_option_must_follow_TPOG_template_values__DevMode_v3_.
push 0x1000001
push 0x657
push str.TPAutoConnDll.cpp
call fcn.41002c10
mov edi, dword [ebp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx]
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
push 4
lea ecx, [ebp - 0x10]
push ecx
lea eax, [ebp - 0x1c]
push eax
push str.OptionsExCapabilities
mov ecx, edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
call edx
cmp eax, ebx
jne 0x4102121b
cmp dword [ebp - 0x1c], 4
jne 0x4102121b
mov eax, 0x800
test dword [ebp - 0x10], eax
je 0x410211e8
or dword [ebp - 0x10], eax
or dword [esi + 8], 0x2000
push str.______PrintAsImage_option_is_enabled_in_TPOG_template.
push 0x1000001
push 0x672
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x10
jmp 0x41021248
and dword [ebp - 0x10], 0xfffff7ff
and dword [esi + 8], 0xffffdfff
push str.______PrintAsImage_option_is_disabled_in_TPOG_template.
push 0x1000001
push 0x67c
push str.TPAutoConnDll.cpp
mov byte [esi + 0x210], 0
call fcn.41002c10
add esp, 0x10
jmp 0x41021248
push str.OptionsExCapabilities_from_TPOG_template_not_found._PrintAsImage_option_disabled.
push 0x1000001
push 0x685
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x10
and dword [esi + 8], 0xffffdfff
mov dword [ebp - 0x10], ebx
mov byte [esi + 0x210], 0
test dword [esi + 8], 0x2000
mov eax, str.enabled
jne 0x4102125b
mov eax, str.disabled
mov ecx, dword [ebp - 0x10]
movzx edx, byte [esi + 0x210]
push ecx
push edx
push eax
push str.PrintAsImage_option_is_set___s__with_value___d___OptionsExCapabilities___X__.
push 0x1000001
push 0x691
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x1c
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push str.OptionsExCapabilities
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PrinterDriverData
call fcn.41002090
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
cmp eax, ebx
je 0x410212d1
mov ecx, dword [ebp - 0x10]
push eax
push ecx
push str.SetPrinterData_for_OptionsExCapabilities___X___failed__Err__d_.
push 0x2000001
push 0x699
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x18
jmp 0x4102130f
mov edx, dword [ebp - 0x10]
push edx
push str.OptionsExCapabilities_has_been_set_to___X___for_the_new_printer.
push 0x1000001
push 0x69d
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
jmp 0x4102130f
push str.TPOG_DEVMODE_is_a_not_Version__3_._Nothing_to_do.
push 0x1000001
push 0x6a3
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x10
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.41010160
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.41010de0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x18], 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x18]
je 0x410213a9
mov ecx, dword [ebp - 0x90]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jle 0x410213a9
add eax, eax
push eax
push ecx
push 7
push str.TrayData
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PrinterDriverData
call fcn.41002090
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
test eax, eax
je 0x410213a9
call ebx
push eax
push str.SetPrinterData_failed_0_err_d
push 0x2000001
push 0x6b7
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
and edx, 3
cmp edx, 3
jne 0x410213ff
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jle 0x410213ff
lea edx, [eax + eax]
push edx
push ecx
push 7
push str.FormData
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PrinterDriverData
call fcn.41002090
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
test eax, eax
je 0x41021459
call ebx
push eax
push str.SetPrinterData_failed_1_err_d
push 0x2000001
push 0x6c7
jmp 0x41021449
cmp edx, 1
jne 0x41021459
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jle 0x41021459
add eax, eax
push eax
push ecx
push 7
push str.FormData
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PrinterDriverData
call fcn.41002090
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
test eax, eax
je 0x41021459
call ebx
push eax
push str.SetPrinterData_failed_1_err_d
push 0x2000001
push 0x6d6
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
or edi, 0xffffffff
test byte [ebp - 0x18], 8
je 0x410214b8
mov ecx, dword [ebp - 0x88]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jle 0x410214b8
lea edx, [eax + eax]
push edx
push ecx
push 7
push str.ResolutionData
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PrinterDriverData
call fcn.41002090
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
test eax, eax
je 0x410214b8
call ebx
push eax
push str.SetPrinterData_failed_2_err_d
push 0x2000001
push 0x6e7
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
or edi, 0xffffffff
test byte [ebp - 0x18], 0x20
je 0x41021513
mov ecx, dword [ebp - 0x74]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jle 0x41021513
add eax, eax
push eax
push ecx
push 1
push str.NumColors
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PrinterDriverData
call fcn.41002090
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
test eax, eax
je 0x41021513
call ebx
push eax
push str.SetPrinterData_failed_2_err_d
push 0x2000001
push 0x6f8
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
or edi, 0xffffffff
test byte [ebp - 0x18], 0x80
je 0x41021583
mov ecx, dword [ebp - 0x54]
push ecx
push str.oProps.m_dwOptionsFax_:_X
push 0x1000001
push 0x705
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
push 4
lea edx, [ebp - 0x54]
push edx
push 4
push str.OptionsFax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PrinterDriverData
call fcn.41002090
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
test eax, eax
je 0x41021583
push eax
push str.SetPrinterData_for_OptionsFax_failed_err_d
push 0x2000001
push 0x70e
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
or edi, 0xffffffff
test dword [ebp - 0x18], 0x100
je 0x410215fa
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x410215fa
push eax
push str.oProps.m_dwPunchCaps_:_X
push 0x1000001
push 0x717
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
push 4
lea eax, [ebp - 0x50]
push eax
push 4
push str.PunchCaps
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PrinterDriverData
call fcn.41002090
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
test eax, eax
je 0x410215fa
push eax
push str.SetPrinterData_for_PunchCaps_failed_err_d
push 0x2000001
push 0x720
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
or edi, 0xffffffff
test dword [ebp - 0x18], 0x200
je 0x410216cd
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x410216cd
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x6e]
push edx
push eax
push str.oProps.m_dwStapleCaps_:_X_oProps.pTPDevMode__dwSheetCapacity:__X
push 0x1000001
push 0x728
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x18
push 4
lea eax, [ebp - 0x4c]
push eax
push 4
push str.StapleCaps
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PrinterDriverData
call fcn.41002090
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
test eax, eax
je 0x41021680
push eax
push str.SetPrinterData_for_StapleCaps_failed_err_d
push 0x2000001
push 0x731
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
or edi, 0xffffffff
mov ecx, dword [ebp - 0x60]
push 4
add ecx, 0x6e
push ecx
push 4
push str.StapleMax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PrinterDriverData
call fcn.41002090
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
test eax, eax
je 0x410216cd
push eax
push str.SetPrinterData_for_StapleMax_failed_err_d
push 0x2000001
push 0x73d
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
or edi, 0xffffffff
test dword [ebp - 0x18], 0x400
je 0x410217e8
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x410217e8
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
push ecx
push edx
push eax
push str.oProps.m_dwBindCaps_:_X_oProps.m_dwBindGutterMin:__X__oProps.m_dwBindGutterMax:__X
push 0x1000001
push 0x745
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x1c
push 4
lea eax, [ebp - 0x48]
push eax
push 4
push str.BindCaps
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PrinterDriverData
call fcn.41002090
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
test eax, eax
je 0x41021754
push eax
push str.SetPrinterData_for_BindCaps_failed_err_d
push 0x2000001
push 0x74e
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
or edi, 0xffffffff
push 4
lea ecx, [ebp - 0x44]
push ecx
push 4
push str.BindGutterMin
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PrinterDriverData
call fcn.41002090
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
test eax, eax
je 0x4102179e
push eax
push str.SetPrinterData_for_BindGutterMin_failed_err_d
push 0x2000001
push 0x75a
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
or edi, 0xffffffff
push 4
lea ecx, [ebp - 0x40]
push ecx
push 4
push str.BindGutterMax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PrinterDriverData
call fcn.41002090
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
test eax, eax
je 0x410217e8
push eax
push str.SetPrinterData_for_BindGutterMax_failed_err_d
push 0x2000001
push 0x766
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
or edi, 0xffffffff
test dword [ebp - 0x18], 0x800
je 0x410218b6
mov eax, dword [ebp - 0x3c]
cmp eax, 1
je 0x410218b6
mov ecx, dword [ebp - 0x38]
push ecx
push eax
push str.oProps.m_dwNUpPossibilities_:_X__oProps.m_dwNUpDirection:__X
push 0x1000001
push 0x76e
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x18
push 4
lea edx, [ebp - 0x3c]
push edx
push 4
push str.NUpPossibilities
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PrinterDriverData
call fcn.41002090
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
test eax, eax
je 0x4102186c
push eax
push str.SetPrinterData_for_NUpPossibilities_failed_err_d
push 0x2000001
push 0x777
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
or edi, 0xffffffff
push 4
lea eax, [ebp - 0x38]
push eax
push 4
push str.NUpDirection
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PrinterDriverData
call fcn.41002090
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
test eax, eax
je 0x410218b6
push eax
push str.SetPrinterData_for_NUpDirection_failed_err_d
push 0x2000001
push 0x783
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
or edi, 0xffffffff
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x14]
test cl, 0x10
jne 0x410218c6
mov eax, 1
push ecx
mov ecx, dword [ebp + 0x1c]
push ecx
push esi
push eax
lea edx, [ebp - 0x9c]
push edx
call fcn.4101d3b0
add esp, 0x14
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.41010160
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.41010de0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret