Function at 0x140002ca0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x250
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x60]
call fcn.140001150
nop
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x140002d06
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x278], rax
test rax, rax
je 0x140002cfd
mov rcx, rax
call fcn.140023810
jmp 0x140002cff
xor eax, eax
mov qword [0x1400ec150], rax
mov r8, rdi
lea rdx, str.StartWifiScan__s_
mov rcx, rax
call fcn.140023be0
mov r8, rdi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400017c0
test eax, eax
jne 0x140002d5c
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140002d45
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x140002d45
call rax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002d55
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140003035
test rsi, rsi
jne 0x140002de5
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x140002ddc
mov rax, qword [rsp + 0x170]
test rax, rax
jne 0x140002dd1
test rbx, rbx
je 0x140002dba
lea rdx, str.StartWifiScan
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x170], rax
test rax, rax
jne 0x140002dd1
mov dword [rsp + 0x60], 0x7f
lea rcx, str.EWSIntf::start_wifi_scan:_Function_not_found_in_DLL:_StartWifiScan_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140002ddc
mov dword [rsp + 0x60], 6
lea rcx, str.EWSIntf::start_wifi_scan:_Attempting_to_lookup_StartWifiScan_with_no_DLL_handle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140002ddc
mov rcx, rdi
call rax
test eax, eax
setne sil
movzx esi, sil
jmp 0x140002f62
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 0x140002e2b
call fcn.1400a51a0
mov r8, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rbx
jae 0x140002e41
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140006eb0
jmp 0x140002e61
test rbx, rbx
jne 0x140002e61
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rax, qword [rsp + 0x28]
mov word [rax], bx
jmp 0x140002ea8
test rbx, rbx
je 0x140002ea8
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 rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x140002f33
mov rax, qword [rsp + 0x178]
test rax, rax
jne 0x140002f17
test rbx, rbx
je 0x140002f00
lea rdx, str.StartWifiScanSSIDW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x178], rax
test rax, rax
jne 0x140002f17
mov dword [rsp + 0x60], 0x7f
lea rcx, str.EWSIntf::start_wifi_scan:_Function_not_found_in_DLL:_StartWifiScanSSIDW_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140002f33
mov dword [rsp + 0x60], 6
lea rcx, str.EWSIntf::start_wifi_scan:_Attempting_to_lookup_StartWifiScanSSIDW_with_no_DLL_handle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140002f33
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov rcx, rdi
call rax
test eax, eax
setne sil
movzx esi, sil
cmp qword [rsp + 0x40], 8
jb 0x140002f49
mov rcx, qword [rsp + 0x28]
call fcn.140051bc8
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], 0
mov word [rsp + 0x28], 0
test esi, esi
jne 0x14000300b
or esi, 0xffffffff
test rdi, rdi
je 0x140002f99
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x140002f9d
lea rdx, [rsp + 0x278]
mov rcx, rdi
call rax
test eax, eax
je 0x140002f9d
mov esi, dword [rsp + 0x278]
jmp 0x140002f9d
mov esi, dword [rsp + 0x60]
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x140002fd0
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140002fc7
mov rcx, rax
call fcn.140023810
jmp 0x140002fc9
xor eax, eax
mov qword [0x1400ec150], rax
lea r8, str.ewsinfo.start_wifi_scan__
mov edx, esi
mov rcx, rax
call fcn.140023e20
nop
test rdi, rdi
je 0x140002ff9
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x140002ff9
mov rcx, rdi
call rax
test rbx, rbx
je 0x140003007
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140003035
test rdi, rdi
je 0x140003022
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x140003022
mov rcx, rdi
call rax
test rbx, rbx
je 0x140003030
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret