Function at 0x1401c3660
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1038]
mov eax, 0x1138
call fcn.140279ab0
sub rsp, rax
mov rax, qword [0x1403dd7c0]
xor rax, rsp
mov qword [rbp + 0x1020], rax
mov byte [rsp + 0x31], r9b
movzx edi, r8b
mov byte [rsp + 0x30], r8b
mov r15d, edx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
mov rbx, qword [rbp + 0x10a0]
mov qword [rsp + 0x40], rbx
mov r14, qword [rbp + 0x10a8]
mov rcx, rbx
call fcn.14011ec10
test dil, dil
je 0x1401c36d4
mov r15d, 1
jmp 0x1401c36e0
mov eax, 0x1499700
test r15d, r15d
cmove r15d, eax
mov rax, qword [rbx + 8]
test rax, rax
je 0x1401c370c
cmp dword [rax + 0xd0], 0
jne 0x1401c370c
mov rcx, rbx
call fcn.14011ec90
test al, al
je 0x1401c370c
mov rax, qword [rbx + 8]
mov dword [rax + 0xd0], 0x42
cmp qword [rsi + 0x298], 0xffffffffffffffff
jne 0x1401c372f
mov rax, qword [r14]
lea rdx, str.invalid_socket__not_ready_for_writing.
mov rcx, r14
call qword [rax + 0x28]
mov byte [rbx + 0x2a], 1
jmp 0x1401c3ced
mov r12d, 0x32
mov rax, qword [rbx + 8]
test rax, rax
je 0x1401c374e
mov eax, dword [rax + 0xd0]
cmp eax, r12d
cmovb eax, r12d
mov r12d, eax
test r15d, r15d
je 0x1401c3a30
xor ebx, ebx
mov edx, ebx
mov eax, ebx
mov edi, ebx
mov r13d, ebx
cmp byte [rsp + 0x30], al
jne 0x1401c37a2
mov edi, r15d
sub edi, r13d
cmp r15d, edi
cmovbe edi, r12d
test r12d, r12d
je 0x1401c3781
cmp edi, r12d
cmova edi, r12d
cmp edi, r15d
cmova edi, r15d
mov eax, 0x10624dd3
mul edi
shr edx, 6
imul eax, edx, 0x3e8
mov ecx, edi
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x60], edx
mov dword [rsp + 0x64], eax
lea rcx, [rsp + 0x70]
call fcn.1400d3690
lea rax, vtable.ckFdSet.0
mov qword [rsp + 0x70], rax
mov edx, 0x3004bc8d
mov dword [rbp - 0x80], edx
mov dword [rbp + 0x1010], edx
mov dword [rbp - 0x78], ebx
xorps xmm0, xmm0
movups xmmword [rbp + 0xf90], xmm0
movups xmmword [rbp + 0xfa0], xmm0
movups xmmword [rbp + 0xfb0], xmm0
movups xmmword [rbp + 0xfc0], xmm0
movups xmmword [rbp + 0xfd0], xmm0
movups xmmword [rbp + 0xfe0], xmm0
movups xmmword [rbp + 0xff0], xmm0
movups xmmword [rbp + 0x1000], xmm0
movsxd r9, dword [rsi + 0x298]
test r9d, r9d
js 0x1401c3c67
mov edx, ebx
test ebx, ebx
je 0x1401c3831
mov eax, edx
cmp qword [rbp + rax*8 - 0x70], r9
je 0x1401c3831
inc edx
cmp edx, ebx
jb 0x1401c3822
test edx, edx
jne 0x1401c3847
cmp ebx, 0x200
jae 0x1401c3847
mov eax, edx
mov qword [rbp + rax*8 - 0x70], r9
inc dword [rbp - 0x78]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.1400d36b0
nop
mov rsi, rbx
cmp byte [rsp + 0x31], 0
je 0x1401c3950
mov ecx, 0x10a8
call fcn.140279230
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1401c38a1
mov rcx, rax
call fcn.1400d3690
lea rax, vtable.ckFdSet.0
mov qword [rbx], rax
mov eax, 0x3004bc8d
mov dword [rbx + 0x10], eax
mov dword [rbx + 0x10a0], eax
jmp 0x1401c38a8
xor ebx, ebx
mov eax, 0x3004bc8d
lea rsi, [rbx + 0x18]
mov dword [rsi], 0
xorps xmm0, xmm0
movups xmmword [rbx + 0x1020], xmm0
movups xmmword [rbx + 0x1030], xmm0
movups xmmword [rbx + 0x1040], xmm0
movups xmmword [rbx + 0x1050], xmm0
movups xmmword [rbx + 0x1060], xmm0
movups xmmword [rbx + 0x1070], xmm0
movups xmmword [rbx + 0x1080], xmm0
movups xmmword [rbx + 0x1090], xmm0
cmp dword [rbx + 0x10], eax
je 0x1401c38fe
xor ecx, ecx
call fcn.1400a1ee0
mov eax, 0x3004bc8d
cmp dword [rbx + 0x10a0], eax
je 0x1401c390d
xor ecx, ecx
call fcn.1400a1ee0
mov qword [rsp + 0x58], rbx
mov rax, qword [rsp + 0x38]
movsxd r9, dword [rax + 0x298]
test r9d, r9d
js 0x1401c3c59
xor edx, edx
mov ecx, dword [rsi]
test ecx, ecx
je 0x1401c393d
nop
cmp qword [rbx + rdx*8 + 0x20], r9
je 0x1401c393d
inc edx
cmp edx, ecx
jb 0x1401c3930
cmp edx, ecx
jne 0x1401c3950
cmp ecx, 0x200
jae 0x1401c3950
mov qword [rbx + rdx*8 + 0x20], r9
inc dword [rsi]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, rsi
lea r8, [rbp - 0x78]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
js 0x1401c3bd8
test eax, eax
jg 0x1401c3a72
cmp byte [rsp + 0x30], 0
jne 0x1401c3a62
add r13d, edi
cmp r13d, r15d
jae 0x1401c39f5
mov rdx, r14
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.14011ed90
test al, al
jne 0x1401c39da
lea rcx, [rsp + 0x50]
call fcn.1400d37a0
nop
lea rax, vtable.ckFdSet.0
mov qword [rsp + 0x70], rax
xor ebx, ebx
mov dword [rbp - 0x80], ebx
mov dword [rbp + 0x1010], ebx
lea rcx, [rsp + 0x70]
call fcn.1400d3770
mov rsi, qword [rsp + 0x38]
jmp 0x1401c3768
mov byte [rbx + 0x29], 1
mov rax, qword [r14]
lea rdx, str.socket_write_aborted_by_application..
mov rcx, r14
call qword [rax + 0x28]
xor bl, bl
jmp 0x1401c3c5b
lea rcx, [rsp + 0x50]
call fcn.1400d37a0
nop
lea rax, vtable.ckFdSet.0
mov qword [rsp + 0x70], rax
xor eax, eax
mov dword [rbp - 0x80], eax
mov dword [rbp + 0x1010], eax
lea rcx, [rsp + 0x70]
call fcn.1400d3770
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
movzx edi, byte [rsp + 0x30]
mov rcx, r14
cmp byte [rsp + 0x31], 0
je 0x1401c3c8f
mov rax, qword [r14]
lea rdx, str.timeout_waiting_for_connect_to_complete_
call qword [rax + 0x28]
mov r8d, r15d
lea rdx, str.timeoutMs
mov rcx, r14
call fcn.1400f6d60
jmp 0x1401c3ce9
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x28], 1
xor bl, bl
jmp 0x1401c3c5b
lea rdx, [rbp - 0x78]
mov rdi, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x298]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1401c3c59
test rsi, rsi
je 0x1401c3b4d
mov rdx, rsi
mov rcx, qword [rdi + 0x298]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401c3b4d
mov rax, qword [r14]
lea rdx, str.Connection_attempt_failed.
mov rcx, r14
call qword [rax + 0x30]
mov r8d, r15d
lea rdx, str.maxWaitTimeMs
mov rcx, r14
call fcn.1400f6d60
cmp r15d, r13d
jbe 0x1401c3b34
lea eax, [r13 - 0x4e20]
cmp eax, 0x7d0
ja 0x1401c3b34
mov rax, qword [r14]
lea rdx, str.The_Windows_TCP_IP_stack_has_a_system_wide_retry_delay_and_retry_count_for_the_initial_connection.
mov rcx, r14
call qword [rax + 0x30]
mov rax, qword [r14]
lea rdx, str.The_default_settings_result_in_an_overall_21_second_timeout.
mov rcx, r14
call qword [rax + 0x30]
mov rax, qword [r14]
lea rdx, str.If_you_see_this_error_message_21_seconds_after_the_connection_attempt_is_initiated__it_usually_means_one_of_two_things:
mov rcx, r14
call qword [rax + 0x30]
mov rax, qword [r14]
lea rdx, str._1__The_server_is_not_there__not_listening_for_connection_attempts_on_the_specified_IP_address_and_port_.
mov rcx, r14
call qword [rax + 0x30]
mov rax, qword [r14]
lea rdx, str._2__A_firewall_is_blocking_your_connection_attempt_from_reaching_the_server.
mov rcx, r14
call qword [rax + 0x30]
mov r8d, r13d
lea rdx, str.totalMsWaitedSoFar
mov rcx, r14
call fcn.1400f6d60
xor bl, bl
jmp 0x1401c3c5b
xor r8d, r8d
lea rdx, str.nfds
mov rcx, r14
call fcn.1400f6d60
mov r8d, ebx
lea rdx, str.nStatus
mov rcx, r14
call fcn.1400f6d60
mov r8d, dword [rdi + 0x298]
lea rdx, str.socketNum
mov rcx, r14
call fcn.1400f6d60
mov r8d, r15d
lea rdx, str.timeoutMs
mov rcx, r14
call fcn.1400f6d60
movzx r8d, byte [rsp + 0x30]
lea rdx, str.bPoll
mov rcx, r14
call fcn.1400f6d60
movzx r8d, byte [rsp + 0x31]
lea rdx, str.bForConnect
mov rcx, r14
call fcn.1400f6d60
mov rax, qword [r14]
lea rdx, str.Socket_select_for_writeability_returned_unexpected_result_
mov rcx, r14
call qword [rax + 0x30]
jmp 0x1401c3c59
mov rcx, r14
call fcn.1400f76f0
xor r8d, r8d
lea rdx, str.nfds
mov rcx, r14
call fcn.1400f6d60
mov rax, qword [rsp + 0x38]
mov r8d, dword [rax + 0x298]
lea rdx, str.socketNum
mov rcx, r14
call fcn.1400f6d60
mov r8d, r15d
lea rdx, str.timeoutMs
mov rcx, r14
call fcn.1400f6d60
movzx r8d, byte [rsp + 0x30]
lea rdx, str.bPoll
mov rcx, r14
call fcn.1400f6d60
movzx r8d, byte [rsp + 0x31]
lea rdx, str.bForConnect
mov rcx, r14
call fcn.1400f6d60
mov rax, qword [r14]
lea rdx, str.Socket_select_for_writeable_returned_an_error_
mov rcx, r14
call qword [rax + 0x28]
mov bl, 1
lea rcx, [rsp + 0x50]
call fcn.1400d37a0
jmp 0x1401c3c69
mov bl, 1
lea rax, vtable.ckFdSet.0
mov qword [rsp + 0x70], rax
xor eax, eax
mov dword [rbp - 0x80], eax
mov dword [rbp + 0x1010], eax
lea rcx, [rsp + 0x70]
call fcn.1400d3770
movzx eax, bl
jmp 0x1401c3cef
mov r8d, dword [rsi + 0x298]
lea rdx, str.socketNum
call fcn.1400f6d60
mov r8d, r15d
lea rdx, str.timeoutMs
mov rcx, r14
call fcn.1400f6d60
movzx r8d, dil
lea rdx, str.bPoll
mov rcx, r14
call fcn.1400f6d60
xor r8d, r8d
lea rdx, str.bForConnect
mov rcx, r14
call fcn.1400f6d60
mov rax, qword [r14]
lea rdx, str.socket_is_not_ready_for_writing_
mov rcx, r14
call qword [rax + 0x28]
mov byte [rbx + 0x28], 1
xor al, al
mov rcx, qword [rbp + 0x1020]
xor rcx, rsp
call fcn.140278f40
add rsp, 0x1138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret