Function at 0x52ab90
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4d0b
mov eax, dword fs:[0]
push eax
mov eax, 0x1890
call fcn.005af8f0
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 0x52ac00
mov eax, dword [esi]
mov ecx, esi
push str.NULL_arg.
call dword [eax + 0x14]
xor al, al
jmp 0x52af95
cmp dword [ebp + 0x14], 0xabcd0123
mov eax, 1
cmovne eax, dword [ebp + 0x14]
mov dword [ebp - 0x1894], eax
call fcn.0046d450
mov ebx, dword [ebp + 8]
xor ecx, ecx
test ebx, ebx
jle 0x52ac47
mov eax, edi
nop word [eax + eax]
cmp dword [eax], 0xffffffff
mov byte [eax + 0x12], 0
je 0x52ad4b
inc ecx
add eax, 0x88
cmp ecx, ebx
jl 0x52ac30
mov ecx, dword [ebp - 0x188c]
xor esi, esi
mov dword [ebp - 0x1890], esi
mov eax, dword [ecx + 4]
test eax, eax
je 0x52ac7c
mov esi, dword [eax + 0x88]
mov dword [ebp - 0x1890], esi
test esi, esi
je 0x52ac7c
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 0x52acab
call fcn.0046d4f0
test al, al
mov ecx, 0x42
cmovne esi, ecx
mov dword [ebp - 0x1890], esi
mov dword [ebp - 0x1888], 0
test ebx, ebx
jle 0x52ace9
mov esi, edi
nop dword [eax + eax]
push dword [esi]
call fcn.00401460
add esp, 4
test al, al
jne 0x52ad68
mov eax, dword [ebp - 0x1888]
add esi, 0x88
inc eax
mov dword [ebp - 0x1888], eax
cmp eax, ebx
jl 0x52acc0
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.004fbc30
mov ebx, dword [ebp - 0x1894]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x52af7c
xor ecx, ecx
mov eax, dword [ebp - 0x1890]
mov esi, ebx
sub esi, ecx
mov edx, 0x14d
test eax, eax
jne 0x52ae82
cmp esi, edx
cmovae esi, edx
jmp 0x52ae8c
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 0x52af95
push 0x1010
lea eax, [ebp - 0x1880]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x1880]
call fcn.0059f380
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.0059f9a0
test al, al
je 0x52ae13
mov eax, dword [ebp - 0x1888]
inc esi
add eax, 0x88
mov dword [ebp - 0x1888], eax
cmp esi, ebx
jl 0x52ada0
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.0059f3f0
cmp dword [ebp - 0x14], 0
jne 0x52ae25
mov byte [esi + 0x14], 1
lea ecx, [ebp - 0x1880]
xor bl, bl
call fcn.0059f390
jmp 0x52af93
xor esi, esi
nop word [eax + eax]
push dword [edi]
lea ecx, [ebp - 0x1880]
call fcn.0059fa70
test al, al
jne 0x52ae68
inc esi
add edi, 0x88
cmp esi, ebx
jl 0x52ae30
mov eax, dword [ebp - 0x188c]
lea ecx, [ebp - 0x1880]
xor bl, bl
mov byte [eax + 0x14], 1
call fcn.0059f390
jmp 0x52af93
mov eax, dword [ebp - 0x189c]
lea ecx, [ebp - 0x1880]
mov bl, 1
mov dword [eax], esi
call fcn.0059f390
jmp 0x52af93
cmp eax, esi
cmovbe esi, eax
cmp esi, eax
cmova esi, eax
cmp byte [ebp - 0x1881], 0
je 0x52aea2
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.004fbfb0
xor ebx, ebx
cmp dword [ebp + 8], ebx
jle 0x52af0a
nop dword [eax]
push dword [ebp - 0x1898]
lea ecx, [ebp - 0x870]
push dword [edi]
call fcn.004fbf60
test al, al
je 0x52afb1
inc ebx
add edi, 0x88
cmp ebx, dword [ebp + 8]
jl 0x52aee0
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 0x52af86
test eax, eax
js 0x52af86
jne 0x52afd5
cmp dword [ebp + 0x14], 0xabcd0123
je 0x52af7c
mov eax, dword [ebp - 0x1888]
mov ebx, dword [ebp - 0x1894]
add eax, esi
mov dword [ebp - 0x1888], eax
inc eax
cmp eax, ebx
jae 0x52af7c
mov esi, dword [ebp - 0x1898]
mov ecx, dword [ebp - 0x188c]
push esi
call fcn.0046d5b0
test al, al
jne 0x52afbd
mov ecx, dword [ebp - 0x1888]
mov byte [ebp - 0x1881], al
cmp ecx, ebx
jb 0x52ad2a
mov eax, dword [ebp - 0x188c]
mov byte [eax + 0x14], 1
xor bl, bl
lea ecx, [ebp - 0x870]
call fcn.004fbd80
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.005af618
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x188c]
mov byte [eax + 0x16], 1
jmp 0x52af86
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 0x52af86
mov ebx, dword [ebp + 8]
xor esi, esi
test ebx, ebx
jle 0x52b00e
nop
lea eax, [ebp - 0x864]
push eax
push dword [edi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52b003
mov eax, dword [ebp - 0x189c]
mov byte [edi + 0x12], 1
cmp dword [eax], 0
jge 0x52b003
mov dword [eax], esi
inc esi
add edi, 0x88
cmp esi, ebx
jl 0x52afe0
mov eax, dword [ebp - 0x189c]
cmp dword [eax], 0
jl 0x52af86
mov bl, 1
jmp 0x52af88