Function at 0x1010fa70
Capabilities:
Get socket status

Disassembly:
push 0xffffffffffffffff
push 0x101a3074
mov eax, dword fs:[0]
push eax
sub esp, 0x874
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1026d48c]
xor eax, esp
push eax
lea eax, [esp + 0x888]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x8a4]
mov ecx, edi
call fcn.10095ac0
cmp byte [esp + 0x89c], 0
je 0x1010fac8
mov dword [esp + 0x898], 1
jmp 0x1010fadd
cmp dword [esp + 0x898], 0
jne 0x1010fadd
mov dword [esp + 0x898], 0x1499700
mov eax, dword [edi + 4]
test eax, eax
je 0x1010fb05
cmp dword [eax + 0x88], 0
jne 0x1010fb05
mov ecx, edi
call fcn.10095af0
test al, al
je 0x1010fb05
mov eax, dword [edi + 4]
mov dword [eax + 0x88], 0x42
cmp dword [esi + 0x294], 0xffffffff
jne 0x1010fb2a
mov ecx, dword [esp + 0x8a8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.invalid_socket__not_ready_for_writing.
call eax
mov byte [edi + 0x16], 1
jmp 0x10110128
mov eax, dword [edi + 4]
test eax, eax
mov ecx, 0x32
mov dword [esp + 0x24], ecx
je 0x1010fb4c
mov eax, dword [eax + 0x88]
cmp eax, ecx
mov dword [esp + 0x24], eax
jae 0x1010fb4c
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x898], 0
mov esi, dword [esp + 0x8a8]
mov dword [esp + 0x20], 0
jbe 0x1010fdf2
lea esp, [esp]
xor ebx, ebx
xor edx, edx
xor eax, eax
cmp byte [esp + 0x89c], bl
jne 0x1010fbcd
mov ecx, dword [esp + 0x898]
mov edx, dword [esp + 0x24]
mov eax, ecx
sub eax, dword [esp + 0x20]
mov ebx, edx
cmp ecx, eax
jbe 0x1010fb98
mov ebx, eax
test edx, edx
je 0x1010fba2
cmp ebx, edx
jbe 0x1010fba2
mov ebx, edx
cmp ebx, ecx
jbe 0x1010fbb1
test ecx, ecx
mov ebx, ecx
jne 0x1010fbb1
mov ebx, 1
mov eax, 0x10624dd3
mul ebx
shr edx, 6
mov ecx, edx
imul ecx, ecx, 0x3e8
mov eax, ebx
sub eax, ecx
imul eax, eax, 0x3e8
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
call fcn.10061a50
mov edi, 0x3004bc8d
mov dword [esp + 0x34], vtable.ckFdSet.0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x884], edi
xor ebp, ebp
push 0x40
lea edx, [esp + 0x848]
push ebp
push edx
mov dword [esp + 0x89c], ebp
mov dword [esp + 0x4c], ebp
call fcn.1018fc10
add esp, 0xc
cmp dword [esp + 0x3c], edi
je 0x1010fc25
push ebp
call fcn.100c11a0
add esp, 4
cmp dword [esp + 0x884], edi
je 0x1010fc37
push ebp
call fcn.100c11a0
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x294]
cmp edx, ebp
jl 0x1010ffa0
mov ecx, dword [esp + 0x40]
xor eax, eax
cmp ecx, ebp
jbe 0x1010fc60
cmp dword [esp + eax*4 + 0x44], edx
je 0x1010fc60
add eax, 1
cmp eax, ecx
jb 0x1010fc53
cmp eax, ecx
jne 0x1010fc75
cmp ecx, 0x200
jae 0x1010fc75
mov dword [esp + eax*4 + 0x44], edx
add dword [esp + 0x40], 1
lea ecx, [esp + 0x18]
call fcn.10061ab0
cmp byte [esp + 0x8a0], 0
mov byte [esp + 0x890], 1
je 0x1010fd3f
push 0x854
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
test edi, edi
mov byte [esp + 0x890], 2
je 0x1010fcd0
mov ecx, edi
call fcn.10061a50
mov eax, 0x3004bc8d
mov dword [edi], vtable.ckFdSet.0
mov dword [edi + 8], eax
mov dword [edi + 0x850], eax
jmp 0x1010fcd2
xor edi, edi
push 0x40
lea ecx, [edi + 0x810]
push 0
lea ebp, [edi + 0xc]
push ecx
mov byte [esp + 0x89c], 1
mov dword [ebp], 0
call fcn.1018fc10
add esp, 0xc
cmp dword [edi + 8], 0x3004bc8d
je 0x1010fd0a
push 0
call fcn.100c11a0
add esp, 4
cmp dword [edi + 0x850], 0x3004bc8d
je 0x1010fd20
push 0
call fcn.100c11a0
add esp, 4
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x294]
push esi
push eax
mov ecx, edi
mov dword [esp + 0x24], edi
call fcn.1010e8a0
test al, al
je 0x1010ff8f
lea ecx, [esp + 0x28]
push ecx
push ebp
lea edx, [esp + 0x48]
push edx
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp edi, 0xffffffff
je 0x10110013
test edi, edi
jl 0x10110013
jg 0x1010fe27
cmp byte [esp + 0x89c], 0
jne 0x1010ffbb
mov edi, dword [esp + 0x20]
add edi, ebx
mov ebx, dword [esp + 0x898]
test ebx, ebx
mov dword [esp + 0x20], edi
je 0x1010fd98
cmp edi, ebx
jae 0x1010ffcb
mov ebp, dword [esp + 0x8a4]
push esi
mov ecx, ebp
call fcn.10095b00
test al, al
jne 0x1010fffc
lea ecx, [esp + 0x18]
mov byte [esp + 0x890], al
call fcn.10061ac0
xor eax, eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x890], 0xffffffff
mov dword [esp + 0x34], vtable.ckFdSet.0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x884], eax
call fcn.10061a60
cmp edi, ebx
jb 0x1010fb70
mov edi, ebp
cmp byte [esp + 0x8a0], 0
je 0x101100c8
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.timeout_waiting_for_connect_to_complete_
mov ecx, esi
call edx
mov eax, dword [esp + 0x898]
push eax
push str.timeoutMs
mov ecx, esi
call fcn.100612a0
jmp 0x10110124
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x294]
lea eax, [esp + 0x40]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1010ff8f
test ebp, ebp
je 0x1010ff15
mov edx, dword [ebx + 0x294]
push ebp
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1010ff15
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push str.Connection_attempt_failed.
mov ecx, esi
call edx
mov edi, dword [esp + 0x898]
push edi
push str.maxWaitTimeMs
mov ecx, esi
call fcn.100612a0
mov ebx, dword [esp + 0x20]
cmp edi, ebx
jbe 0x1010fede
lea eax, [ebx - 0x4e20]
cmp eax, 0x7d0
ja 0x1010fede
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.The_Windows_TCP_IP_stack_has_a_system_wide_retry_delay_and_retry_count_for_the_initial_connection.
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.The_default_settings_result_in_an_overall_21_second_timeout.
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.If_you_see_this_error_message_21_seconds_after_the_connection_attempt_is_initiated__it_usually_means_one_of_two_things:
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str._1__The_server_is_not_there__not_listening_for_connection_attempts_on_the_specified_IP_address_and_port_.
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str._2__A_firewall_is_blocking_your_connection_attempt_from_reaching_the_server.
mov ecx, esi
call eax
push ebx
push str.totalMsWaitedSoFar
mov ecx, esi
call fcn.100612a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x890], 0
call fcn.10061ac0
lea ecx, [esp + 0x34]
mov dword [esp + 0x890], 0xffffffff
call fcn.1010e830
jmp 0x10110128
push 0
push str.nfds
mov ecx, esi
call fcn.100612a0
push edi
push str.nStatus
mov ecx, esi
call fcn.100612a0
mov ecx, dword [ebx + 0x294]
push ecx
push str.socketNum
mov ecx, esi
call fcn.100612a0
mov edx, dword [esp + 0x898]
push edx
push str.timeoutMs
mov ecx, esi
call fcn.100612a0
movzx eax, byte [esp + 0x89c]
push eax
push str.bPoll
mov ecx, esi
call fcn.100612a0
movzx ecx, byte [esp + 0x8a0]
push ecx
push str.bForConnect
mov ecx, esi
call fcn.100612a0
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.Socket_select_for_writeability_returned_unexpected_result_
mov ecx, esi
call eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x890], 0
call fcn.10061ac0
lea ecx, [esp + 0x34]
mov dword [esp + 0x890], 0xffffffff
call fcn.1010e830
mov al, 1
jmp 0x1011012a
mov ecx, dword [esp + 0x8a4]
mov byte [ecx + 0x14], 1
jmp 0x1010feeb
lea ecx, [esp + 0x18]
mov byte [esp + 0x890], 0
call fcn.10061ac0
lea ecx, [esp + 0x34]
mov dword [esp + 0x890], 0xffffffff
call fcn.1010e830
mov edi, dword [esp + 0x8a4]
jmp 0x1010fdf2
mov byte [ebp + 0x15], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.socket_write_aborted_by_application..
mov ecx, esi
call eax
jmp 0x1010feeb
mov ecx, esi
call fcn.10061460
xor edi, edi
push edi
push str.nfds
mov ecx, esi
call fcn.100612a0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x294]
push edx
push str.socketNum
mov ecx, esi
call fcn.100612a0
mov eax, dword [esp + 0x898]
push eax
push str.timeoutMs
mov ecx, esi
call fcn.100612a0
movzx ecx, byte [esp + 0x89c]
push ecx
push str.bPoll
mov ecx, esi
call fcn.100612a0
movzx edx, byte [esp + 0x8a0]
push edx
push str.bForConnect
mov ecx, esi
call fcn.100612a0
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Socket_select_for_writeable_returned_an_error_
mov ecx, esi
call edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x890], 0
call fcn.10061ac0
lea ecx, [esp + 0x34]
mov dword [esp + 0x890], 0xffffffff
mov dword [esp + 0x34], vtable.ckFdSet.0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x884], edi
call fcn.10061a60
mov al, 1
jmp 0x1011012a
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x294]
push edx
push str.socketNum
mov ecx, esi
call fcn.100612a0
mov eax, dword [esp + 0x898]
push eax
push str.timeoutMs
mov ecx, esi
call fcn.100612a0
movzx ecx, byte [esp + 0x89c]
push ecx
push str.bPoll
mov ecx, esi
call fcn.100612a0
push 0
push str.bForConnect
mov ecx, esi
call fcn.100612a0
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.socket_is_not_ready_for_writing_
mov ecx, esi
call eax
mov byte [edi + 0x14], 1
xor al, al
mov ecx, dword [esp + 0x888]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x880
ret 0x14