Function at 0x4ac4d0
Capabilities:
Get socket status

Disassembly:
push 0xffffffffffffffff
push 0x579d3b
mov eax, dword fs:[0]
push eax
sub esp, 0x878
push ebx
push ebp
push esi
push edi
mov eax, dword [0x641030]
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]
mov byte [esp + 0x17], 0
mov edi, eax
cmp eax, 0xabcd0123
jne 0x4ac522
mov byte [esp + 0x17], 1
mov edi, 1
mov esi, dword [esp + 0x8a0]
mov ecx, esi
call fcn.004725a0
cmp dword [ebx + 0x294], 0xffffffff
jne 0x4ac555
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 0x4ac75d
mov eax, dword [esi + 4]
xor ebp, ebp
mov dword [esp + 0x18], ebp
cmp eax, ebp
je 0x4ac57f
mov eax, dword [eax + 0x88]
mov dword [esp + 0x18], eax
cmp eax, ebp
je 0x4ac57f
mov eax, 0x32
cmp dword [esp + 0x18], eax
jae 0x4ac57f
mov dword [esp + 0x18], eax
cmp edi, ebp
jne 0x4ac588
mov edi, 0xc042c00
cmp dword [esp + 0x18], ebp
jne 0x4ac5a1
mov ecx, esi
call fcn.004725d0
test al, al
je 0x4ac5a1
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.00439510
mov eax, 0x3004bc8d
mov dword [esp + 0x38], vtable.ckFdSet.0
mov dword [esp + 0x40], eax
mov dword [esp + 0x888], eax
mov dword [esp + 0x894], ebp
cmp edi, ebp
jbe 0x4ac732
nop
mov esi, dword [esp + 0x18]
mov ecx, esi
cmp ecx, ebp
jne 0x4ac5ef
mov esi, 0x14d
mov eax, edi
sub eax, dword [esp + 0x1c]
cmp esi, eax
jbe 0x4ac5fb
mov esi, eax
cmp ecx, ebp
je 0x4ac605
cmp esi, ecx
jbe 0x4ac605
mov esi, ecx
test bl, bl
je 0x4ac615
shr esi, 1
cmp esi, 1
jae 0x4ac615
mov esi, 1
cmp edi, ebp
jbe 0x4ac61f
cmp esi, edi
jbe 0x4ac61f
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.00554cc0
mov ebx, 0x3004bc8d
add esp, 0xc
cmp dword [esp + 0x40], ebx
je 0x4ac66e
push ebp
call fcn.0049ce60
add esp, 4
cmp dword [esp + 0x888], ebx
je 0x4ac680
push ebp
call fcn.0049ce60
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x294]
cmp edx, ebp
jl 0x4ac77b
mov ecx, dword [esp + 0x44]
xor eax, eax
cmp ecx, ebp
jbe 0x4ac6ab
lea esp, [esp]
cmp dword [esp + eax*4 + 0x48], edx
je 0x4ac6ab
inc eax
cmp eax, ecx
jb 0x4ac6a0
cmp eax, ecx
jne 0x4ac6bf
cmp ecx, 0x200
jae 0x4ac6bf
mov dword [esp + eax*4 + 0x48], edx
inc dword [esp + 0x44]
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 0x4ac7c8
cmp eax, ebp
jl 0x4ac7c8
jne 0x4ac79c
cmp byte [esp + 0x17], 0
jne 0x4ac72b
add dword [esp + 0x1c], esi
cmp edi, ebp
je 0x4ac701
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, edi
jae 0x4ac72b
mov esi, dword [esp + 0x8a4]
mov ebx, dword [esp + 0x8a0]
push esi
mov ecx, ebx
call fcn.004725e0
test al, al
jne 0x4ac7b4
xor bl, bl
cmp dword [esp + 0x1c], edi
jb 0x4ac5e0
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.00439400
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.004aa9d0
jmp 0x4ac75d
lea ecx, [esp + 0x38]
mov dword [esp + 0x894], 0xffffffff
call fcn.004aa9d0
mov al, 1
jmp 0x4ac75f
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 0x4ac786
mov ecx, dword [esp + 0x8a4]
push str.waitReadableSocket
push ecx
lea ecx, [esp + 0x34]
call fcn.00437740
lea ecx, [esp + 0x2c]
call fcn.004377b0
jmp 0x4ac736