Function at 0x14000c9b0
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.140006910
nop
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x14000ca16
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x278], rax
test rax, rax
je 0x14000ca0d
mov rcx, rax
call fcn.140050830
jmp 0x14000ca0f
xor eax, eax
mov qword [0x1401370f0], rax
mov r8, rdi
lea rdx, str.StartWifiScanOld__s_
mov rcx, rax
call fcn.140050c00
mov r8, rdi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140008580
test eax, eax
jne 0x14000ca6c
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000ca55
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x14000ca55
call rax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000ca65
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x14000cd45
test rsi, rsi
jne 0x14000caf5
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x14000caec
mov rax, qword [rsp + 0x170]
test rax, rax
jne 0x14000cae1
test rbx, rbx
je 0x14000caca
lea rdx, str.StartWifiScan
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x170], rax
test rax, rax
jne 0x14000cae1
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 0x14000caec
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 0x14000caec
mov rcx, rdi
call rax
test eax, eax
setne sil
movzx esi, sil
jmp 0x14000cc72
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 0x14000cb3b
call fcn.1400d8c10
mov r8, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rbx
jae 0x14000cb51
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400156c0
jmp 0x14000cb71
test rbx, rbx
jne 0x14000cb71
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rax, qword [rsp + 0x28]
mov word [rax], bx
jmp 0x14000cbb8
test rbx, rbx
je 0x14000cbb8
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.1400b09f0
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 0x14000cc43
mov rax, qword [rsp + 0x178]
test rax, rax
jne 0x14000cc27
test rbx, rbx
je 0x14000cc10
lea rdx, str.StartWifiScanSSIDW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x178], rax
test rax, rax
jne 0x14000cc27
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 0x14000cc43
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 0x14000cc43
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 0x14000cc59
mov rcx, qword [rsp + 0x28]
call fcn.140084dcc
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], 0
mov word [rsp + 0x28], 0
test esi, esi
jne 0x14000cd1b
or esi, 0xffffffff
test rdi, rdi
je 0x14000cca9
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x14000ccad
lea rdx, [rsp + 0x278]
mov rcx, rdi
call rax
test eax, eax
je 0x14000ccad
mov esi, dword [rsp + 0x278]
jmp 0x14000ccad
mov esi, dword [rsp + 0x60]
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x14000cce0
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000ccd7
mov rcx, rax
call fcn.140050830
jmp 0x14000ccd9
xor eax, eax
mov qword [0x1401370f0], rax
lea r8, str.ewsinfo.start_wifi_scan__
mov edx, esi
mov rcx, rax
call fcn.140050e40
nop
test rdi, rdi
je 0x14000cd09
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x14000cd09
mov rcx, rdi
call rax
test rbx, rbx
je 0x14000cd17
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x14000cd45
test rdi, rdi
je 0x14000cd32
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x14000cd32
mov rcx, rdi
call rax
test rbx, rbx
je 0x14000cd40
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