Function at 0x5737b0
Capabilities:
Get socket status

Disassembly:
push 0xffffffffffffffff
push 0x692074
mov eax, dword fs:[0]
push eax
sub esp, 0x874
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
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.00512090
cmp byte [esp + 0x89c], 0
je 0x573808
mov dword [esp + 0x898], 1
jmp 0x57381d
cmp dword [esp + 0x898], 0
jne 0x57381d
mov dword [esp + 0x898], 0x1499700
mov eax, dword [edi + 4]
test eax, eax
je 0x573845
cmp dword [eax + 0x88], 0
jne 0x573845
mov ecx, edi
call fcn.005120c0
test al, al
je 0x573845
mov eax, dword [edi + 4]
mov dword [eax + 0x88], 0x42
cmp dword [esi + 0x294], 0xffffffff
jne 0x57386a
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 0x573e68
mov eax, dword [edi + 4]
test eax, eax
mov ecx, 0x32
mov dword [esp + 0x24], ecx
je 0x57388c
mov eax, dword [eax + 0x88]
cmp eax, ecx
mov dword [esp + 0x24], eax
jae 0x57388c
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x898], 0
mov esi, dword [esp + 0x8a8]
mov dword [esp + 0x20], 0
jbe 0x573b32
lea esp, [esp]
xor ebx, ebx
xor edx, edx
xor eax, eax
cmp byte [esp + 0x89c], bl
jne 0x57390d
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 0x5738d8
mov ebx, eax
test edx, edx
je 0x5738e2
cmp ebx, edx
jbe 0x5738e2
mov ebx, edx
cmp ebx, ecx
jbe 0x5738f1
test ecx, ecx
mov ebx, ecx
jne 0x5738f1
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.004afc30
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.00630180
add esp, 0xc
cmp dword [esp + 0x3c], edi
je 0x573965
push ebp
call fcn.0047ab30
add esp, 4
cmp dword [esp + 0x884], edi
je 0x573977
push ebp
call fcn.0047ab30
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x294]
cmp edx, ebp
jl 0x573ce0
mov ecx, dword [esp + 0x40]
xor eax, eax
cmp ecx, ebp
jbe 0x5739a0
cmp dword [esp + eax*4 + 0x44], edx
je 0x5739a0
add eax, 1
cmp eax, ecx
jb 0x573993
cmp eax, ecx
jne 0x5739b5
cmp ecx, 0x200
jae 0x5739b5
mov dword [esp + eax*4 + 0x44], edx
add dword [esp + 0x40], 1
lea ecx, [esp + 0x18]
call fcn.004afd30
cmp byte [esp + 0x8a0], 0
mov byte [esp + 0x890], 1
je 0x573a7f
push 0x854
call fcn.00609260
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
test edi, edi
mov byte [esp + 0x890], 2
je 0x573a10
mov ecx, edi
call fcn.004afc30
mov eax, 0x3004bc8d
mov dword [edi], vtable.ckFdSet.0
mov dword [edi + 8], eax
mov dword [edi + 0x850], eax
jmp 0x573a12
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.00630180
add esp, 0xc
cmp dword [edi + 8], 0x3004bc8d
je 0x573a4a
push 0
call fcn.0047ab30
add esp, 4
cmp dword [edi + 0x850], 0x3004bc8d
je 0x573a60
push 0
call fcn.0047ab30
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.00572620
test al, al
je 0x573ccf
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 0x573d53
test edi, edi
jl 0x573d53
jg 0x573b67
cmp byte [esp + 0x89c], 0
jne 0x573cfb
mov edi, dword [esp + 0x20]
add edi, ebx
mov ebx, dword [esp + 0x898]
test ebx, ebx
mov dword [esp + 0x20], edi
je 0x573ad8
cmp edi, ebx
jae 0x573d0b
mov ebp, dword [esp + 0x8a4]
push esi
mov ecx, ebp
call fcn.005120d0
test al, al
jne 0x573d3c
lea ecx, [esp + 0x18]
mov byte [esp + 0x890], al
call fcn.004afd40
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.004afc40
cmp edi, ebx
jb 0x5738b0
mov edi, ebp
cmp byte [esp + 0x8a0], 0
je 0x573e08
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.004b14c0
jmp 0x573e64
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 0x573ccf
test ebp, ebp
je 0x573c55
mov edx, dword [ebx + 0x294]
push ebp
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x573c55
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.004b14c0
mov ebx, dword [esp + 0x20]
cmp edi, ebx
jbe 0x573c1e
lea eax, [ebx - 0x4e20]
cmp eax, 0x7d0
ja 0x573c1e
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.004b14c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x890], 0
call fcn.004afd40
lea ecx, [esp + 0x34]
mov dword [esp + 0x890], 0xffffffff
call fcn.005725b0
jmp 0x573e68
push 0
push str.nfds
mov ecx, esi
call fcn.004b14c0
push edi
push str.nStatus
mov ecx, esi
call fcn.004b14c0
mov ecx, dword [ebx + 0x294]
push ecx
push str.socketNum
mov ecx, esi
call fcn.004b14c0
mov edx, dword [esp + 0x898]
push edx
push str.timeoutMs
mov ecx, esi
call fcn.004b14c0
movzx eax, byte [esp + 0x89c]
push eax
push str.bPoll
mov ecx, esi
call fcn.004b14c0
movzx ecx, byte [esp + 0x8a0]
push ecx
push str.bForConnect
mov ecx, esi
call fcn.004b14c0
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.004afd40
lea ecx, [esp + 0x34]
mov dword [esp + 0x890], 0xffffffff
call fcn.005725b0
mov al, 1
jmp 0x573e6a
mov ecx, dword [esp + 0x8a4]
mov byte [ecx + 0x14], 1
jmp 0x573c2b
lea ecx, [esp + 0x18]
mov byte [esp + 0x890], 0
call fcn.004afd40
lea ecx, [esp + 0x34]
mov dword [esp + 0x890], 0xffffffff
call fcn.005725b0
mov edi, dword [esp + 0x8a4]
jmp 0x573b32
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 0x573c2b
mov ecx, esi
call fcn.004b1680
xor edi, edi
push edi
push str.nfds
mov ecx, esi
call fcn.004b14c0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x294]
push edx
push str.socketNum
mov ecx, esi
call fcn.004b14c0
mov eax, dword [esp + 0x898]
push eax
push str.timeoutMs
mov ecx, esi
call fcn.004b14c0
movzx ecx, byte [esp + 0x89c]
push ecx
push str.bPoll
mov ecx, esi
call fcn.004b14c0
movzx edx, byte [esp + 0x8a0]
push edx
push str.bForConnect
mov ecx, esi
call fcn.004b14c0
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.004afd40
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.004afc40
mov al, 1
jmp 0x573e6a
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x294]
push edx
push str.socketNum
mov ecx, esi
call fcn.004b14c0
mov eax, dword [esp + 0x898]
push eax
push str.timeoutMs
mov ecx, esi
call fcn.004b14c0
movzx ecx, byte [esp + 0x89c]
push ecx
push str.bPoll
mov ecx, esi
call fcn.004b14c0
push 0
push str.bForConnect
mov ecx, esi
call fcn.004b14c0
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