Function at 0x4898e7
Capabilities:
Get socket status

Disassembly:
sub esp, 0x858
mov eax, dword [0x6d9d44]
xor eax, esp
mov dword [esp + 0x854], eax
push ebx
mov eax, ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x860]
xor ebx, ebx
and dword [esp + 0x348], ebx
and dword [esp + 0x34], ebx
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x870]
lea esi, [eax + 0x2f4]
xor edi, edi
mov dword [esp + 0x10], eax
and dword [esp + 0x44], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], 0x5265c00
mov dword [esp + 0x14], edi
mov dword [esp + 0x34], esi
mov ecx, dword [eax + 0x50c]
mov dword [esp + 0x1c], ebx
call fcn.0048dfc9
mov dword [esp + 0x30], eax
test eax, eax
je 0x489c75
mov ecx, eax
call fcn.0048e018
mov dword [esp + 0x2c], eax
test eax, eax
je 0x489c6d
cmp dword [eax], 0
je 0x489c58
and dword [esp + 0x250], 0
lea ecx, [esp + 0x38]
and dword [esp + 0x14c], 0
and dword [esp + 0x48], 0
push ecx
lea ecx, [esp + 0x150]
push ecx
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x25c]
push ecx
push eax
call dword [eax]
add esp, 0x14
lea edx, [esp + 0x250]
lea esi, [esp + 0x354]
xor ecx, ecx
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x489a16
inc ecx
cmp ecx, 0x41
jne 0x4899ca
lea edx, [esp + 0x48]
xor ecx, ecx
lea esi, [esp + 0x354]
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x489a16
inc ecx
cmp ecx, 0x41
jne 0x4899e5
lea edx, [esp + 0x14c]
xor ecx, ecx
lea esi, [esp + 0x354]
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x489a16
inc ecx
cmp ecx, 0x41
jne 0x489a03
jmp 0x489c58
mov eax, dword [esp + 0x250]
xor ebx, ebx
test eax, eax
jle 0x489a37
mov ecx, eax
lea esi, [esp + 0x254]
lea edi, [esp + 0x764]
mov ebx, eax
rep movsd dword es:[edi], dword [esi]
xor esi, esi
cmp dword [esp + 0x48], esi
jle 0x489a68
lea eax, [esp + 0x250]
push eax
push dword [esp + esi*4 + 0x50]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x489a61
mov eax, dword [esp + esi*4 + 0x4c]
mov dword [esp + ebx*4 + 0x764], eax
inc ebx
inc esi
cmp esi, dword [esp + 0x48]
jl 0x489a3f
xor esi, esi
cmp dword [esp + 0x14c], esi
jle 0x489abb
lea eax, [esp + 0x250]
push eax
push dword [esp + esi*4 + 0x154]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x489ab1
lea eax, [esp + 0x48]
push eax
push dword [esp + esi*4 + 0x154]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x489ab1
mov eax, dword [esp + esi*4 + 0x150]
mov dword [esp + ebx*4 + 0x764], eax
inc ebx
inc esi
cmp esi, dword [esp + 0x14c]
jl 0x489a73
xor edi, edi
test ebx, ebx
jle 0x489c58
push dword [esp + 0x28]
mov esi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
xor ebp, ebp
push edi
call esi
test eax, eax
jne 0x489b42
push dword [esp + 0x24]
push edi
call esi
test eax, eax
jne 0x489b42
push dword [esp + 0x20]
push edi
call esi
test eax, eax
jne 0x489b42
mov eax, dword [esp + edi*4 + 0x764]
and dword [esp + 0x660], ebp
and dword [esp + 0x55c], ebp
mov dword [esp + 0x45c], eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x560]
mov dword [esp + 0x45c], 1
push eax
lea eax, [esp + 0x668]
push eax
lea eax, [esp + 0x464]
push eax
push 0x40
call dword [sym.imp.WS2_32.dll_select]
lea ebp, [eax + 1]
neg ebp
sbb ebp, ebp
inc ebp
cmp dword [esp + 0x18], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0xc]
jne 0x489bca
test ecx, ecx
je 0x489b6c
lea edx, [esp + 0x3c]
push edx
push dword [esp + edi*4 + 0x768]
push eax
push dword [esp + 0x1c]
call ecx
add esp, 0x10
jmp 0x489b6f
mov eax, dword [eax + 0x18]
mov esi, dword [esp + edi*4 + 0x764]
push eax
push dword [esp + 0x24]
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
push eax
push dword [esp + 0x2c]
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
push eax
push dword [esp + 0x34]
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
push eax
push esi
mov ecx, 0x7572b0
test ebp, ebp
mov eax, 0x76a4d5
cmovne eax, ecx
push eax
push 0x7572b4
push 0
push 0
call fcn.0040119b
mov ebp, dword [esp + 0x3c]
add esp, 0x24
add dword [esp + 0x14], eax
jmp 0x489c4f
test ecx, ecx
je 0x489be6
lea edx, [esp + 0x3c]
push edx
push dword [esp + edi*4 + 0x768]
push eax
push dword [esp + 0x1c]
call ecx
add esp, 0x10
jmp 0x489be9
mov eax, dword [eax + 0x18]
mov esi, dword [esp + edi*4 + 0x764]
push eax
push dword [esp + 0x24]
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
push eax
push dword [esp + 0x2c]
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
push eax
push dword [esp + 0x34]
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
push eax
push esi
mov esi, dword [esp + 0x30]
test ebp, ebp
mov ebp, dword [esp + 0x2c]
mov ecx, 0x7572dc
mov eax, 0x76a4d6
cmovne eax, ecx
push eax
mov eax, dword [ebp - 0x10]
sub eax, esi
push str.__sFD__d___R:__d__W:__d__E:__d_____s_n
push eax
lea eax, [esi + ebp]
push eax
call fcn.0040117f
add esp, 0x24
test eax, eax
jle 0x489c4f
add esi, eax
mov dword [esp + 0x1c], esi
inc edi
cmp edi, ebx
jl 0x489ac5
mov ecx, dword [esp + 0x30]
call fcn.0048dff3
mov dword [esp + 0x30], eax
test eax, eax
jne 0x489969
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
xor edi, edi
cmp edi, dword [eax + 0x53c]
jge 0x489cf5
cmp dword [esi], 0
je 0x489cec
mov eax, dword [esi + 0x100]
test eax, eax
je 0x489ce8
add eax, 0x14
push eax
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test ebp, ebp
jne 0x489cc3
neg eax
sbb eax, eax
inc eax
push eax
push dword [esi]
push 0x757308
push ebp
push ebp
call fcn.0040119b
add esp, 0x18
add dword [esp + 0x14], eax
jmp 0x489ce8
neg eax
sbb eax, eax
inc eax
push eax
push dword [esi]
mov eax, dword [ebp - 0x10]
sub eax, ebx
push str._H__p___Signaled:__d_____s_n
push eax
lea eax, [ebx + ebp]
push eax
call fcn.0040117f
add esp, 0x18
test eax, eax
jle 0x489ce8
add ebx, eax
mov eax, dword [esp + 0x10]
inc edi
add esi, 4
cmp edi, 0x40
jl 0x489c7b
test ebp, ebp
jne 0x489d72
mov edi, dword [esp + 0x14]
lea esi, [edi + 0x400]
cmp esi, 0xffffffff
jae 0x489d33
mov eax, 0xfffffbff
sub eax, edi
je 0x489d33
cmp esi, 0xffffffef
jae 0x489d33
push 0xd50
push 0x757348
lea eax, [edi + 0x410]
push 1
push eax
call fcn.005f5ba0
add esp, 0x10
jmp 0x489d35
xor eax, eax
push 0
push 0
mov edx, esi
mov ecx, eax
call fcn.00487604
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], ebp
push dword [eax + 0x4fc]
push str._Chain_Timeout:__u_milliseconds_n
push dword [ebp - 0x10]
push ebp
call fcn.0040117f
mov esi, dword [esp + 0x4c]
add esp, 0x18
add ebx, eax
mov eax, dword [esp + 0x10]
jmp 0x48994e
mov ecx, dword [esp + 0x864]
mov eax, ebp
pop edi
pop esi
mov byte [ebx + ebp], 0
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0db0
add esp, 0x858
ret