Function at 0x100827b7
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
mov eax, dword [0x100e7260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xorpd xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
and dword [ebp - 0xc], 0
mov byte [ebp - 0x329], 1
and dword [ebp - 0x33c], 0
cmp dword [ebp + 8], 0
je 0x10082828
and dword [ebp - 0x324], 0
jmp 0x10082803
mov eax, dword [ebp - 0x324]
inc eax
mov dword [ebp - 0x324], eax
mov eax, dword [ebp - 0x324]
cmp eax, dword [ebp + 0xc]
jae 0x10082828
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*8], 0xffffffff
je 0x10082826
mov byte [ebp - 0x329], 0
jmp 0x10082828
jmp 0x100827f6
movzx eax, byte [ebp - 0x329]
test eax, eax
je 0x1008284d
push dword [ebp + 0x10]
call fcn.10082e1f
pop ecx
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x328]
jmp 0x10082e0f
cmp dword [ebp + 0x10], 0
jle 0x10082872
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x33c], eax
lea eax, [ebp - 0x370]
push eax
call fcn.10084232
pop ecx
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebp - 0x320], 0
and dword [ebp - 0x21c], 0
and dword [ebp - 0x118], 0
or dword [ebp - 0x340], 0xffffffff
and dword [ebp - 0x324], 0
jmp 0x100828a4
mov eax, dword [ebp - 0x324]
inc eax
mov dword [ebp - 0x324], eax
mov eax, dword [ebp - 0x324]
cmp eax, dword [ebp + 0xc]
jae 0x10082afd
xor eax, eax
mov ecx, dword [ebp - 0x324]
mov edx, dword [ebp + 8]
mov word [edx + ecx*8 + 6], ax
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*8], 0xffffffff
jne 0x100828d4
jmp 0x10082897
xor eax, eax
jne 0x100828d4
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
movsx eax, word [ecx + eax*8 + 4]
and eax, 0x710
je 0x10082af8
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
cmp eax, dword [ebp - 0x340]
jbe 0x10082917
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
movsx eax, word [ecx + eax*8 + 4]
and eax, 0x300
je 0x100829b8
and dword [ebp - 0x334], 0
jmp 0x10082946
mov eax, dword [ebp - 0x334]
inc eax
mov dword [ebp - 0x334], eax
mov eax, dword [ebp - 0x334]
cmp eax, dword [ebp - 0x320]
jae 0x10082973
mov eax, dword [ebp - 0x334]
mov ecx, dword [ebp - 0x324]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + eax*4 - 0x31c]
cmp eax, dword [edx + ecx*8]
jne 0x10082971
jmp 0x10082973
jmp 0x10082939
mov eax, dword [ebp - 0x334]
cmp eax, dword [ebp - 0x320]
jne 0x100829b0
cmp dword [ebp - 0x320], 0x40
jae 0x100829b0
mov eax, dword [ebp - 0x334]
mov ecx, dword [ebp - 0x324]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx*8]
mov dword [ebp + eax*4 - 0x31c], ecx
mov eax, dword [ebp - 0x320]
inc eax
mov dword [ebp - 0x320], eax
xor eax, eax
jne 0x10082930
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
movsx eax, word [ecx + eax*8 + 4]
and eax, 0x10
je 0x10082a57
and dword [ebp - 0x338], 0
jmp 0x100829e5
mov eax, dword [ebp - 0x338]
inc eax
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x338]
cmp eax, dword [ebp - 0x21c]
jae 0x10082a12
mov eax, dword [ebp - 0x338]
mov ecx, dword [ebp - 0x324]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + eax*4 - 0x218]
cmp eax, dword [edx + ecx*8]
jne 0x10082a10
jmp 0x10082a12
jmp 0x100829d8
mov eax, dword [ebp - 0x338]
cmp eax, dword [ebp - 0x21c]
jne 0x10082a4f
cmp dword [ebp - 0x21c], 0x40
jae 0x10082a4f
mov eax, dword [ebp - 0x338]
mov ecx, dword [ebp - 0x324]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx*8]
mov dword [ebp + eax*4 - 0x218], ecx
mov eax, dword [ebp - 0x21c]
inc eax
mov dword [ebp - 0x21c], eax
xor eax, eax
jne 0x100829cf
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
movsx eax, word [ecx + eax*8 + 4]
and eax, 0x600
je 0x10082af8
and dword [ebp - 0x330], 0
jmp 0x10082a86
mov eax, dword [ebp - 0x330]
inc eax
mov dword [ebp - 0x330], eax
mov eax, dword [ebp - 0x330]
cmp eax, dword [ebp - 0x118]
jae 0x10082ab3
mov eax, dword [ebp - 0x330]
mov ecx, dword [ebp - 0x324]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + eax*4 - 0x114]
cmp eax, dword [edx + ecx*8]
jne 0x10082ab1
jmp 0x10082ab3
jmp 0x10082a79
mov eax, dword [ebp - 0x330]
cmp eax, dword [ebp - 0x118]
jne 0x10082af0
cmp dword [ebp - 0x118], 0x40
jae 0x10082af0
mov eax, dword [ebp - 0x330]
mov ecx, dword [ebp - 0x324]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx*8]
mov dword [ebp + eax*4 - 0x114], ecx
mov eax, dword [ebp - 0x118]
inc eax
mov dword [ebp - 0x118], eax
xor eax, eax
jne 0x10082a70
jmp 0x10082897
cmp dword [ebp - 0x320], 0
jne 0x10082b32
cmp dword [ebp - 0x21c], 0
jne 0x10082b32
cmp dword [ebp - 0x118], 0
jne 0x10082b32
push dword [ebp + 0x10]
call fcn.10082e1f
pop ecx
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x328]
jmp 0x10082e0f
cmp dword [ebp + 0x10], 0
jge 0x10082b41
and dword [ebp - 0x350], 0
jmp 0x10082b4d
lea eax, [ebp - 0x35c]
mov dword [ebp - 0x350], eax
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x360], eax
cmp dword [ebp + 0x10], 0
jle 0x10082b8f
mov eax, dword [ebp - 0x33c]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x35c], eax
mov eax, dword [ebp - 0x33c]
cdq
mov ecx, 0x3e8
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x358], eax
jmp 0x10082ba3
cmp dword [ebp + 0x10], 0
jne 0x10082ba3
and dword [ebp - 0x35c], 0
and dword [ebp - 0x358], 0
cmp dword [ebp - 0x118], 0
je 0x10082bba
lea eax, [ebp - 0x118]
mov dword [ebp - 0x348], eax
jmp 0x10082bc1
and dword [ebp - 0x348], 0
cmp dword [ebp - 0x21c], 0
je 0x10082bd8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x344], eax
jmp 0x10082bdf
and dword [ebp - 0x344], 0
cmp dword [ebp - 0x320], 0
je 0x10082bf6
lea eax, [ebp - 0x320]
mov dword [ebp - 0x354], eax
jmp 0x10082bfd
and dword [ebp - 0x354], 0
push dword [ebp - 0x360]
push dword [ebp - 0x348]
push dword [ebp - 0x344]
push dword [ebp - 0x354]
mov eax, dword [ebp - 0x340]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0xffffffff
je 0x10082c37
jmp 0x10082cbf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
je 0x10082c63
cmp dword [0x100f62c4], 0
jne 0x10082c61
cmp dword [ebp - 0x34c], 0x2714
je 0x10082c63
jmp 0x10082cbf
cmp dword [ebp + 0x10], 0
jle 0x10082cb2
sub esp, 0x10
lea esi, [ebp - 0x14]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x380]
push eax
call fcn.10084232
pop ecx
sub esp, 0x10
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100841f4
add esp, 0x20
mov ecx, dword [ebp + 0x10]
sub ecx, eax
mov dword [ebp - 0x33c], ecx
cmp dword [ebp - 0x33c], 0
jg 0x10082cb2
and dword [ebp - 0x328], 0
jmp 0x10082cbf
cmp dword [ebp - 0x328], 0xffffffff
je 0x10082b59
cmp dword [ebp - 0x328], 0
jge 0x10082cd0
or eax, 0xffffffff
jmp 0x10082e0f
cmp dword [ebp - 0x328], 0
jne 0x10082ce0
xor eax, eax
jmp 0x10082e0f
and dword [ebp - 0x328], 0
and dword [ebp - 0x324], 0
jmp 0x10082cfd
mov eax, dword [ebp - 0x324]
inc eax
mov dword [ebp - 0x324], eax
mov eax, dword [ebp - 0x324]
cmp eax, dword [ebp + 0xc]
jae 0x10082e09
xor eax, eax
mov ecx, dword [ebp - 0x324]
mov edx, dword [ebp + 8]
mov word [edx + ecx*8 + 6], ax
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*8], 0xffffffff
jne 0x10082d2d
jmp 0x10082cf0
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*8]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x10082d6b
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
movsx eax, word [ecx + eax*8 + 6]
or eax, 0x300
mov ecx, dword [ebp - 0x324]
mov edx, dword [ebp + 8]
mov word [edx + ecx*8 + 6], ax
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*8]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x10082da7
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
movsx eax, word [ecx + eax*8 + 6]
or eax, 0x10
mov ecx, dword [ebp - 0x324]
mov edx, dword [ebp + 8]
mov word [edx + ecx*8 + 6], ax
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*8]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x10082de5
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
movsx eax, word [ecx + eax*8 + 6]
or eax, 0x400
mov ecx, dword [ebp - 0x324]
mov edx, dword [ebp + 8]
mov word [edx + ecx*8 + 6], ax
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 8]
movsx eax, word [ecx + eax*8 + 6]
test eax, eax
je 0x10082e04
mov eax, dword [ebp - 0x328]
inc eax
mov dword [ebp - 0x328], eax
jmp 0x10082cf0
mov eax, dword [ebp - 0x328]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d588
mov esp, ebp
pop ebp
ret