Function at 0x1400035b0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x240
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x50]
call fcn.140001150
nop
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x140003616
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x260], rax
test rax, rax
je 0x14000360d
mov rcx, rax
call fcn.140023810
jmp 0x14000360f
xor eax, eax
mov qword [0x1400ec150], rax
lea rcx, str._null_
mov r9, rsi
test rsi, rsi
cmove r9, rcx
mov r8, rdi
lea rdx, str.StartWPS__s___s_
mov rcx, rax
call fcn.140023be0
mov r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400017c0
test eax, eax
jne 0x14000367d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140003666
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x140003666
call rax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140003676
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x14000386e
test rsi, rsi
jne 0x1400036f2
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x1400036e9
mov rax, qword [rsp + 0x130]
test rax, rax
jne 0x1400036de
test rdi, rdi
je 0x1400036cf
lea rdx, str.RunWPS
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x130], rax
test rax, rax
jne 0x1400036de
lea rcx, str.EWSIntf::run_WPS:_Function_not_found_in_DLL:_RunWPS_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1400036e9
lea rcx, str.EWSIntf::run_WPS:_Attempting_to_lookup_RunWPS_with_no_DLL_handle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1400036e9
mov rcx, rbx
call rax
test eax, eax
setne sil
movzx esi, sil
jmp 0x140003847
mov qword [rsp + 0x40], 7
xor r8d, r8d
mov qword [rsp + 0x38], r8
mov word [rsp + 0x28], r8w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rbx, rcx
movabs rax, 0x7ffffffffffffffe
cmp rcx, rax
jbe 0x140003738
call fcn.1400a51a0
mov r8, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rbx
jae 0x14000374e
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140006eb0
jmp 0x14000376e
test rbx, rbx
jne 0x14000376e
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rax, qword [rsp + 0x28]
mov word [rax], bx
jmp 0x1400037b5
test rbx, rbx
je 0x1400037b5
lea rcx, [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x28]
lea rdi, [rbx + rbx]
add rdx, rdx
mov r9, rdi
mov r8, rsi
call fcn.14007d8e0
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rax, qword [rsp + 0x28]
mov word [rdi + rax], 0
xor sil, sil
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140003830
mov rax, qword [rsp + 0x138]
test rax, rax
jne 0x140003814
test rdi, rdi
je 0x140003805
lea rdx, str.RunWPSSSIDW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x138], rax
test rax, rax
jne 0x140003814
lea rcx, str.EWSIntf::run_WPS:_Function_not_found_in_DLL:_RunWPSSSIDW_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140003830
lea rcx, str.EWSIntf::run_WPS:_Attempting_to_lookup_RunWPSSSIDW_with_no_DLL_handle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140003830
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov rcx, rbx
call rax
test eax, eax
setne sil
movzx esi, sil
cmp qword [rsp + 0x40], 8
jb 0x140003847
mov rcx, qword [rsp + 0x28]
call fcn.140051bc8
nop
test rbx, rbx
je 0x14000385e
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x14000385e
mov rcx, rbx
call rax
test rdi, rdi
je 0x14000386c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret