Function at 0x52ab20
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4cab
mov eax, dword fs:[0]
push eax
mov eax, 0x1890
call fcn.005af880
mov eax, dword [0x68cc00]
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 eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x189c], eax
mov dword [ebp - 0x188c], ecx
mov dword [ebp - 0x1898], esi
mov dword [eax], 0xffffffff
test edi, edi
jne 0x52ab90
mov eax, dword [esi]
mov ecx, esi
push str.NULL_arg.
call dword [eax + 0x14]
xor al, al
jmp 0x52af25
cmp dword [ebp + 0x14], 0xabcd0123
mov eax, 1
cmovne eax, dword [ebp + 0x14]
mov dword [ebp - 0x1894], eax
call fcn.0046d400
mov ebx, dword [ebp + 8]
xor ecx, ecx
test ebx, ebx
jle 0x52abd7
mov eax, edi
nop word [eax + eax]
cmp dword [eax], 0xffffffff
mov byte [eax + 0x12], 0
je 0x52acdb
inc ecx
add eax, 0x88
cmp ecx, ebx
jl 0x52abc0
mov ecx, dword [ebp - 0x188c]
xor esi, esi
mov dword [ebp - 0x1890], esi
mov eax, dword [ecx + 4]
test eax, eax
je 0x52ac0c
mov esi, dword [eax + 0x88]
mov dword [ebp - 0x1890], esi
test esi, esi
je 0x52ac0c
mov eax, 0x32
cmp esi, eax
cmovb esi, eax
mov dword [ebp - 0x1890], esi
mov eax, dword [ebp - 0x1894]
mov edx, 0xc042c00
test eax, eax
cmove eax, edx
mov dword [ebp - 0x1894], eax
test esi, esi
jne 0x52ac3b
call fcn.0046d4a0
test al, al
mov ecx, 0x42
cmovne esi, ecx
mov dword [ebp - 0x1890], esi
mov dword [ebp - 0x1888], 0
test ebx, ebx
jle 0x52ac79
mov esi, edi
nop dword [eax + eax]
push dword [esi]
call fcn.00401460
add esp, 4
test al, al
jne 0x52acf8
mov eax, dword [ebp - 0x1888]
add esi, 0x88
inc eax
mov dword [ebp - 0x1888], eax
cmp eax, ebx
jl 0x52ac50
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x1888], 0
mov byte [ebp - 0x1881], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.004fbbf0
mov ebx, dword [ebp - 0x1894]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x52af0c
xor ecx, ecx
mov eax, dword [ebp - 0x1890]
mov esi, ebx
sub esi, ecx
mov edx, 0x14d
test eax, eax
jne 0x52ae12
cmp esi, edx
cmovae esi, edx
jmp 0x52ae1c
mov eax, dword [esi]
mov ecx, esi
push str.Invalid_socket.
call dword [eax + 0x14]
mov eax, dword [ebp - 0x188c]
mov byte [eax + 0x16], 1
xor al, al
jmp 0x52af25
push 0x1010
lea eax, [ebp - 0x1880]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x1880]
call fcn.0059f310
mov dword [ebp - 4], 0
xor esi, esi
mov eax, edi
mov dword [ebp - 0x1888], edi
nop word [eax + eax]
push 1
push dword [eax]
lea ecx, [ebp - 0x1880]
call fcn.0059f930
test al, al
je 0x52ada3
mov eax, dword [ebp - 0x1888]
inc esi
add eax, 0x88
mov dword [ebp - 0x1888], eax
cmp esi, ebx
jl 0x52ad30
mov eax, dword [ebp - 0x1894]
mov ecx, 0xc042c00
mov esi, dword [ebp - 0x188c]
test eax, eax
mov dword [ebp - 0x14], 0
cmove eax, ecx
lea ecx, [ebp - 0x14]
push dword [esi + 4]
push ecx
push dword [ebp - 0x1898]
lea ecx, [ebp - 0x1880]
push 0
push 1
push eax
push dword [ebp - 0x1890]
call fcn.0059f380
cmp dword [ebp - 0x14], 0
jne 0x52adb5
mov byte [esi + 0x14], 1
lea ecx, [ebp - 0x1880]
xor bl, bl
call fcn.0059f320
jmp 0x52af23
xor esi, esi
nop word [eax + eax]
push dword [edi]
lea ecx, [ebp - 0x1880]
call fcn.0059fa00
test al, al
jne 0x52adf8
inc esi
add edi, 0x88
cmp esi, ebx
jl 0x52adc0
mov eax, dword [ebp - 0x188c]
lea ecx, [ebp - 0x1880]
xor bl, bl
mov byte [eax + 0x14], 1
call fcn.0059f320
jmp 0x52af23
mov eax, dword [ebp - 0x189c]
lea ecx, [ebp - 0x1880]
mov bl, 1
mov dword [eax], esi
call fcn.0059f320
jmp 0x52af23
cmp eax, esi
cmovbe esi, eax
cmp esi, eax
cmova esi, eax
cmp byte [ebp - 0x1881], 0
je 0x52ae32
shr esi, 1
mov eax, 1
cmp esi, 1
cmovb esi, eax
cmp esi, ebx
mov eax, 0x10624dd3
cmova esi, ebx
mul esi
mov ecx, esi
shr edx, 6
imul eax, edx, 0x3e8
mov dword [ebp - 0x1c], edx
sub ecx, eax
imul eax, ecx, 0x3e8
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x18], eax
call fcn.004fbf70
xor ebx, ebx
cmp dword [ebp + 8], ebx
jle 0x52ae9a
nop dword [eax]
push dword [ebp - 0x1898]
lea ecx, [ebp - 0x870]
push dword [edi]
call fcn.004fbf20
test al, al
je 0x52af41
inc ebx
add edi, 0x88
cmp ebx, dword [ebp + 8]
jl 0x52ae70
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea eax, [ebp - 0x864]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x52af16
test eax, eax
js 0x52af16
jne 0x52af65
cmp dword [ebp + 0x14], 0xabcd0123
je 0x52af0c
mov eax, dword [ebp - 0x1888]
mov ebx, dword [ebp - 0x1894]
add eax, esi
mov dword [ebp - 0x1888], eax
inc eax
cmp eax, ebx
jae 0x52af0c
mov esi, dword [ebp - 0x1898]
mov ecx, dword [ebp - 0x188c]
push esi
call fcn.0046d560
test al, al
jne 0x52af4d
mov ecx, dword [ebp - 0x1888]
mov byte [ebp - 0x1881], al
cmp ecx, ebx
jb 0x52acba
mov eax, dword [ebp - 0x188c]
mov byte [eax + 0x14], 1
xor bl, bl
lea ecx, [ebp - 0x870]
call fcn.004fbd40
mov al, bl
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.005af5a8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x188c]
mov byte [eax + 0x16], 1
jmp 0x52af16
mov eax, dword [ebp - 0x188c]
mov ecx, esi
push str.socket_operation_aborted_by_application
mov byte [eax + 0x15], 1
mov eax, dword [esi]
call dword [eax + 0x14]
jmp 0x52af16
mov ebx, dword [ebp + 8]
xor esi, esi
test ebx, ebx
jle 0x52af9e
nop
lea eax, [ebp - 0x864]
push eax
push dword [edi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52af93
mov eax, dword [ebp - 0x189c]
mov byte [edi + 0x12], 1
cmp dword [eax], 0
jge 0x52af93
mov dword [eax], esi
inc esi
add edi, 0x88
cmp esi, ebx
jl 0x52af70
mov eax, dword [ebp - 0x189c]
cmp dword [eax], 0
jl 0x52af16
mov bl, 1
jmp 0x52af18