Function at 0x486c07
Capabilities:
Get socket status

Disassembly:
sub esp, 0x858
mov eax, dword [0x6d1d44]
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 + 0x2e8]
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 + 0x500]
mov dword [esp + 0x1c], ebx
call fcn.0048b185
mov dword [esp + 0x30], eax
test eax, eax
je 0x486f95
mov ecx, eax
call fcn.0048b1c4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x486f8d
cmp dword [eax], 0
je 0x486f78
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 0x486d36
inc ecx
cmp ecx, 0x41
jne 0x486cea
lea edx, [esp + 0x48]
xor ecx, ecx
lea esi, [esp + 0x354]
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x486d36
inc ecx
cmp ecx, 0x41
jne 0x486d05
lea edx, [esp + 0x14c]
xor ecx, ecx
lea esi, [esp + 0x354]
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x486d36
inc ecx
cmp ecx, 0x41
jne 0x486d23
jmp 0x486f78
mov eax, dword [esp + 0x250]
xor ebx, ebx
test eax, eax
jle 0x486d57
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 0x486d88
lea eax, [esp + 0x250]
push eax
push dword [esp + esi*4 + 0x50]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x486d81
mov eax, dword [esp + esi*4 + 0x4c]
mov dword [esp + ebx*4 + 0x764], eax
inc ebx
inc esi
cmp esi, dword [esp + 0x48]
jl 0x486d5f
xor esi, esi
cmp dword [esp + 0x14c], esi
jle 0x486ddb
lea eax, [esp + 0x250]
push eax
push dword [esp + esi*4 + 0x154]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x486dd1
lea eax, [esp + 0x48]
push eax
push dword [esp + esi*4 + 0x154]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x486dd1
mov eax, dword [esp + esi*4 + 0x150]
mov dword [esp + ebx*4 + 0x764], eax
inc ebx
inc esi
cmp esi, dword [esp + 0x14c]
jl 0x486d93
xor edi, edi
test ebx, ebx
jle 0x486f78
push dword [esp + 0x28]
mov esi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
xor ebp, ebp
push edi
call esi
test eax, eax
jne 0x486e62
push dword [esp + 0x24]
push edi
call esi
test eax, eax
jne 0x486e62
push dword [esp + 0x20]
push edi
call esi
test eax, eax
jne 0x486e62
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 0x486eea
test ecx, ecx
je 0x486e8c
lea edx, [esp + 0x3c]
push edx
push dword [esp + edi*4 + 0x768]
push eax
push dword [esp + 0x1c]
call ecx
add esp, 0x10
jmp 0x486e8f
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, 0x73eab0
test ebp, ebp
mov eax, 0x74cba7
cmovne eax, ecx
push eax
push 0x73eab4
push 0
push 0
call fcn.0040119b
mov ebp, dword [esp + 0x3c]
add esp, 0x24
add dword [esp + 0x14], eax
jmp 0x486f6f
test ecx, ecx
je 0x486f06
lea edx, [esp + 0x3c]
push edx
push dword [esp + edi*4 + 0x768]
push eax
push dword [esp + 0x1c]
call ecx
add esp, 0x10
jmp 0x486f09
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, 0x73eadc
mov eax, 0x74cbb9
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 0x486f6f
add esi, eax
mov dword [esp + 0x1c], esi
inc edi
cmp edi, ebx
jl 0x486de5
mov ecx, dword [esp + 0x30]
call fcn.0048b1af
mov dword [esp + 0x30], eax
test eax, eax
jne 0x486c89
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
xor edi, edi
cmp edi, dword [eax + 0x530]
jge 0x487015
cmp dword [esi], 0
je 0x48700c
mov eax, dword [esi + 0x100]
test eax, eax
je 0x487008
add eax, 0x14
push eax
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test ebp, ebp
jne 0x486fe3
neg eax
sbb eax, eax
inc eax
push eax
push dword [esi]
push 0x73eb08
push ebp
push ebp
call fcn.0040119b
add esp, 0x18
add dword [esp + 0x14], eax
jmp 0x487008
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 0x487008
add ebx, eax
mov eax, dword [esp + 0x10]
inc edi
add esi, 4
cmp edi, 0x40
jl 0x486f9b
test ebp, ebp
jne 0x487092
mov edi, dword [esp + 0x14]
lea esi, [edi + 0x400]
cmp esi, 0xffffffff
jae 0x487053
mov eax, 0xfffffbff
sub eax, edi
je 0x487053
cmp esi, 0xffffffef
jae 0x487053
push 0xd4d
push 0x73eb48
lea eax, [edi + 0x410]
push 1
push eax
call fcn.005ed7c0
add esp, 0x10
jmp 0x487055
xor eax, eax
push 0
push 0
mov edx, esi
mov ecx, eax
call fcn.00484c1e
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], ebp
push dword [eax + 0x4f0]
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 0x486c6e
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.005b8900
add esp, 0x858
ret