Function at 0x5740b0
Capabilities:
Get socket status

Disassembly:
push 0xffffffffffffffff
push 0x6920db
mov eax, dword fs:[0]
push eax
sub esp, 0x878
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
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 0x574102
mov byte [esp + 0x17], 1
mov edi, 1
mov esi, dword [esp + 0x8a0]
mov ecx, esi
call fcn.00512090
cmp dword [ebx + 0x294], 0xffffffff
jne 0x574135
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 0x574342
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x18], ebp
je 0x57415f
mov eax, dword [eax + 0x88]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x57415f
mov eax, 0x32
cmp dword [esp + 0x18], eax
jae 0x57415f
mov dword [esp + 0x18], eax
cmp edi, ebp
jne 0x574168
mov edi, 0xc042c00
cmp dword [esp + 0x18], ebp
jne 0x574181
mov ecx, esi
call fcn.005120c0
test al, al
je 0x574181
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.004afc30
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 0x574317
nop
mov esi, dword [esp + 0x18]
mov ecx, esi
cmp ecx, ebp
jne 0x5741cf
mov esi, 0x14d
mov eax, edi
sub eax, dword [esp + 0x1c]
cmp esi, eax
jbe 0x5741db
mov esi, eax
cmp ecx, ebp
je 0x5741e5
cmp esi, ecx
jbe 0x5741e5
mov esi, ecx
test bl, bl
je 0x5741f5
shr esi, 1
cmp esi, 1
jae 0x5741f5
mov esi, 1
cmp edi, ebp
jbe 0x5741ff
cmp esi, edi
jbe 0x5741ff
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.00630180
mov ebx, 0x3004bc8d
add esp, 0xc
cmp dword [esp + 0x40], ebx
je 0x57424e
push ebp
call fcn.0047ab30
add esp, 4
cmp dword [esp + 0x888], ebx
je 0x574260
push ebp
call fcn.0047ab30
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x294]
cmp edx, ebp
jl 0x574360
mov ecx, dword [esp + 0x44]
xor eax, eax
cmp ecx, ebp
jbe 0x57428d
lea esp, [esp]
cmp dword [esp + eax*4 + 0x48], edx
je 0x57428d
add eax, 1
cmp eax, ecx
jb 0x574280
cmp eax, ecx
jne 0x5742a2
cmp ecx, 0x200
jae 0x5742a2
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 0x5743ad
cmp eax, ebp
jl 0x5743ad
jne 0x574381
cmp byte [esp + 0x17], 0
jne 0x574310
add dword [esp + 0x1c], esi
cmp edi, ebp
je 0x5742e6
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, edi
jae 0x574310
mov esi, dword [esp + 0x8a4]
mov ebx, dword [esp + 0x8a0]
push esi
mov ecx, ebx
call fcn.005120d0
test al, al
jne 0x574399
xor bl, bl
cmp dword [esp + 0x1c], edi
jb 0x5741c0
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.004afc40
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.005725b0
jmp 0x574342
lea ecx, [esp + 0x38]
mov dword [esp + 0x894], 0xffffffff
call fcn.005725b0
mov al, 1
jmp 0x574344
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 0x57436b
mov ecx, dword [esp + 0x8a4]
push str.waitReadableSocket
push ecx
lea ecx, [esp + 0x34]
call fcn.004b1850
lea ecx, [esp + 0x2c]
call fcn.004b18c0
jmp 0x57431b