Function at 0x140064240
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
movups xmm0, xmmword [rdx]
mov eax, dword [rdx + 0x18]
mov r10, r9
movsd xmm1, qword [rdx + 0x10]
mov r14, r8
movzx r8d, byte [rbp + 0x220]
mov rdi, rdx
movups xmmword [rsp + 0x70], xmm0
mov dword [rbp - 0x78], eax
xor eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x58], 0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], rax
mov r9b, 1
mov dword [rdx + 0x18], eax
mov r15, rcx
mov rdx, r10
mov qword [rsp + 0x60], 0
movsd qword [rbp - 0x80], xmm1
call fcn.140063ee0
mov r12, qword [rbp + 0x230]
lea ecx, [r15 + 1]
movzx r13d, byte [rbp + 0x228]
movsxd rax, r15d
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x2b8], rsi
nop dword [rax + rax]
mov qword [rbp - 0x68], rax
lea rdx, [rbp - 0x70]
lea rax, [rsp + 0x68]
mov dword [rbp - 0x70], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x68], 0
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.140086800
mov dword [r12], eax
mov ecx, dword [r12]
test ecx, ecx
jne 0x140064567
test ebx, ebx
jns 0x140064363
cmp dword [0x1400d3ed4], 1
jb 0x140064365
mov ecx, 0x1000121
call fcn.14000ec70
test al, al
je 0x140064365
lea rdx, str.TCP:_select___failed
mov ecx, 0x1000121
call fcn.14000e820
jmp 0x140064365
jg 0x1400643a0
cmp qword [0x1400d3e98], 0
je 0x140064387
mov edx, 1
call fcn.140027440
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
jmp 0x1400642f0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
jmp 0x1400642f0
movzx r8d, r13b
mov rdx, rdi
mov rcx, r15
call fcn.140064040
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140064365
xor ecx, ecx
mov qword [rsp + 0x50], rcx
test r14, r14
je 0x1400644cb
movzx ebx, word [rsp + 0x70]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r9d, [rcx + 1]
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rcx
call fcn.1400632a0
mov r10, qword [rsp + 0x50]
test r10, r10
je 0x1400644cb
mov r9, qword [rbp - 0x80]
mov rcx, r10
mov rdx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x74]
nop
cmp ebx, 2
je 0x14006442e
cmp ebx, 0x17
jne 0x1400645df
mov rax, qword [rcx + 0x20]
cmp r9, qword [rax + 0x10]
jne 0x14006443c
cmp rdx, qword [rax + 8]
jmp 0x140064436
mov rax, qword [rcx + 0x20]
cmp r8d, dword [rax + 4]
je 0x1400644c2
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x140064410
mov ecx, 0x40
call fcn.14000ec70
test al, al
je 0x14006447a
lea r9, [rsp + 0x58]
mov r8d, 6
mov rcx, rdi
call fcn.140066da0
mov r8, rax
lea rdx, str.TCP_NOTE:_Rejected_connection_attempt_from__s_due_to___remote_setting
mov ecx, 0x40
call fcn.14000e820
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x140064497
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x140064365
mov ecx, 0x110
call fcn.14000ec70
test al, al
je 0x1400644b6
lea rdx, str.TCP:_close_socket_failed__new_sd_
mov ecx, 0x110
call fcn.14000e820
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
mov rcx, r10
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r13b, r13b
jne 0x140064508
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140064508
mov ecx, 0x110
call fcn.14000ec70
test al, al
je 0x1400644fc
lea rdx, str.TCP:_close_socket_failed__sd_
mov ecx, 0x110
call fcn.14000e820
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
mov rcx, rdi
call fcn.140064170
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140064531
nop word [rax + rax]
mov rbx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
test rbx, rbx
jne 0x140064520
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x140064562
nop dword [rax + rax]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 8]
mov rbx, qword [rdi]
call qword [0x14008d1f0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140064540
mov rax, rsi
jmp 0x1400645b5
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140064582
mov rbx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
test rbx, rbx
jne 0x140064571
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x1400645b2
nop dword [rax]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 8]
mov rbx, qword [rdi]
call qword [0x14008d1f0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140064590
mov rax, r15
mov rsi, qword [rsp + 0x2b8]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14008aca0
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
lea r8, [0x14008d704]
mov edx, 0x2e6
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.h
call fcn.14000ed60
int3