Function at 0x14000d600
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x240
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x50]
call fcn.140006910
nop
xor ebp, ebp
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x14000d672
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x288], rax
test rax, rax
je 0x14000d668
mov rcx, rax
call fcn.140050830
jmp 0x14000d66b
mov rax, rbp
mov qword [0x1401370f0], rax
mov r8, rdi
lea rdx, str.WaitForWPSActiveOld__s_
mov rcx, rax
call fcn.140050c00
mov r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140008580
test eax, eax
jne 0x14000d6cb
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000d6b1
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x14000d6b1
call rax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000d6c1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x14000dc59
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x14000d702
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x288], rax
test rax, rax
je 0x14000d6f8
mov rcx, rax
call fcn.140050830
jmp 0x14000d6fb
mov rax, rbp
mov qword [0x1401370f0], rax
lea rdx, str.Waiting_for_printer_wps_to_start...
mov rcx, rax
call fcn.140050c00
mov edi, ebp
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x118]
test r13, r13
je 0x14000d7a9
test rbx, rbx
jne 0x14000d782
test r12, r12
je 0x14000d76b
lea rdx, str.IsWpsRunning
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rsp + 0x118], rax
test rax, rax
jne 0x14000d782
mov dword [rsp + 0x50], 0x7f
lea rcx, str.EWSIntf::is_wps_running:_Function_not_found_in_DLL:_IsWpsRunning_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000d7a9
mov dword [rsp + 0x50], 6
lea rcx, str.EWSIntf::is_wps_running:_Attempting_to_lookup_IsWpsRunning_with_no_DLL_handle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000d7a9
mov dword [rsp + 0x288], ebp
lea rdx, [rsp + 0x288]
mov rcx, r13
call rbx
test eax, eax
je 0x14000d7a9
cmp dword [rsp + 0x288], 1
sete al
cmp al, 1
je 0x14000d7c5
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, 4
jae 0x14000db5f
jmp 0x14000d725
mov rsi, qword [0x1401370f0]
test rsi, rsi
jne 0x14000d889
mov ecx, 0x310
call fcn.140084d88
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000d87f
call fcn.140087bd0
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x14000d80f
mov ecx, 0x80004005
call fcn.140006300
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
mov word [rsi + 0x64], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400f5b5c]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x1400f5b5c]
mov rcx, rsi
call fcn.140006070
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsi + 0x26c]
mov word [rcx], 0
lea r8, [0x1400f6478]
mov edx, 0x50
call fcn.1400b1b70
nop
jmp 0x14000d882
mov rsi, rbp
mov qword [0x1401370f0], rsi
lea rdx, str.Waiting_for_printer_wps_to_finish...
mov rcx, rsi
call fcn.140050c00
mov r15d, ebp
nop
nop
mov byte [rsp + 0x288], 0
xor r14b, r14b
test rbx, rbx
jne 0x14000d903
test r12, r12
je 0x14000d8ec
lea rdx, str.IsWpsRunning
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rsp + 0x118], rax
test rax, rax
jne 0x14000d903
mov dword [rsp + 0x50], 0x7f
lea rcx, str.EWSIntf::is_wps_running:_Function_not_found_in_DLL:_IsWpsRunning_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000d92f
mov dword [rsp + 0x50], 6
lea rcx, str.EWSIntf::is_wps_running:_Attempting_to_lookup_IsWpsRunning_with_no_DLL_handle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000d92f
mov dword [rsp + 0x30], ebp
lea rdx, [rsp + 0x30]
mov rcx, r13
call rbx
test eax, eax
je 0x14000d92f
cmp dword [rsp + 0x30], 1
sete r14b
mov byte [rsp + 0x288], 1
test r14b, r14b
je 0x14000daf5
mov rsi, qword [0x1401370f0]
test rsi, rsi
jne 0x14000d9e9
mov ecx, 0x310
call fcn.140084d88
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000d9df
call fcn.140087bd0
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
je 0x14000db1f
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsi], rax
mov word [rsi + 0x64], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400f5b5c]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x1400f5b5c]
mov rcx, rsi
call fcn.140006070
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsi + 0x26c]
mov word [rcx], 0
lea r8, [0x1400f6478]
mov edx, 0x50
call fcn.1400b1b70
nop
jmp 0x14000d9e2
mov rsi, rbp
mov qword [0x1401370f0], rsi
mov r8d, r15d
lea rdx, str.Waiting_for_printer_wps_iteration__d
mov rcx, rsi
call fcn.140050c00
mov rsi, qword [0x1401370f0]
test rsi, rsi
jne 0x14000dab5
mov ecx, 0x310
call fcn.140084d88
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000daab
call fcn.140087bd0
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
je 0x14000db2a
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsi], rax
mov word [rsi + 0x64], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400f5b5c]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x1400f5b5c]
mov rcx, rsi
call fcn.140006070
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsi + 0x26c]
mov word [rcx], 0
lea r8, [0x1400f6478]
mov edx, 0x50
call fcn.1400b1b70
nop
jmp 0x14000daae
mov rsi, rbp
mov qword [0x1401370f0], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r9d, r14b
movzx r8d, byte [rsp + 0x288]
mov dword [rsp + 0x20], eax
lea rdx, str.____brv_d__running_d__gle_d
mov rcx, rsi
call fcn.140050c00
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
add r15d, 1
cmp r15d, 0x5a
jae 0x14000db35
jmp 0x14000d8a0
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x14000db07
mov rcx, r13
call rax
test r12, r12
je 0x14000db15
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 5
jmp 0x14000dc59
mov ecx, 0x80004005
call fcn.140006300
nop
mov ecx, 0x80004005
call fcn.140006300
nop
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x14000db47
mov rcx, r13
call rax
test r12, r12
je 0x14000db55
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 2
jmp 0x14000dc59
mov rbx, qword [0x1401370f0]
test rbx, rbx
jne 0x14000dc1f
mov ecx, 0x310
call fcn.140084d88
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000dc15
call fcn.140087bd0
mov rcx, rax
test rax, rax
setne bpl
test ebp, ebp
jne 0x14000dba8
mov ecx, 0x80004005
call fcn.140006300
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov word [rbx + 0x64], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400f5b5c]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x1400f5b5c]
mov rcx, rbx
call fcn.140006070
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x26c]
mov word [rcx], 0
lea r8, [0x1400f6478]
mov edx, 0x50
call fcn.1400b1b70
nop
jmp 0x14000dc18
mov rbx, rbp
mov qword [0x1401370f0], rbx
lea rdx, str.ERROR:_Printer_wps_never_started
mov rcx, rbx
call fcn.140050c00
nop
test r13, r13
je 0x14000dc46
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x14000dc46
mov rcx, r13
call rax
test r12, r12
je 0x14000dc54
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret