Function at 0x5dd04b
Capabilities:
Reference sql statements

Disassembly:
push 0x16c
mov eax, 0x6e0de3
call fcn.00648bbe
mov eax, ecx
mov dword [ebp - 0x160], eax
mov eax, dword [eax]
xor ebx, ebx
mov byte [ebp - 0x139], bl
cmp dword [eax - 0xc], ebx
je 0x5dd435
mov dword [ebp - 4], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 2
push eax
push 0x758cb4
push 0x17
push ebx
push 0x71edd0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x5dd0c7
push 0x88
push str.PheripheralsPrintInfo.cpp
push eax
lea ecx, [ebp - 0x78]
call fcn.006c3db0
push 0x7fc5c0
lea eax, [ebp - 0x78]
push eax
call fcn.00671426
mov esi, dword [ebp - 0x154]
lea ecx, [ebp - 0x148]
push 0x741504
call fcn.00515bc8
mov edi, eax
push str.rootcimv2
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 3
call fcn.00515bc8
mov ecx, eax
lea edx, [ebp - 0x150]
mov byte [ebp - 4], 4
mov eax, dword [esi]
push edx
push ebx
push dword [edi]
push ebx
push ebx
push ebx
push ebx
push dword [ecx]
push esi
call dword [eax + 0xc]
push dword [ebp - 0x14c]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, eax
call edi
mov byte [ebp - 4], 2
push dword [ebp - 0x148]
call edi
test esi, esi
jns 0x5dd155
push 0x91
push str.PheripheralsPrintInfo.cpp
push esi
lea ecx, [ebp - 0xd8]
call fcn.006c3db0
push 0x7fc5c0
lea eax, [ebp - 0xd8]
jmp 0x5dd0c1
mov dword [ebp - 0x158], ebx
call fcn.00515e26
push eax
lea ecx, [ebp - 0x140]
call fcn.00515c3a
mov eax, dword [ebp - 0x160]
mov byte [ebp - 4], 5
push dword [eax]
lea eax, [ebp - 0x140]
push str.SELECT_PrinterPaperNames_DeviceID_FROM_Win32_Printer_WHERE_Name__s_
push eax
call fcn.0051647b
add esp, 0xc
lea ecx, [ebp - 0x140]
push 0x766150
push 0x741508
call fcn.00515037
mov esi, dword [ebp - 0x140]
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x14c], eax
cmp dword [esi - 4], 1
jle 0x5dd1cd
push dword [esi - 0xc]
lea ecx, [ebp - 0x140]
call fcn.005158ea
mov esi, dword [ebp - 0x140]
push esi
lea ecx, [ebp - 0x148]
call fcn.005a45b6
mov edi, eax
push 0x758c34
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 6
call fcn.005a4503
mov byte [ebp - 4], 7
mov ecx, dword [edi]
test ecx, ecx
je 0x5dd1fd
mov edx, dword [ecx]
jmp 0x5dd1ff
mov edx, ebx
mov eax, dword [eax]
test eax, eax
je 0x5dd209
mov ecx, dword [eax]
jmp 0x5dd20b
mov ecx, ebx
mov edi, dword [ebp - 0x14c]
lea esi, [ebp - 0x158]
push esi
push ebx
push 0x30
mov eax, dword [edi]
push edx
push ecx
push edi
call dword [eax + 0x50]
mov ecx, dword [ebp - 0x144]
mov edi, eax
mov esi, dword [ebp - 0x140]
test ecx, ecx
je 0x5dd240
call fcn.005a4575
mov dword [ebp - 0x144], ebx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x148]
test ecx, ecx
je 0x5dd253
call fcn.005a4575
test edi, edi
je 0x5dd27d
push edi
push 0x9f
push str.PheripheralsPrintInfo.cpp
lea ecx, [ebp - 0x138]
call fcn.006c3cf0
push 0x7fc4ec
lea eax, [ebp - 0x138]
jmp 0x5dd0c1
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x15c], ebx
test ecx, ecx
je 0x5dd3bd
mov eax, dword [ecx]
lea edx, [ebp - 0x15c]
push edx
lea edx, [ebp - 0x164]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x15c], 0
jne 0x5dd2e8
lea ecx, [esi - 0x10]
call fcn.00515ed6
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x5dd2ce
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x5dd2e1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
jmp 0x5dd437
xor eax, eax
lea edi, [ebp - 0x178]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push ebx
push ebx
mov byte [ebp - 4], 8
lea edx, [ebp - 0x178]
mov eax, dword [ebp - 0x164]
push edx
push ebx
push str.PrinterPaperNames
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x5dd3b0
cmp word [ebp - 0x178], 0x1b
jne 0x5dd3b0
mov dword [ebp - 0x144], ebx
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x170]
call dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
test eax, eax
jne 0x5dd3b0
push dword [ebp - 0x14c]
lea ecx, [ebp - 0x148]
call fcn.00515719
mov ecx, dword [ebp - 0x160]
lea eax, [ebp - 0x148]
push eax
mov byte [ebp - 4], 9
lea ecx, [ecx + 0xec]
call fcn.00519d65
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x148]
lea ecx, [ecx - 0x10]
call fcn.00515ed6
push dword [ebp - 0x14c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc dword [ebp - 0x144]
mov byte [ebp - 0x139], 1
jmp 0x5dd338
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esi - 0x10]
call fcn.00515ed6
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x5dd3d9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x5dd3ec
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, byte [ebp - 0x139]
jmp 0x5dd437
mov al, bl
call fcn.00648b0b
ret