Function at 0x10001712
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015199
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10001759
push str.ByUser_is_True
call fcn.1000de0c
add esp, 4
mov dword [ebp - 0x14], 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push str.dwJobID_:__d__byUser__d__porttype___d
call fcn.1000de0c
add esp, 0x10
lea ecx, [ebp - 0x18]
call fcn.10005a80
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x60]
add ecx, 4
call fcn.10005650
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x60]
add ecx, 4
call fcn.10005680
push eax
lea ecx, [ebp - 0x18]
call fcn.10005ea0
and eax, 0xff
test eax, eax
je 0x100017c6
push str.pPort_is_NULL___
call fcn.1000de0c
add esp, 4
jmp 0x100017e9
lea ecx, [ebp - 0x18]
call fcn.10005aa0
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
call sym.spiomgr.dll_public:_unsigned_short_int____thiscall_PrinterPort::GetPortName_void_
push eax
push str._s_port_is_alive
call fcn.1000de0c
add esp, 8
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x60]
add ecx, 4
call fcn.10005680
push eax
lea ecx, [ebp - 0x18]
call fcn.10005760
and eax, 0xff
test eax, eax
je 0x10001900
lea ecx, [ebp - 0x18]
call fcn.10005aa0
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x1000183e
push 0x1001a32c
call fcn.1000de0c
add esp, 4
push 0
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x18]
call fcn.10005730
jmp 0x100017e9
mov edx, dword [ebp + 8]
add edx, 0x208
push edx
mov ecx, dword [ebp - 0x28]
call sym.spiomgr.dll_public:_unsigned_short_int____thiscall_PrinterPort::GetPortName_void_
push eax
push str._IOEventManager::AddPort___inspection___s_and__s
call fcn.1000de0c
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 0x208
push eax
mov ecx, dword [ebp - 0x28]
call sym.spiomgr.dll_public:_unsigned_short_int____thiscall_PrinterPort::GetPortName_void_
push eax
call fcn.1000e3ee
add esp, 8
test eax, eax
jne 0x100018ed
mov ecx, dword [ebp - 0x28]
call sym.spiomgr.dll_public:_int___thiscall_PrinterPort::isLaunchedByUser_void_
test eax, eax
je 0x10001890
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0xffffffff
je 0x100018a4
mov ecx, dword [ebp - 0x28]
call sym.spiomgr.dll_public:_int___thiscall_PrinterPort::isLaunchedByUser_void_
test eax, eax
jne 0x100018e0
mov edx, dword [ebp + 8]
cmp dword [edx], 0xffffffff
je 0x100018e0
mov ecx, dword [ebp - 0x28]
call sym.spiomgr.dll_public:_unsigned_short_int____thiscall_PrinterPort::GetPortName_void_
push eax
push str._s_is_already_alive___so__we_dont_make_port_object
call fcn.1000de0c
add esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x100018db
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0x60]
push edx
push 0x100032c5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10001c09
push str.User_port_is_detected_or_requested__so_we_will_make_new_port
call fcn.1000de0c
add esp, 4
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10005730
jmp 0x100017e9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80c], 0x65
jne 0x10001990
push 0x2888
call fcn.1000e3a8
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x44], 0
je 0x10001971
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x420]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x434]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0xff
mov ecx, dword [ebp + 8]
add ecx, 0x608
push ecx
mov edx, dword [ebp + 8]
add edx, 8
push edx
mov eax, dword [ebp + 8]
add eax, 0x208
push eax
mov ecx, dword [ebp - 0x44]
call sym.spiomgr.dll_public:_void___thiscall_USBPrinterPort::constructor_unsigned_short_int___unsigned_short_int___unsigned_short_int___int__int__int__int_
mov dword [ebp - 0x64], eax
jmp 0x10001978
mov dword [ebp - 0x64], 0
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x20], edx
jmp 0x10001b9c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80c], 0xc9
je 0x100019ae
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80c], 0x1f5
jne 0x10001a1a
push 0x2774
call fcn.1000e3a8
add esp, 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x4c], 0
je 0x100019fb
mov edx, dword [ebp - 0x14]
push edx
push 0xff
mov eax, dword [ebp + 8]
add eax, 0x608
push eax
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
mov edx, dword [ebp + 8]
add edx, 0x208
push edx
mov ecx, dword [ebp - 0x4c]
call fcn.10008ae0
mov dword [ebp - 0x68], eax
jmp 0x10001a02
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x20], ecx
jmp 0x10001b9c
mov edx, dword [ebp + 8]
cmp dword [edx], 0xffffffff
jne 0x10001a4e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push str.User_mode_job_with_network_port__so_we_request_wait_balloon__jod_id___d
call fcn.1000de0c
add esp, 8
push 0
push 0
push 0x552
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x480]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80c], 0x12d
jne 0x10001af7
push 0x2f94
call fcn.1000e3a8
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x54], 0
je 0x10001acb
mov edx, dword [ebp + 8]
add edx, 0xa10
push edx
mov eax, dword [ebp + 8]
add eax, 0x810
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x428]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x100
mov ecx, dword [ebp + 8]
add ecx, 0x608
push ecx
mov edx, dword [ebp + 8]
add edx, 8
push edx
mov eax, dword [ebp + 8]
add eax, 0x208
push eax
mov ecx, dword [ebp - 0x54]
call fcn.10005f40
mov dword [ebp - 0x6c], eax
jmp 0x10001ad2
mov dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x20], edx
push str.Create_IPv4_Ojbect...
call fcn.1000de0c
add esp, 4
jmp 0x10001b9c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80c], 0x12e
jne 0x10001b9c
push 0x35c8
call fcn.1000e3a8
add esp, 4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x5c], 0
je 0x10001b75
mov ecx, dword [ebp + 8]
add ecx, 0xa10
push ecx
mov edx, dword [ebp + 8]
add edx, 0x810
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x428]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x100
mov eax, dword [ebp + 8]
add eax, 0x608
push eax
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
mov edx, dword [ebp + 8]
add edx, 0x208
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.10006ec0
mov dword [ebp - 0x70], eax
jmp 0x10001b7c
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x20], ecx
push str.Create_IPv6_Object...
call fcn.1000de0c
add esp, 4
mov edx, dword [ebp - 0x60]
add edx, 0x884
push edx
mov eax, dword [ebp - 0x60]
add eax, 0x484
push eax
mov ecx, dword [ebp - 0x20]
call sym.spiomgr.dll_public:_void___thiscall_PrinterPort::SetXMLFilename_unsigned_short_int___unsigned_short_int__
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x460]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x60]
add ecx, 4
call fcn.100056c0
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x460]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x10001c09
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0x60]
push edx
push 0x100032c5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4