Function at 0x140001510
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov edi, ecx
mov rbx, rdx
lea rcx, str.__TESTARN__n_n
call fcn.140001010
lea rcx, str.Nu_ska_h
call fcn.140001010
mov edx, 1
lea rcx, [0x1400014d0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x14000157f
lea rcx, str._nERROR:_Could_not_set_control_handler.
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp edi, 3
je 0x14000159c
lea rcx, [0x1400035c0]
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x2a0], r12
lea rdx, [0x140005e60]
mov r12, qword [rbx + 8]
mov ecx, 0x202
mov rbx, qword [rbx + 0x10]
mov qword [rsp + 0x68], rbx
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x14000603c], eax
test eax, eax
je 0x1400015d6
lea rcx, str.WSAStartup_failed:__d_n
jmp 0x140001600
xor edx, edx
lea r9, [0x140005058]
lea r8, [0x140006008]
lea ecx, [rdx + 2]
call qword [sym.imp.wlanapi.dll_WlanOpenHandle]
mov dword [0x140006028], eax
test eax, eax
je 0x140001607
lea rcx, str.WlanOpenHandle_failed_with_error:__u_n
mov edx, eax
call fcn.140001010
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rbp - 0x66]
movzx edx, word [rbp - 0x68]
movzx r8d, word [rbp - 0x6a]
movzx eax, word [rbp - 0x64]
movzx r10d, word [rbp - 0x6e]
movzx r9d, word [rbp - 0x70]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x30], edx
mov edx, 0x3c
mov dword [rsp + 0x28], r8d
lea r8, str._04d__0d2__02d___02d__02d__02d.txt
mov dword [rsp + 0x20], r10d
call fcn.140001470
lea r9, [rbp - 0x30]
mov edx, 0x3c
lea r8, str.log_ws
lea rcx, [rbp + 0x50]
call fcn.140001470
lea r9, [rbp - 0x30]
mov edx, 0x3c
lea r8, str.err_ws
lea rcx, [rbp + 0xd0]
call fcn.140001470
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov qword [0x140006000], rax
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx eax, word [rbp - 0x48]
xor r8d, r8d
xor edx, edx
mov word [0x140005ff8], ax
xor ecx, ecx
mov dword [0x14000503c], 2
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
xor edi, edi
lea rcx, [rbp + 0x50]
xor r9d, r9d
mov qword [0x140005050], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
lea edx, [rdi + 4]
mov dword [rsp + 0x20], 4
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140005048], rax
cmp rax, 0xffffffffffffffff
jne 0x14000171e
lea rdx, [rbp + 0x50]
lea rcx, str.Terminal_failure:_Unable_to_create_open_file___s__for_writing._n
call fcn.140001010
jmp 0x140001777
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0xd0]
mov dword [rsp + 0x20], 4
lea edx, [r9 + 4]
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140005040], rax
cmp rax, 0xffffffffffffffff
jne 0x14000176d
lea rdx, [rbp + 0xd0]
lea rcx, str.Terminal_failure:_Unable_to_create_open_file___s__for_writing._n
call fcn.140001010
jmp 0x140001777
mov dword [0x140005038], 2
mov qword [rsp + 0x290], rsi
mov qword [rsp + 0x2a8], r13
mov byte [0x1400060a4], 1
movzx eax, byte [0x1400060a4]
mov qword [rsp + 0x268], r14
mov qword [rsp + 0x260], r15
test al, al
je 0x140001b0f
movabs rsi, 0x346dc5d63886594b
movabs r15, 0xfe624e212ac18000
xorps xmm0, xmm0
mov qword [rsp + 0x50], rdi
xor eax, eax
lea rcx, [rbp - 0x60]
movups xmmword [rsp + 0x70], xmm0
mov dword [rbp - 0x80], eax
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rbp - 0x60]
lea r8, [0x140006020]
mov dword [rsp + 0x58], eax
mov eax, dword [rbp - 0x5c]
mov dword [rsp + 0x5c], eax
mov rax, rsi
mov rcx, qword [rsp + 0x58]
add rcx, r15
imul rcx
mov rcx, qword [0x140005058]
mov r13, rdx
xor edx, edx
sar r13, 0xb
mov rax, r13
shr rax, 0x3f
add r13, rax
mov qword [rbp - 0x78], r13
call qword [sym.imp.wlanapi.dll_WlanEnumInterfaces]
mov dword [0x140006028], eax
test eax, eax
je 0x14000184a
mov edx, eax
lea rcx, str.WlanEnumInterfaces_failed_with_error:__u_n
call fcn.140001010
mov r15d, dword [rsp + 0x54]
movzx esi, dil
jmp 0x140001a32
mov rdx, qword [0x140006020]
lea rcx, str.Num_Entries:__lu_n
mov edx, dword [rdx]
call fcn.140001010
mov rdx, qword [0x140006020]
lea rcx, str.Current_Index:__lu_n
mov edx, dword [rdx + 4]
call fcn.140001010
mov rdx, qword [0x140006020]
mov r14d, edi
mov r15d, dword [rsp + 0x54]
movzx esi, byte [rsp + 0x50]
cmp dword [rdx], 0
jle 0x1400019fa
lea r13, [0x140006018]
nop dword [rax]
movsxd rax, r14d
lea rcx, str.__Interface_Index__u_:_t__lu_n
imul rax, rax, 0x214
mov r8d, r14d
add rax, 8
add rax, rdx
mov edx, r14d
mov qword [0x140006030], rax
call fcn.140001010
mov rcx, qword [0x140006030]
lea rdx, [0x140006040]
mov r8d, 0x27
call qword [sym.imp.ole32.dll_StringFromGUID2]
mov dword [0x14000603c], eax
test eax, eax
jne 0x1400018fc
lea rcx, str.StringFromGUID2_failed._n
call fcn.140001010
jmp 0x140001949
lea r8, [0x140006040]
mov edx, r14d
lea rcx, str.__InterfaceGUID__d_:__ws_n
call fcn.140001010
mov rdx, qword [0x140006030]
xor r9d, r9d
mov rcx, qword [0x140005058]
xor r8d, r8d
mov qword [rsp + 0x20], r13
call qword [sym.imp.wlanapi.dll_WlanGetAvailableNetworkList]
mov dword [0x140006028], eax
test eax, eax
je 0x14000195c
mov edx, eax
lea rcx, str.WlanGetAvailableNetworkList_failed_with_error:__u_n
call fcn.140001010
mov r11, qword [0x140006018]
mov dword [0x140006038], 1
jmp 0x1400019da
mov r11, qword [0x140006018]
xor dil, dil
xor r9d, r9d
mov ebx, dword [r11]
test ebx, ebx
je 0x1400019c4
movsxd rax, r9d
imul r10, rax, 0x274
mov rax, r12
add r10, 8
add r10, r11
mov r8, r10
mov qword [0x140006010], r10
sub r8, r12
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400019a5
add rax, 2
test ecx, ecx
jne 0x140001991
test edx, edx
jne 0x1400019b7
mov r15d, dword [r10 + 0x25c]
mov dil, 1
movzx esi, dil
inc r9d
cmp r9d, ebx
jb 0x140001970
test dil, dil
jne 0x1400019da
cmp dword [0x1400060a0], 1
jne 0x1400019da
xor sil, sil
mov dword [0x1400060a0], 2
mov rdx, qword [0x140006020]
inc r14d
cmp r14d, dword [rdx]
jl 0x1400018a0
mov r13, qword [rbp - 0x78]
xor edi, edi
mov rbx, qword [rsp + 0x68]
jmp 0x140001a01
mov r11, qword [0x140006018]
test r11, r11
je 0x140001a1d
mov rcx, r11
call qword [sym.imp.wlanapi.dll_WlanFreeMemory]
mov rdx, qword [0x140006020]
mov qword [0x140006018], rdi
test rdx, rdx
je 0x140001a32
mov rcx, rdx
call qword [sym.imp.wlanapi.dll_WlanFreeMemory]
mov qword [0x140006020], rdi
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140001be0
lea rcx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rbp - 0x58]
movabs rcx, 0xfe624e212ac18000
mov dword [rsp + 0x60], eax
mov eax, dword [rbp - 0x54]
mov dword [rsp + 0x64], eax
movabs rax, 0x346dc5d63886594b
add rcx, qword [rsp + 0x60]
imul rcx
lea rcx, str.Delta:__llu_n
mov rbx, rdx
sar rbx, 0xb
mov rax, rbx
shr rax, 0x3f
add rbx, rax
sub rbx, r13
mov rdx, rbx
call fcn.140001010
cmp rbx, 0xea60
ja 0x140001bc5
movzx r8d, sil
lea rcx, str.date:_llu_navailable:_d_nsignal:_d__n
mov r9d, r15d
mov rdx, r13
call fcn.140001320
mov eax, dword [rbp - 0x80]
lea rcx, str.avg:_llu_nmax:_llu_nmin:_llu_nlost:_d_n
mov r9d, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x74]
mov edx, dword [rsp + 0x7c]
mov dword [rsp + 0x20], eax
call fcn.140001320
mov ecx, 0xea60
sub ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [0x1400060a4]
movabs rsi, 0x346dc5d63886594b
mov rbx, qword [rsp + 0x68]
movabs r15, 0xfe624e212ac18000
test al, al
jne 0x1400017c1
mov rcx, qword [0x140005050]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [0x140005038], 2
mov qword [0x140005050], 0xffffffffffffffff
je 0x140001b60
mov rcx, qword [0x140005048]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140005040]
mov qword [0x140005048], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140005040], 0xffffffffffffffff
mov rcx, qword [0x140005058]
xor edx, edx
call qword [sym.imp.wlanapi.dll_WlanCloseHandle]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rcx, [0x1400037a8]
call fcn.140001010
mov r14, qword [rsp + 0x268]
xor eax, eax
mov r13, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x290]
mov r15, qword [rsp + 0x260]
mov r12, qword [rsp + 0x2a0]
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140001f80
add rsp, 0x270
pop rdi
pop rbx
pop rbp
ret
lea rcx, str.Delta_larger_than_delay__exiting._n
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3