Function at 0x436690
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 8], ecx
push ebx
push esi
push edi
test edx, edx
je 0x436817
mov ecx, dword [ebp + 0xc]
xor eax, eax
test ecx, ecx
je 0x436817
cmp dword [edx + eax*8], 0xffffffff
jne 0x4366d8
inc eax
cmp eax, ecx
jb 0x4366c8
jmp 0x436817
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x4366f3
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0042cee0
add esp, 4
movups xmm0, xmmword [eax]
jmp 0x4366f7
movups xmm0, xmmword [ebp - 0x1c]
xor edi, edi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x140], edi
or eax, 0xffffffff
mov dword [ebp - 0x244], ebx
xor edx, edx
mov dword [ebp - 0x348], esi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edx
nop
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ecx + edx*8 + 6], ax
mov ecx, dword [ecx + edx*8]
cmp ecx, 0xffffffff
je 0x4367fe
mov eax, dword [ebp + 8]
movzx edx, word [eax + edx*8 + 4]
mov eax, dword [ebp - 4]
test dl, 7
je 0x4367fb
cmp ecx, eax
cmova eax, ecx
mov dword [ebp - 4], eax
test dl, 1
je 0x43678b
xor eax, eax
test edi, edi
je 0x43676e
nop dword [eax]
cmp dword [ebp + eax*4 - 0x13c], ecx
je 0x43676e
inc eax
cmp eax, edi
jb 0x436760
cmp eax, edi
jne 0x43678b
cmp edi, 0x40
jae 0x43678b
mov dword [ebp + eax*4 - 0x13c], ecx
mov edi, dword [ebp - 0x140]
inc edi
mov dword [ebp - 0x140], edi
test dl, 4
je 0x4367c1
xor eax, eax
test ebx, ebx
je 0x4367a4
cmp dword [ebp + eax*4 - 0x240], ecx
je 0x4367a4
inc eax
cmp eax, ebx
jb 0x436796
cmp eax, ebx
jne 0x4367c1
cmp ebx, 0x40
jae 0x4367c1
mov dword [ebp + eax*4 - 0x240], ecx
mov ebx, dword [ebp - 0x244]
inc ebx
mov dword [ebp - 0x244], ebx
test dl, 2
je 0x4367fb
xor eax, eax
test esi, esi
je 0x4367de
nop dword [eax]
cmp dword [ebp + eax*4 - 0x344], ecx
je 0x4367de
inc eax
cmp eax, esi
jb 0x4367d0
cmp eax, esi
jne 0x4367fb
cmp esi, 0x40
jae 0x4367fb
mov dword [ebp + eax*4 - 0x344], ecx
mov esi, dword [ebp - 0x348]
inc esi
mov dword [ebp - 0x348], esi
mov edx, dword [ebp - 0xc]
inc edx
mov dword [ebp - 0xc], edx
cmp edx, dword [ebp + 0xc]
jb 0x436720
test edi, edi
jne 0x43683d
test ebx, ebx
jne 0x43683d
test esi, esi
jne 0x43683d
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4369e7
jns 0x4369e0
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
xor edx, edx
test ecx, ecx
cmovs eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
test ecx, ecx
jle 0x436885
mov ecx, dword [ebp - 8]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x14], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 0x10], eax
jmp 0x436895
jne 0x436895
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push dword [ebp - 0xc]
xor ecx, ecx
lea eax, [ebp - 0x348]
test esi, esi
cmove eax, ecx
test ebx, ebx
push eax
lea eax, [ebp - 0x244]
cmove eax, ecx
test edi, edi
push eax
lea eax, [ebp - 0x140]
cmove eax, ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x436961
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4368f2
cmp dword [0x602b60], 0
jne 0x436833
cmp eax, 0x2714
jne 0x436833
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jg 0x436910
mov edi, dword [ebp - 0x140]
mov ebx, dword [ebp - 0x244]
mov esi, dword [ebp - 0x348]
jmp 0x436854
lea eax, [ebp - 0x3c]
push eax
call fcn.0042cee0
movups xmm0, xmmword [ebp - 0x2c]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.0042ce90
mov ecx, dword [ebp + 0x10]
add esp, 0x20
mov edx, ecx
sub edx, eax
mov dword [ebp - 8], edx
test edx, edx
jle 0x4369e7
mov edi, dword [ebp - 0x140]
mov ebx, dword [ebp - 0x244]
mov esi, dword [ebp - 0x348]
jmp 0x436857
test eax, eax
js 0x436833
je 0x4369e7
mov esi, dword [ebp + 8]
xor edi, edi
add esi, 6
xor eax, eax
mov word [esi], ax
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
je 0x4369ce
lea ecx, [ebp - 0x140]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x436999
or word [esi], 1
lea eax, [ebp - 0x244]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4369b0
or word [esi], 4
lea eax, [ebp - 0x348]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4369c7
or word [esi], 2
cmp word [esi], 0
je 0x4369ce
inc edi
add esi, 8
sub dword [ebp + 0xc], 1
jne 0x436977
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret