Function at 0x5f2450
Capabilities:
Get socket status

Disassembly:
mov eax, 0x348
call fcn.0053e710
mov eax, dword [0x7ec540]
xor eax, esp
mov dword [esp + 0x344], eax
mov eax, dword [esp + 0x364]
xor edx, edx
mov ecx, dword [esp + 0x354]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x358]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24c], 0
mov dword [esp + 0x148], 0
mov dword [esp + 0x44], edx
push edi
cmp esi, 0xffffffff
je 0x5f24c1
cmp dword [esp + 0x360], edx
je 0x5f24c1
mov dword [esp + 0x254], esi
mov dword [esp + 0x250], 1
cmp ecx, 0xffffffff
je 0x5f24e1
cmp dword [esp + 0x368], edx
je 0x5f24e1
mov dword [esp + 0x150], ecx
mov dword [esp + 0x14c], 1
cmp esi, 0xffffffff
je 0x5f24f3
mov edx, 1
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edx
cmp ecx, 0xffffffff
je 0x5f2520
xor eax, eax
test edx, edx
je 0x5f250b
nop
cmp dword [esp + eax*4 + 0x4c], ecx
je 0x5f250b
inc eax
cmp eax, edx
jb 0x5f2500
cmp eax, edx
jne 0x5f251c
cmp edx, 0x40
jae 0x5f251c
mov dword [esp + eax*4 + 0x4c], ecx
inc dword [esp + 0x48]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x370]
cmp ecx, esi
mov ebx, dword [esp + 0x36c]
mov edi, ecx
cmovle edi, esi
cmp esi, 0xffffffff
jne 0x5f2550
cmp ecx, 0xffffffff
jne 0x5f2550
cmp ebp, ecx
jb 0x5f2550
ja 0x5f2549
cmp ebx, ecx
jb 0x5f2550
xor eax, eax
jmp 0x5f273f
test eax, eax
je 0x5f255d
push eax
call fcn.005afae0
add esp, 4
push ebp
push ebx
call fcn.005f2180
lea ecx, [edi + 1]
mov dword [esp + 0x3c], eax
add esp, 8
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x5f257d
xor eax, eax
jmp 0x5f26ea
call fcn.005b0be0
cmp edx, ebp
jb 0x5f2595
ja 0x5f258c
cmp eax, ebx
jbe 0x5f2595
mov ebx, 0x3e7
xor ecx, ecx
jmp 0x5f25c2
sub ebx, eax
mov ecx, ebp
sbb ecx, edx
mov edx, ebx
mov eax, ecx
not edx
not eax
test eax, eax
ja 0x5f25b9
jb 0x5f25b1
cmp edx, 0x3e7
jae 0x5f25b9
or ebx, 0xffffffff
or ecx, 0xffffffff
jmp 0x5f25c2
add ebx, 0x3e7
adc ecx, 0
mov eax, ebx
mov dword [esp + 0x10], ebx
mov esi, 0x6d694b2f
mov ebp, 0x12e0be82
mul esi
mov dword [esp + 0x2c], eax
mov edi, edx
mov eax, ebx
mul ebp
mov ebx, eax
mov dword [esp + 0x14], edx
mov eax, ecx
mul esi
mov esi, eax
mov ebp, edx
mov eax, ecx
mov edx, 0x12e0be82
mul edx
add esi, edi
mov edi, 0x3b9aca00
mov dword [esp + 0x18], eax
adc ebp, 0
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
add ebx, esi
mov dword [esp + 0x2c], ebx
adc edx, 0
mov ebx, dword [esp + 0x24]
xor eax, eax
add ebp, edx
mov edx, dword [esp + 0x18]
adc eax, eax
add edx, ebp
mov ebp, dword [esp + 0x10]
adc ebx, eax
sub ebp, edx
mov eax, ecx
sbb eax, ebx
shrd ebp, eax, 1
shr eax, 1
add ebp, edx
adc eax, ebx
mov ebx, dword [esp + 0x10]
shrd ebp, eax, 0x1d
shr eax, 0x1d
mul edi
mov dword [esp + 0x2c], ebp
mov esi, eax
mov eax, ebp
mul edi
mov ebp, 0x624dd2f
add esi, edx
sub ebx, eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sbb ecx, esi
mov esi, 0x1a9fbe77
mul esi
mov dword [esp + 0x24], eax
mov edi, edx
mov eax, ebx
mul ebp
mov ebx, eax
mov dword [esp + 0x24], edx
mov eax, ecx
mul esi
mov esi, eax
mov ebp, edx
mov eax, ecx
mov edx, 0x624dd2f
mul edx
add esi, edi
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x24]
adc ebp, 0
add ebx, esi
mov dword [esp + 0x18], eax
adc edx, 0
xor eax, eax
add ebp, edx
adc eax, eax
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
add edx, ebp
mov ebp, dword [esp + 0x10]
adc ebx, eax
mov eax, dword [esp + 0x2c]
sub ebp, edx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
sbb ecx, ebx
shrd ebp, ecx, 1
shr ecx, 1
add ebp, edx
adc ecx, ebx
mov ebx, dword [esp + 0x36c]
shrd ebp, ecx, 9
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x370]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x154]
push eax
lea eax, [esp + 0x25c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5f2727
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x1c]
cmp eax, 0x2714
mov eax, dword [esp + 0x34]
je 0x5f2572
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5f2738
push eax
call fcn.005afad0
add esp, 4
not esi
shr esi, 0x1f
mov eax, esi
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00541f33
add esp, 0x348
ret