Function at 0x140013d40
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3f0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x440], rbx
mov rax, qword [0x14012ce40]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov rdi, rdx
mov r14, rcx
xor r15d, r15d
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x140013db3
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140013da9
mov rcx, rax
call fcn.140050830
jmp 0x140013dac
mov rax, r15
mov qword [0x1401370f0], rax
mov r8, rdi
lea rdx, str.GetWpsStatusNew__s_
mov rcx, rax
call fcn.140050c00
lea rcx, [rsp + 0x70]
call fcn.140006910
nop
mov qword [rsp + 0x2a8], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2a0], r15
mov byte [rsp + 0x290], 0
mov qword [rsp + 0x2d0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2c8], r15
mov byte [rsp + 0x2b8], 0
mov r8, rdi
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140008580
test eax, eax
jne 0x140013ebe
cmp qword [rsp + 0x2d0], 0x10
jb 0x140013e38
mov rcx, qword [rsp + 0x2b8]
call fcn.140084dcc
mov qword [rsp + 0x2d0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2c8], r15
mov byte [rsp + 0x2b8], 0
cmp qword [rsp + 0x2a8], 0x10
jb 0x140013e6c
mov rcx, qword [rsp + 0x290]
call fcn.140084dcc
mov qword [rsp + 0x2a8], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2a0], r15
mov byte [rsp + 0x290], 0
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140013ea4
mov rax, qword [rsp + 0xa8]
test rax, rax
je 0x140013ea4
call rax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140013eb4
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x140014677
mov ebx, 5
mov dword [rsp + 0x350], r15d
xor edx, edx
lea r8d, [rbx + 0x7f]
lea rcx, [rsp + 0x354]
call fcn.1400b57e0
mov qword [rsp + 0x280], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x278], r15
mov byte [rsp + 0x268], 0
mov qword [rsp + 0x348], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x340], r15
mov byte [rsp + 0x330], 0
mov qword [rsp + 0x2f8], 7
mov qword [rsp + 0x2f0], r15
mov word [rsp + 0x2e0], 0
xor r8d, r8d
lea edx, [rbx + 0x2a]
lea rcx, [rsp + 0x2d8]
call fcn.1400156c0
lea rcx, [rsp + 0x2e0]
mov rdx, qword [rsp + 0x2f8]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x2e0]
add rdx, rdx
lea r9d, [rbx + 0x59]
lea r8, str._IoMgmt_Adapters_wifi0_WPS_PushButtonSessions_1
call fcn.1400b09f0
mov qword [rsp + getservbyport0], 0x2f
lea rax, [rsp + 0x2e0]
cmp qword [rsp + 0x2f8], 8
cmovae rax, qword [rsp + 0x2e0]
mov word [rax + 0x5e], 0
lea r8, [rsp + 0x2e0]
cmp qword [rsp + 0x2f8], 8
cmovae r8, qword [rsp + 0x2e0]
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0x70]
call fcn.140007120
nop
lea r13, [rsp + 0x308]
cmp qword [rsp + 0x320], 0x10
cmovae r13, qword [rsp + 0x308]
mov rbp, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
test r12, r12
je 0x14001421b
mov rdi, qword [rsp + 0xf0]
test rdi, rdi
jne 0x140014066
test rbp, rbp
je 0x14001404c
lea rdx, str.GetPage
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov qword [rsp + 0xf0], rax
test rax, rax
jne 0x140014066
mov dword [rsp + 0x70], 0x7f
lea rcx, str.EWSIntf::get_page:_Function_not_found_in_DLL:_GetPage_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14001421b
mov dword [rsp + 0x70], 6
lea rcx, str.EWSIntf::get_page:_Attempting_to_lookup_GetPage_with_no_DLL_handle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14001421b
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 0x800
mov edx, 0x10000
lea rcx, [rsp + 0x38]
call fcn.140006850
mov rsi, qword [rsp + 0x38]
cmp al, 1
jne 0x14001420d
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [rsp + 0x350]
mov rdx, r13
mov rcx, r12
call rdi
test eax, eax
je 0x14001420d
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x40], rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rax, [rsp + 0x268]
mov r8, qword [rsp + 0x268]
mov rdx, qword [rsp + 0x280]
cmp rdx, 0x10
cmovae rax, r8
cmp rsi, rax
jb 0x14001415f
lea rcx, [rsp + 0x268]
cmp rdx, 0x10
cmovae rcx, r8
mov rax, qword [rsp + 0x278]
add rcx, rax
cmp rcx, rsi
jbe 0x14001415f
lea rax, [rsp + 0x268]
cmp rdx, 0x10
cmovae rax, r8
mov r8, rsi
sub r8, rax
mov r9, rdi
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x260]
call fcn.140014b30
jmp 0x14001420d
cmp rdi, 0xfffffffffffffffe
jbe 0x14001416a
call fcn.1400d8c10
cmp qword [rsp + 0x280], rdi
jae 0x14001418e
mov r8, qword [rsp + 0x278]
mov rdx, rdi
lea rcx, [rsp + 0x260]
call fcn.140015290
jmp 0x1400141ba
test rdi, rdi
jne 0x1400141ba
mov qword [rsp + 0x278], r15
lea rax, [rsp + 0x268]
cmp qword [rsp + 0x280], 0x10
cmovae rax, qword [rsp + 0x268]
mov byte [rax], dil
jmp 0x14001420d
test rdi, rdi
je 0x14001420d
lea rcx, [rsp + 0x268]
mov rdx, qword [rsp + 0x280]
cmp rdx, 0x10
cmovae rcx, qword [rsp + 0x268]
mov r9, rdi
mov r8, rsi
call fcn.1400b09f0
mov qword [rsp + 0x278], rdi
lea rax, [rsp + 0x268]
cmp qword [rsp + 0x280], 0x10
cmovae rax, qword [rsp + 0x268]
mov byte [rax + rdi], 0
test rsi, rsi
je 0x14001421b
mov rcx, rsi
call fcn.140084dcc
nop
cmp qword [rsp + 0x320], 0x10
jb 0x140014233
mov rcx, qword [rsp + 0x308]
call fcn.140084dcc
cmp qword [rsp + 0x278], 0
jne 0x140014248
mov ebx, 3
jmp 0x14001454a
cmp dword [rsp + 0x354], 0xc8
je 0x14001425f
mov ebx, 1
jmp 0x14001454a
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], r15
mov byte [rsp + 0x40], 0
mov r9d, SafeArrayGetDim
lea r8, str.wifi:WpsStatus
lea edx, [r9 + 1]
lea rcx, [rsp + 0x40]
call fcn.1400b09f0
mov qword [rsp + 0x50], SafeArrayGetDim
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rax, qword [rsp + 0x40]
mov byte [rax + 0xe], 0
mov qword [rsp + 0x320], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x318], r15
mov byte [rsp + 0x308], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x300]
call fcn.140014b30
nop
lea rax, [rsp + 0x288]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x300]
mov rcx, r14
call fcn.140007380
lea rdi, [rsp + 0x290]
cmp qword [rsp + 0x2a8], 0x10
cmovae rdi, qword [rsp + 0x290]
xor edx, edx
mov r8d, 0x400
lea rsi, [0x140137ec0]
mov rcx, rsi
call fcn.1400b57e0
mov dword [rsp + 0x28], 0x400
mov qword [rsp + 0x20], rsi
or r9d, 0xffffffff
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x140014399
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001438f
mov rcx, rax
call fcn.140050830
jmp 0x140014392
mov rax, r15
mov qword [0x1401370f0], rax
mov r8, rsi
lea rdx, str.wpsstat_s
mov rcx, rax
call fcn.140050c00
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], r15
mov byte [rsp + 0x40], 0
mov r9d, SafeArrayGetDim
lea r8, str.wifi:WpsReason
lea edx, [r9 + 1]
lea rcx, [rsp + 0x40]
call fcn.1400b09f0
mov qword [rsp + 0x50], SafeArrayGetDim
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rax, qword [rsp + 0x40]
mov byte [rax + 0xe], 0
mov qword [rsp + 0x320], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x318], r15
mov byte [rsp + 0x308], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x300]
call fcn.140014b30
nop
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x300]
mov rcx, r14
call fcn.140007380
lea rdi, [rsp + 0x2b8]
cmp qword [rsp + 0x2d0], 0x10
cmovae rdi, qword [rsp + 0x2b8]
xor edx, edx
mov r8d, 0x400
mov rcx, rsi
call fcn.1400b57e0
mov dword [rsp + 0x28], 0x400
mov qword [rsp + 0x20], rsi
or r9d, 0xffffffff
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x1400144de
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400144d4
mov rcx, rax
call fcn.140050830
jmp 0x1400144d7
mov rax, r15
mov qword [0x1401370f0], rax
mov r8, rsi
lea rdx, str.wpsreason_s
mov rcx, rax
call fcn.140050c00
lea rcx, [rsp + 0x290]
cmp qword [rsp + 0x2a8], 0x10
cmovae rcx, qword [rsp + 0x290]
lea rdx, str.failure
call fcn.1400b17d0
test eax, eax
jne 0x14001454a
lea rcx, [rsp + 0x2b8]
cmp qword [rsp + 0x2d0], 0x10
cmovae rcx, qword [rsp + 0x2b8]
lea rdx, str.timeout
call fcn.1400b17d0
mov ecx, 2
test eax, eax
cmove ebx, ecx
cmp qword [rsp + 0x2f8], 8
jb 0x140014562
mov rcx, qword [rsp + 0x2e0]
call fcn.140084dcc
mov qword [rsp + 0x2f8], 7
mov qword [rsp + 0x2f0], r15
mov word [rsp + 0x2e0], 0
cmp qword [rsp + 0x348], 0x10
jb 0x140014598
mov rcx, qword [rsp + 0x330]
call fcn.140084dcc
mov qword [rsp + 0x348], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x340], r15
mov byte [rsp + 0x330], 0
cmp qword [rsp + 0x280], 0x10
jb 0x1400145cc
mov rcx, qword [rsp + 0x268]
call fcn.140084dcc
mov qword [rsp + 0x280], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x278], r15
mov byte [rsp + 0x268], 0
cmp qword [rsp + 0x2d0], 0x10
jb 0x140014600
mov rcx, qword [rsp + 0x2b8]
call fcn.140084dcc
mov qword [rsp + 0x2d0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2c8], r15
mov byte [rsp + 0x2b8], 0
cmp qword [rsp + 0x2a8], 0x10
jb 0x140014634
mov rcx, qword [rsp + 0x290]
call fcn.140084dcc
mov qword [rsp + 0x2a8], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2a0], r15
mov byte [rsp + 0x290], 0
test r12, r12
je 0x140014667
mov rax, qword [rsp + 0xa8]
test rax, rax
je 0x140014667
mov rcx, r12
call rax
test rbp, rbp
je 0x140014675
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.1400b09d0
mov rbx, qword [rsp + 0x440]
add rsp, 0x3f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret