Function at 0x10058cf0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021e629
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x268], 0
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov al, byte [esi + 0x2c]
test al, al
setne al
test al, al
jne 0x100591c7
mov eax, dword [esi + 0x1c]
lea ecx, [ebp - 0x270]
push ecx
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x25c], eax
push ecx
push 0
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x158], eax
push ecx
inc eax
mov dword [ebp - 0x260], 1
push eax
mov dword [ebp - 0x15c], 1
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x270], 0xa
call ebx
mov edi, eax
test edi, edi
je 0x10058d30
js 0x10058ff1
lea eax, [ebp - 0x15c]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10058e21
lea eax, [ebp - 0x260]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10058d30
mov eax, dword [esi + 0xb8]
lea ecx, [esi + 0xb8]
call dword [eax + 8]
test eax, eax
je 0x100591c7
cmp eax, 2
jne 0x10058d30
push dword [esi + 0x104]
lea eax, [esi + 0xc0]
push dword [esi + 0x108]
lea ecx, [esi + 0x110]
push eax
lea eax, [esi + 0x1d0]
push eax
call fcn.10065790
mov eax, dword [esi + 0xb8]
lea ecx, [esi + 0xb8]
call dword [eax + 4]
jmp 0x10058d30
mov dword [ebp - 0x320], 0x1023347c
mov dword [ebp - 0x310], 0x10233484
push 0
lea eax, [ebp - 0x308]
mov dword [ebp - 4], 0xa
xorps xmm0, xmm0
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov ebx, 0x10
mov dword [ebp - 0x2bc], 0x50
push eax
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x268], ebx
movlpd qword [ebp - 0x318], xmm0
call fcn.1001b997
lea eax, [ebp - 0x310]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x310]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x310]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x314], eax
mov eax, dword [ebp - 0x320]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x320]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x324], eax
mov eax, dword [ebp - 0x320]
mov dword [ebp - 4], 0xf
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x320]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x324], eax
lea eax, [ebp - 0x308]
mov ecx, eax
mov dword [ebp - 0x264], eax
call fcn.10019819
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 0
lea eax, [ebp - 0x310]
mov dword [ebp - 4], 0x11
push str.Some_error_in_sockSetExc
push eax
call fcn.10025ddc
add esp, 8
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x320]
push eax
call fcn.1004e41a
push eax
mov byte [ebp - 4], 0x12
call fcn.1005a6b0
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov byte [ebp - 4], 0x11
cmp ecx, ebx
jb 0x10058fc1
mov eax, dword [ebp - 0x40]
inc ecx
cmp ecx, 0xffffffff
jbe 0x10058f83
call fcn.101d9c51
cmp ecx, 0x1000
jb 0x10058fb8
test al, 0x1f
je 0x10058f94
call fcn.101d9c51
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x10058fa0
call fcn.101d9c51
sub eax, ecx
cmp eax, 4
jae 0x10058fac
call fcn.101d9c51
cmp eax, 0x23
jbe 0x10058fb6
call fcn.101d9c51
mov eax, ecx
push eax
call fcn.1006658a
add esp, 4
lea ecx, [ebp - 0x2b8]
call fcn.10019f10
lea eax, [ebp - 0x2b8]
mov dword [ebp - 4], 0x13
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.101b8935
add esp, 4
jmp 0x100591cd
mov dword [ebp - 0x3d0], 0x1023347c
mov dword [ebp - 0x3c0], 0x10233484
push 0
lea eax, [ebp - 0x3b8]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov ebx, 1
mov dword [ebp - 0x36c], 0x50
push eax
lea ecx, [ebp - 0x368]
mov dword [ebp - 0x268], ebx
movlpd qword [ebp - 0x3c8], xmm0
call fcn.1001b997
lea eax, [ebp - 0x3c0]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x3c0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x3c0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x3c4], eax
mov eax, dword [ebp - 0x3d0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x3d0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x3d4], eax
mov eax, dword [ebp - 0x3d0]
mov dword [ebp - 4], 5
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x3d0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x3d4], eax
lea eax, [ebp - 0x3b8]
mov ecx, eax
mov dword [ebp - 0x264], eax
call fcn.10019819
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x380], 0
mov dword [ebp - 0x37c], 0
push edi
lea eax, [ebp - 0x3c0]
mov dword [ebp - 4], 7
push str.::select_eror._Select_result:
push eax
call fcn.10025ddc
add esp, 8
mov ecx, eax
call fcn.100555e0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x3d0]
call fcn.1004e41a
push eax
mov byte [ebp - 4], 8
call fcn.1005a6b0
mov ecx, dword [ebp - 0x44]
add esp, 4
mov byte [ebp - 4], 7
cmp ecx, 0x10
jb 0x1005919a
mov eax, dword [ebp - 0x58]
inc ecx
cmp ecx, 0xffffffff
jbe 0x1005915c
call fcn.101d9c51
cmp ecx, 0x1000
jb 0x10059191
test al, 0x1f
je 0x1005916d
call fcn.101d9c51
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x10059179
call fcn.101d9c51
sub eax, ecx
cmp eax, 4
jae 0x10059185
call fcn.101d9c51
cmp eax, 0x23
jbe 0x1005918f
call fcn.101d9c51
mov eax, ecx
push eax
call fcn.1006658a
add esp, 4
lea ecx, [ebp - 0x368]
call fcn.10019f10
lea eax, [ebp - 0x368]
mov dword [ebp - 4], 9
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.101b8935
add esp, 4
jmp 0x100591cd
mov ebx, dword [ebp - 0x268]
mov dword [ebp - 0x480], 0x1023347c
mov dword [ebp - 0x470], 0x10233484
push 0
lea eax, [ebp - 0x468]
mov dword [ebp - 4], 0x14
xorps xmm0, xmm0
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
or ebx, 0x100
mov dword [ebp - 0x41c], 0x50
push eax
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x268], ebx
movlpd qword [ebp - 0x478], xmm0
call fcn.1001b997
lea eax, [ebp - 0x470]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x470]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x470]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x474], eax
mov eax, dword [ebp - 0x480]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x480]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x484], eax
mov eax, dword [ebp - 0x480]
mov dword [ebp - 4], 0x19
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x480]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x484], eax
lea eax, [ebp - 0x468]
mov ecx, eax
mov dword [ebp - 0x264], eax
call fcn.10019819
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
lea eax, [ebp - 0x470]
mov dword [ebp - 4], 0x1b
push str.Outgoing_connection_DISCONNECTED
push eax
call fcn.10025ddc
add esp, 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x480]
push eax
call fcn.1004e41a
push eax
mov byte [ebp - 4], 0x1c
call fcn.1005a6b0
mov ecx, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 4], 0x1b
cmp ecx, 0x10
jb 0x10059371
mov eax, dword [ebp - 0x28]
inc ecx
cmp ecx, 0xffffffff
jbe 0x10059331
call fcn.101d9c51
cmp ecx, 0x1000
jb 0x10059368
test byte [ebp - 0x28], 0x1f
je 0x10059344
call fcn.101d9c51
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x10059350
call fcn.101d9c51
sub eax, ecx
cmp eax, 4
jae 0x1005935c
call fcn.101d9c51
cmp eax, 0x23
jbe 0x10059366
call fcn.101d9c51
mov eax, ecx
push eax
call fcn.1006658a
add esp, 4
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10019f10
lea eax, [ebp - 0x418]
mov dword [ebp - 4], 0x1d
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.101b8935
push dword [esi + 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.10059660
add esp, 8
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b70aa
mov esp, ebp
pop ebp
ret