Function at 0x52dce0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8dbb
mov eax, dword fs:[0]
push eax
mov eax, 0x1890
call fcn.005b37a0
mov eax, dword [0x692c00]
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 0x52dd50
mov eax, dword [esi]
mov ecx, esi
push str.NULL_arg.
call dword [eax + 0x14]
xor al, al
jmp 0x52e0e5
cmp dword [ebp + 0x14], 0xabcd0123
mov eax, 1
cmovne eax, dword [ebp + 0x14]
mov dword [ebp - 0x1894], eax
call fcn.0046ecc0
mov ebx, dword [ebp + 8]
xor ecx, ecx
test ebx, ebx
jle 0x52dd97
mov eax, edi
nop word [eax + eax]
cmp dword [eax], 0xffffffff
mov byte [eax + 0x18], 0
je 0x52de9b
inc ecx
add eax, 0x90
cmp ecx, ebx
jl 0x52dd80
mov ecx, dword [ebp - 0x188c]
xor esi, esi
mov dword [ebp - 0x1890], esi
mov eax, dword [ecx + 4]
test eax, eax
je 0x52ddcc
mov esi, dword [eax + 0x88]
mov dword [ebp - 0x1890], esi
test esi, esi
je 0x52ddcc
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 0x52ddfb
call fcn.0046ed60
test al, al
mov ecx, 0x42
cmovne esi, ecx
mov dword [ebp - 0x1890], esi
mov dword [ebp - 0x1888], 0
test ebx, ebx
jle 0x52de39
mov esi, edi
nop dword [eax + eax]
push dword [esi]
call fcn.00401490
add esp, 4
test al, al
jne 0x52deb8
mov eax, dword [ebp - 0x1888]
add esi, 0x90
inc eax
mov dword [ebp - 0x1888], eax
cmp eax, ebx
jl 0x52de10
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.004fcc60
mov ebx, dword [ebp - 0x1894]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x52e0cc
xor ecx, ecx
mov eax, dword [ebp - 0x1890]
mov esi, ebx
sub esi, ecx
mov edx, 0x14d
test eax, eax
jne 0x52dfd2
cmp esi, edx
cmovae esi, edx
jmp 0x52dfdc
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 0x52e0e5
push 0x1010
lea eax, [ebp - 0x1880]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x1880]
call fcn.005a3230
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.005a3850
test al, al
je 0x52df63
mov eax, dword [ebp - 0x1888]
inc esi
add eax, 0x90
mov dword [ebp - 0x1888], eax
cmp esi, ebx
jl 0x52def0
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.005a32a0
cmp dword [ebp - 0x14], 0
jne 0x52df75
mov byte [esi + 0x14], 1
lea ecx, [ebp - 0x1880]
xor bl, bl
call fcn.005a3240
jmp 0x52e0e3
xor esi, esi
nop word [eax + eax]
push dword [edi]
lea ecx, [ebp - 0x1880]
call fcn.005a3920
test al, al
jne 0x52dfb8
inc esi
add edi, 0x90
cmp esi, ebx
jl 0x52df80
mov eax, dword [ebp - 0x188c]
lea ecx, [ebp - 0x1880]
xor bl, bl
mov byte [eax + 0x14], 1
call fcn.005a3240
jmp 0x52e0e3
mov eax, dword [ebp - 0x189c]
lea ecx, [ebp - 0x1880]
mov bl, 1
mov dword [eax], esi
call fcn.005a3240
jmp 0x52e0e3
cmp eax, esi
cmovbe esi, eax
cmp esi, eax
cmova esi, eax
cmp byte [ebp - 0x1881], 0
je 0x52dff2
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.004fcfe0
xor ebx, ebx
cmp dword [ebp + 8], ebx
jle 0x52e05a
nop dword [eax]
push dword [ebp - 0x1898]
lea ecx, [ebp - 0x870]
push dword [edi]
call fcn.004fcf90
test al, al
je 0x52e101
inc ebx
add edi, 0x90
cmp ebx, dword [ebp + 8]
jl 0x52e030
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 0x52e0d6
test eax, eax
js 0x52e0d6
jne 0x52e125
cmp dword [ebp + 0x14], 0xabcd0123
je 0x52e0cc
mov eax, dword [ebp - 0x1888]
mov ebx, dword [ebp - 0x1894]
add eax, esi
mov dword [ebp - 0x1888], eax
inc eax
cmp eax, ebx
jae 0x52e0cc
mov esi, dword [ebp - 0x1898]
mov ecx, dword [ebp - 0x188c]
push esi
call fcn.0046ee20
test al, al
jne 0x52e10d
mov ecx, dword [ebp - 0x1888]
mov byte [ebp - 0x1881], al
cmp ecx, ebx
jb 0x52de7a
mov eax, dword [ebp - 0x188c]
mov byte [eax + 0x14], 1
xor bl, bl
lea ecx, [ebp - 0x870]
call fcn.004fcdb0
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.005b34c8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x188c]
mov byte [eax + 0x16], 1
jmp 0x52e0d6
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 0x52e0d6
mov ebx, dword [ebp + 8]
xor esi, esi
test ebx, ebx
jle 0x52e15e
nop
lea eax, [ebp - 0x864]
push eax
push dword [edi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52e153
mov eax, dword [ebp - 0x189c]
mov byte [edi + 0x18], 1
cmp dword [eax], 0
jge 0x52e153
mov dword [eax], esi
inc esi
add edi, 0x90
cmp esi, ebx
jl 0x52e130
mov eax, dword [ebp - 0x189c]
cmp dword [eax], 0
jl 0x52e0d6
mov bl, 1
jmp 0x52e0d8