Function at 0x10110370
Capabilities:
Get socket status

Disassembly:
push 0xffffffffffffffff
push 0x101a30db
mov eax, dword fs:[0]
push eax
sub esp, 0x878
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1026d48c]
xor eax, esp
push eax
lea eax, [esp + 0x88c]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x89c]
cmp eax, 0xabcd0123
mov byte [esp + 0x17], 0
mov edi, eax
jne 0x101103c2
mov byte [esp + 0x17], 1
mov edi, 1
mov esi, dword [esp + 0x8a0]
mov ecx, esi
call fcn.10095ac0
cmp dword [ebx + 0x294], 0xffffffff
jne 0x101103f5
mov ecx, dword [esp + 0x8a4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Invalid_socket.
call edx
mov byte [esi + 0x16], 1
jmp 0x10110602
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x18], ebp
je 0x1011041f
mov eax, dword [eax + 0x88]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x1011041f
mov eax, 0x32
cmp dword [esp + 0x18], eax
jae 0x1011041f
mov dword [esp + 0x18], eax
cmp edi, ebp
jne 0x10110428
mov edi, 0xc042c00
cmp dword [esp + 0x18], ebp
jne 0x10110441
mov ecx, esi
call fcn.10095af0
test al, al
je 0x10110441
mov dword [esp + 0x18], 0x42
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], ebp
mov bl, 1
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.10061a50
mov eax, 0x3004bc8d
mov dword [esp + 0x38], vtable.ckFdSet.0
mov dword [esp + 0x40], eax
mov dword [esp + 0x888], eax
cmp edi, ebp
mov dword [esp + 0x894], ebp
jbe 0x101105d7
nop
mov esi, dword [esp + 0x18]
mov ecx, esi
cmp ecx, ebp
jne 0x1011048f
mov esi, 0x14d
mov eax, edi
sub eax, dword [esp + 0x1c]
cmp esi, eax
jbe 0x1011049b
mov esi, eax
cmp ecx, ebp
je 0x101104a5
cmp esi, ecx
jbe 0x101104a5
mov esi, ecx
test bl, bl
je 0x101104b5
shr esi, 1
cmp esi, 1
jae 0x101104b5
mov esi, 1
cmp edi, ebp
jbe 0x101104bf
cmp esi, edi
jbe 0x101104bf
mov esi, edi
mov eax, 0x10624dd3
mul esi
shr edx, 6
mov ecx, edx
imul ecx, ecx, 0x3e8
mov eax, esi
sub eax, ecx
imul eax, eax, 0x3e8
push 0x40
mov dword [esp + 0x24], edx
lea edx, [esp + 0x84c]
push ebp
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x50], ebp
call fcn.1018fc10
mov ebx, 0x3004bc8d
add esp, 0xc
cmp dword [esp + 0x40], ebx
je 0x1011050e
push ebp
call fcn.100c11a0
add esp, 4
cmp dword [esp + 0x888], ebx
je 0x10110520
push ebp
call fcn.100c11a0
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x294]
cmp edx, ebp
jl 0x10110620
mov ecx, dword [esp + 0x44]
xor eax, eax
cmp ecx, ebp
jbe 0x1011054d
lea esp, [esp]
cmp dword [esp + eax*4 + 0x48], edx
je 0x1011054d
add eax, 1
cmp eax, ecx
jb 0x10110540
cmp eax, ecx
jne 0x10110562
cmp ecx, 0x200
jae 0x10110562
mov dword [esp + eax*4 + 0x48], edx
add dword [esp + 0x44], 1
lea ecx, [esp + 0x20]
push ecx
push ebp
push ebp
lea edx, [esp + 0x50]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x1011066d
cmp eax, ebp
jl 0x1011066d
jne 0x10110641
cmp byte [esp + 0x17], 0
jne 0x101105d0
add dword [esp + 0x1c], esi
cmp edi, ebp
je 0x101105a6
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, edi
jae 0x101105d0
mov esi, dword [esp + 0x8a4]
mov ebx, dword [esp + 0x8a0]
push esi
mov ecx, ebx
call fcn.10095b00
test al, al
jne 0x10110659
xor bl, bl
cmp dword [esp + 0x1c], edi
jb 0x10110480
mov esi, dword [esp + 0x8a0]
mov byte [esi + 0x14], 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x894], 0xffffffff
mov dword [esp + 0x38], vtable.ckFdSet.0
mov dword [esp + 0x40], ebp
mov dword [esp + 0x888], ebp
call fcn.10061a60
xor al, al
mov ecx, dword [esp + 0x88c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x884
ret 0xc
mov ecx, dword [esp + 0x8a0]
mov byte [ecx + 0x16], 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x894], 0xffffffff
call fcn.1010e830
jmp 0x10110602
lea ecx, [esp + 0x38]
mov dword [esp + 0x894], 0xffffffff
call fcn.1010e830
mov al, 1
jmp 0x10110604
mov byte [ebx + 0x15], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.socket_operation_aborted_by_application
mov ecx, esi
call eax
jmp 0x1011062b
mov ecx, dword [esp + 0x8a4]
push str.waitReadableSocket
push ecx
lea ecx, [esp + 0x34]
call fcn.10061630
lea ecx, [esp + 0x2c]
call fcn.100616a0
jmp 0x101105db