Function at 0x140062570
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 [0x1400c7008]
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.140062230
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.140084ad0
mov dword [r12], eax
mov ecx, dword [r12]
test ecx, ecx
jne 0x140062890
test ebx, ebx
jns 0x140062693
cmp dword [0x1400cfe94], 1
jb 0x140062695
mov ecx, 0x1000121
call fcn.14000e3d0
test al, al
je 0x140062695
lea rdx, str.TCP:_select___failed
mov ecx, 0x1000121
call fcn.14000e000
jmp 0x140062695
jg 0x1400626d0
cmp qword [0x1400cfe58], 0
je 0x1400626b7
mov edx, 1
call fcn.140026d50
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
jmp 0x140062620
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
jmp 0x140062620
movzx r8d, r13b
mov rdx, rdi
mov rcx, r15
call fcn.1400623a0
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140062695
xor ecx, ecx
mov qword [rsp + 0x50], rcx
test r14, r14
je 0x1400627fb
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.140061740
mov r10, qword [rsp + 0x50]
test r10, r10
je 0x1400627fb
mov r9, qword [rbp - 0x80]
mov rcx, r10
mov rdx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x74]
nop
cmp ebx, 2
je 0x14006275e
cmp ebx, 0x17
jne 0x140062908
mov rax, qword [rcx + 0x20]
cmp r9, qword [rax + 0x10]
jne 0x14006276c
cmp rdx, qword [rax + 8]
jmp 0x140062766
mov rax, qword [rcx + 0x20]
cmp r8d, dword [rax + 4]
je 0x1400627f2
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x140062740
mov ecx, 0x40
call fcn.14000e3d0
test al, al
je 0x1400627aa
lea r9, [rsp + 0x58]
mov r8d, 6
mov rcx, rdi
call fcn.140065290
mov r8, rax
lea rdx, str.TCP_NOTE:_Rejected_connection_attempt_from__s_due_to___remote_setting
mov ecx, 0x40
call fcn.14000e000
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x1400627c7
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x140062695
mov ecx, 0x110
call fcn.14000e3d0
test al, al
je 0x1400627e6
lea rdx, str.TCP:_close_socket_failed__new_sd_
mov ecx, 0x110
call fcn.14000e000
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 0x140062838
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140062838
mov ecx, 0x110
call fcn.14000e3d0
test al, al
je 0x14006282c
lea rdx, str.TCP:_close_socket_failed__sd_
mov ecx, 0x110
call fcn.14000e000
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
mov rcx, rdi
call fcn.1400624c0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140062861
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 0x140062850
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x14006288b
nop dword [rax + rax]
mov rcx, qword [rdi + 0x10]
mov rbx, qword [rdi]
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140062870
mov rax, rsi
jmp 0x1400628de
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400628b1
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 0x1400628a0
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x1400628db
nop dword [rax + rax]
mov rcx, qword [rdi + 0x10]
mov rbx, qword [rdi]
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x1400628c0
mov rax, r15
mov rsi, qword [rsp + 0x2b8]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140088150
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
lea r8, [0x14008b3f4]
mov edx, 0x2e6
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.h
call fcn.14000e4c0
int3