Function at 0x1400130e0
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 + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x440], rbx
mov rax, qword [0x14012ce40]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov rdi, rdx
mov r15, rcx
xor ebx, ebx
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x140013152
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140013148
mov rcx, rax
call fcn.140050830
jmp 0x14001314b
mov rax, rbx
mov qword [0x1401370f0], rax
mov r8, rdi
lea rdx, str.WaitForWPSActiveNew__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], rbx
mov byte [rsp + 0x290], 0
mov qword [rsp + 0x320], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x318], rbx
mov byte [rsp + 0x308], 0
mov r8, rdi
lea rdx, [rsp + 0x70]
mov rcx, r15
call fcn.140008580
test eax, eax
jne 0x14001325d
cmp qword [rsp + 0x320], 0x10
jb 0x1400131d7
mov rcx, qword [rsp + 0x308]
call fcn.140084dcc
mov qword [rsp + 0x320], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x318], rbx
mov byte [rsp + 0x308], 0
cmp qword [rsp + 0x2a8], 0x10
jb 0x14001320b
mov rcx, qword [rsp + 0x290]
call fcn.140084dcc
mov qword [rsp + 0x2a8], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2a0], rbx
mov byte [rsp + 0x290], 0
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140013243
mov rax, qword [rsp + 0xa8]
test rax, rax
je 0x140013243
call rax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140013253
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x140013b27
mov r14d, 5
mov dword [rsp + 0x350], ebx
xor edx, edx
lea r8d, [r14 + 0x7f]
lea rcx, [rsp + 0x354]
call fcn.1400b57e0
mov qword [rsp + 0x280], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x278], rbx
mov byte [rsp + 0x268], 0
mov qword [rsp + 0x348], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x340], rbx
mov byte [rsp + 0x330], 0
mov qword [rsp + 0x2f8], 7
mov qword [rsp + 0x2f0], rbx
mov word [rsp + 0x2e0], 0
xor r8d, r8d
lea edx, [r14 + 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, [r14 + 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
mov ebp, ebx
mov r13, qword [rsp + 0x80]
mov r12, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xf0]
nop
nop
lea r8, [rsp + 0x2e0]
cmp qword [rsp + 0x2f8], 8
cmovae r8, qword [rsp + 0x2e0]
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x70]
call fcn.140007120
nop
lea rdi, [rsp + 0x2b8]
cmp qword [rsp + 0x2d0], 0x10
cmovae rdi, qword [rsp + 0x2b8]
test r13, r13
je 0x1400135ce
test rsi, rsi
jne 0x14001340e
test r12, r12
je 0x1400133f4
lea rdx, str.GetPage
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [rsp + 0xf0], rax
test rax, rax
jne 0x14001340e
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 0x1400135ce
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 0x1400135ce
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 0x800
mov edx, 0x10000
lea rcx, [rsp + 0x30]
call fcn.140006850
mov rbx, qword [rsp + 0x30]
cmp al, 1
jne 0x1400135bb
mov dword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [rsp + 0x350]
mov rdx, rdi
mov rcx, r13
call rsi
test eax, eax
je 0x1400135bb
mov eax, dword [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rax, [rsp + 0x268]
mov r8, qword [rsp + 0x268]
mov r10, qword [rsp + 0x280]
cmp r10, 0x10
cmovae rax, r8
cmp rbx, rax
jb 0x14001350a
lea rcx, [rsp + 0x268]
cmp r10, 0x10
cmovae rcx, r8
mov rax, qword [rsp + 0x278]
add rcx, rax
cmp rcx, rbx
jbe 0x14001350a
lea rax, [rsp + 0x268]
cmp r10, 0x10
cmovae rax, r8
mov r8, rbx
sub r8, rax
mov r9, rdi
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x260]
call fcn.140014b30
jmp 0x1400135bb
cmp rdi, 0xfffffffffffffffe
jbe 0x140013515
call fcn.1400d8c10
cmp qword [rsp + 0x280], rdi
jae 0x140013539
mov r8, qword [rsp + 0x278]
mov rdx, rdi
lea rcx, [rsp + 0x260]
call fcn.140015290
jmp 0x140013565
test rdi, rdi
jne 0x140013565
mov qword [rsp + 0x278], rdi
lea rax, [rsp + 0x268]
cmp qword [rsp + 0x280], 0x10
cmovae rax, qword [rsp + 0x268]
mov byte [rax], dil
jmp 0x1400135bb
test rdi, rdi
je 0x1400135bb
lea rcx, [rsp + 0x268]
mov r10, qword [rsp + 0x280]
cmp r10, 0x10
cmovae rcx, qword [rsp + 0x268]
mov r9, rdi
mov r8, rbx
mov rdx, r10
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 rbx, rbx
je 0x1400135cc
mov rcx, rbx
call fcn.140084dcc
xor ebx, ebx
jmp 0x1400135ce
xor ebx, ebx
cmp qword [rsp + 0x2d0], 0x10
jb 0x1400135e6
mov rcx, qword [rsp + 0x2b8]
call fcn.140084dcc
mov qword [rsp + 0x2d0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2c8], rbx
mov byte [rsp + 0x2b8], 0
cmp qword [rsp + 0x278], 0
jne 0x1400136e0
mov rbx, qword [0x1401370f0]
test rbx, rbx
jne 0x1400136ca
mov ecx, 0x310
call fcn.140084d88
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400136c1
call fcn.140087bd0
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x1400139e2
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 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 0x1400136c3
xor ebx, ebx
mov qword [0x1401370f0], rbx
lea rdx, str.__get_wps_status_returned_NO_data
mov rcx, rbx
call fcn.140050c00
xor ebx, ebx
jmp 0x1400139d5
cmp dword [rsp + 0x354], 0xc8
je 0x1400136f8
mov r14d, 1
jmp 0x1400139d5
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x48], rbx
mov byte [rsp + 0x38], 0
mov r9d, SafeArrayGetDim
lea r8, str.wifi:WpsStatus
lea edx, [r9 + 1]
lea rcx, [rsp + 0x38]
call fcn.1400b09f0
mov qword [rsp + 0x48], SafeArrayGetDim
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rax, qword [rsp + 0x38]
mov byte [rax + 0xe], 0
mov qword [rsp + 0x2d0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2c8], rbx
mov byte [rsp + 0x2b8], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x2b0]
call fcn.140014b30
nop
lea rax, [rsp + 0x288]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x2b0]
mov rcx, r15
call fcn.140007380
lea rdi, [rsp + 0x290]
cmp qword [rsp + 0x2a8], 0x10
cmovae rdi, qword [rsp + 0x290]
xor edx, edx
mov r8d, 0x400
lea rcx, [0x140137ec0]
call fcn.1400b57e0
mov dword [rsp + 0x28], 0x400
lea rax, [0x140137ec0]
mov qword [rsp + 0x20], rax
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 0x140013836
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14001382c
mov rcx, rax
call fcn.140050830
jmp 0x14001382f
mov rax, rbx
mov qword [0x1401370f0], rax
lea r8, [0x140137ec0]
lea rdx, str.wpsstat_s
mov rcx, rax
call fcn.140050c00
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x48], rbx
mov byte [rsp + 0x38], 0
mov r9d, SafeArrayGetDim
lea r8, str.wifi:WpsReason
lea edx, [r9 + 1]
lea rcx, [rsp + 0x38]
call fcn.1400b09f0
mov qword [rsp + 0x48], SafeArrayGetDim
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rax, qword [rsp + 0x38]
mov byte [rax + 0xe], 0
mov qword [rsp + 0x2d0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2c8], rbx
mov byte [rsp + 0x2b8], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x2b0]
call fcn.140014b30
nop
lea rax, [rsp + 0x300]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x2b0]
mov rcx, r15
call fcn.140007380
lea rdi, [rsp + 0x308]
cmp qword [rsp + 0x320], 0x10
cmovae rdi, qword [rsp + 0x308]
xor edx, edx
mov r8d, 0x400
lea rcx, [0x140137ec0]
call fcn.1400b57e0
mov dword [rsp + 0x28], 0x400
lea rax, [0x140137ec0]
mov qword [rsp + 0x20], rax
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 0x14001398a
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140013980
mov rcx, rax
call fcn.140050830
jmp 0x140013983
mov rax, rbx
mov qword [0x1401370f0], rax
lea r8, [0x140137ec0]
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.success
call fcn.1400b17d0
test eax, eax
je 0x1400139ed
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 1
cmp ebp, 0x5a
jae 0x1400139ed
jmp 0x140013360
mov ecx, 0x80004005
call fcn.140006300
nop
mov eax, 2
cmp ebp, 0x5a
cmove r14d, eax
cmp qword [rsp + 0x2f8], 8
jb 0x140013a11
mov rcx, qword [rsp + 0x2e0]
call fcn.140084dcc
mov qword [rsp + 0x2f8], 7
mov qword [rsp + 0x2f0], rbx
mov word [rsp + 0x2e0], 0
cmp qword [rsp + 0x348], 0x10
jb 0x140013a47
mov rcx, qword [rsp + 0x330]
call fcn.140084dcc
mov qword [rsp + 0x348], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x340], rbx
mov byte [rsp + 0x330], 0
cmp qword [rsp + 0x280], 0x10
jb 0x140013a7b
mov rcx, qword [rsp + 0x268]
call fcn.140084dcc
mov qword [rsp + 0x280], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x278], rbx
mov byte [rsp + 0x268], 0
cmp qword [rsp + 0x320], 0x10
jb 0x140013aaf
mov rcx, qword [rsp + 0x308]
call fcn.140084dcc
mov qword [rsp + 0x320], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x318], rbx
mov byte [rsp + 0x308], 0
cmp qword [rsp + 0x2a8], 0x10
jb 0x140013ae3
mov rcx, qword [rsp + 0x290]
call fcn.140084dcc
mov qword [rsp + 0x2a8], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2a0], rbx
mov byte [rsp + 0x290], 0
test r13, r13
je 0x140013b16
mov rdx, qword [rsp + 0xa8]
test rdx, rdx
je 0x140013b16
mov rcx, r13
call rdx
test r12, r12
je 0x140013b24
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, r14d
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