Function at 0x10082144
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x384
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
and dword [ebp - 0x348], 0
cmp dword [ebp + 0x18], 0
jl 0x10082189
jg 0x1008217e
cmp dword [ebp + 0x14], 0x7fffffff
jb 0x10082189
mov dword [ebp + 0x14], accept
and dword [ebp + 0x18], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x100821b5
cmp dword [ebp + 0xc], 0xffffffff
jne 0x100821b5
cmp dword [ebp + 0x10], 0xffffffff
jne 0x100821b5
push dword [ebp + 0x14]
call fcn.10082e1f
pop ecx
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x328]
jmp 0x100827a7
cmp dword [ebp + 0x18], 0
jl 0x100821e2
jg 0x100821c3
cmp dword [ebp + 0x14], 0
jbe 0x100821e2
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x348], eax
lea eax, [ebp - 0x384]
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 - 0x118], 0
or dword [ebp - 0x33c], 0xffffffff
and dword [ebp - 0x21c], 0
cmp dword [ebp + 8], 0xffffffff
je 0x100822f2
xor eax, eax
jne 0x10082201
and dword [ebp - 0x340], 0
jmp 0x1008221b
mov eax, dword [ebp - 0x340]
inc eax
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x340]
cmp eax, dword [ebp - 0x21c]
jae 0x1008223f
mov eax, dword [ebp - 0x340]
mov eax, dword [ebp + eax*4 - 0x218]
cmp eax, dword [ebp + 8]
jne 0x1008223d
jmp 0x1008223f
jmp 0x1008220e
mov eax, dword [ebp - 0x340]
cmp eax, dword [ebp - 0x21c]
jne 0x10082273
cmp dword [ebp - 0x21c], 0x40
jae 0x10082273
mov eax, dword [ebp - 0x340]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x218], ecx
mov eax, dword [ebp - 0x21c]
inc eax
mov dword [ebp - 0x21c], eax
xor eax, eax
jne 0x10082205
and dword [ebp - 0x330], 0
jmp 0x1008228d
mov eax, dword [ebp - 0x330]
inc eax
mov dword [ebp - 0x330], eax
mov eax, dword [ebp - 0x330]
cmp eax, dword [ebp - 0x118]
jae 0x100822b1
mov eax, dword [ebp - 0x330]
mov eax, dword [ebp + eax*4 - 0x114]
cmp eax, dword [ebp + 8]
jne 0x100822af
jmp 0x100822b1
jmp 0x10082280
mov eax, dword [ebp - 0x330]
cmp eax, dword [ebp - 0x118]
jne 0x100822e5
cmp dword [ebp - 0x118], 0x40
jae 0x100822e5
mov eax, dword [ebp - 0x330]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x114], ecx
mov eax, dword [ebp - 0x118]
inc eax
mov dword [ebp - 0x118], eax
xor eax, eax
jne 0x10082277
mov eax, dword [ebp + 8]
mov dword [ebp - 0x33c], eax
cmp dword [ebp + 0xc], 0xffffffff
je 0x100823f8
xor eax, eax
jne 0x100822fc
and dword [ebp - 0x338], 0
jmp 0x10082316
mov eax, dword [ebp - 0x338]
inc eax
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x338]
cmp eax, dword [ebp - 0x21c]
jae 0x1008233a
mov eax, dword [ebp - 0x338]
mov eax, dword [ebp + eax*4 - 0x218]
cmp eax, dword [ebp + 0xc]
jne 0x10082338
jmp 0x1008233a
jmp 0x10082309
mov eax, dword [ebp - 0x338]
cmp eax, dword [ebp - 0x21c]
jne 0x1008236e
cmp dword [ebp - 0x21c], 0x40
jae 0x1008236e
mov eax, dword [ebp - 0x338]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + eax*4 - 0x218], ecx
mov eax, dword [ebp - 0x21c]
inc eax
mov dword [ebp - 0x21c], eax
xor eax, eax
jne 0x10082300
and dword [ebp - 0x344], 0
jmp 0x10082388
mov eax, dword [ebp - 0x344]
inc eax
mov dword [ebp - 0x344], eax
mov eax, dword [ebp - 0x344]
cmp eax, dword [ebp - 0x118]
jae 0x100823ac
mov eax, dword [ebp - 0x344]
mov eax, dword [ebp + eax*4 - 0x114]
cmp eax, dword [ebp + 0xc]
jne 0x100823aa
jmp 0x100823ac
jmp 0x1008237b
mov eax, dword [ebp - 0x344]
cmp eax, dword [ebp - 0x118]
jne 0x100823e0
cmp dword [ebp - 0x118], 0x40
jae 0x100823e0
mov eax, dword [ebp - 0x344]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + eax*4 - 0x114], ecx
mov eax, dword [ebp - 0x118]
inc eax
mov dword [ebp - 0x118], eax
xor eax, eax
jne 0x10082372
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x33c]
jbe 0x100823f8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x33c], eax
and dword [ebp - 0x320], 0
cmp dword [ebp + 0x10], 0xffffffff
je 0x10082505
xor eax, eax
jne 0x10082409
and dword [ebp - 0x32c], 0
jmp 0x10082423
mov eax, dword [ebp - 0x32c]
inc eax
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x32c]
cmp eax, dword [ebp - 0x320]
jae 0x10082447
mov eax, dword [ebp - 0x32c]
mov eax, dword [ebp + eax*4 - 0x31c]
cmp eax, dword [ebp + 0x10]
jne 0x10082445
jmp 0x10082447
jmp 0x10082416
mov eax, dword [ebp - 0x32c]
cmp eax, dword [ebp - 0x320]
jne 0x1008247b
cmp dword [ebp - 0x320], 0x40
jae 0x1008247b
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + eax*4 - 0x31c], ecx
mov eax, dword [ebp - 0x320]
inc eax
mov dword [ebp - 0x320], eax
xor eax, eax
jne 0x1008240d
and dword [ebp - 0x334], 0
jmp 0x10082495
mov eax, dword [ebp - 0x334]
inc eax
mov dword [ebp - 0x334], eax
mov eax, dword [ebp - 0x334]
cmp eax, dword [ebp - 0x118]
jae 0x100824b9
mov eax, dword [ebp - 0x334]
mov eax, dword [ebp + eax*4 - 0x114]
cmp eax, dword [ebp + 0x10]
jne 0x100824b7
jmp 0x100824b9
jmp 0x10082488
mov eax, dword [ebp - 0x334]
cmp eax, dword [ebp - 0x118]
jne 0x100824ed
cmp dword [ebp - 0x118], 0x40
jae 0x100824ed
mov eax, dword [ebp - 0x334]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + eax*4 - 0x114], ecx
mov eax, dword [ebp - 0x118]
inc eax
mov dword [ebp - 0x118], eax
xor eax, eax
jne 0x1008247f
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x33c]
jbe 0x10082505
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x33c], eax
cmp dword [ebp + 0x18], 0
jg 0x1008251c
jl 0x10082513
cmp dword [ebp + 0x14], 0
jae 0x1008251c
and dword [ebp - 0x34c], 0
jmp 0x10082528
lea eax, [ebp - 0x360]
mov dword [ebp - 0x34c], eax
mov eax, dword [ebp - 0x34c]
mov dword [ebp - 0x364], eax
cmp dword [ebp + 0x18], 0
jl 0x10082572
jg 0x10082542
cmp dword [ebp + 0x14], 0
jbe 0x10082572
mov eax, dword [ebp - 0x348]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x348]
cdq
mov ecx, 0x3e8
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x35c], eax
jmp 0x10082588
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x18]
jne 0x10082588
and dword [ebp - 0x360], 0
and dword [ebp - 0x35c], 0
cmp dword [ebp - 0x320], 0
je 0x1008259f
lea eax, [ebp - 0x320]
mov dword [ebp - 0x350], eax
jmp 0x100825a6
and dword [ebp - 0x350], 0
cmp dword [ebp - 0x21c], 0
je 0x100825bd
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x358], eax
jmp 0x100825c4
and dword [ebp - 0x358], 0
push dword [ebp - 0x364]
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x350]
push dword [ebp - 0x358]
mov eax, dword [ebp - 0x33c]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0xffffffff
je 0x100825ff
jmp 0x10082695
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x354], eax
cmp dword [ebp - 0x354], 0
je 0x1008262b
cmp dword [0x100f62c4], 0
jne 0x10082629
cmp dword [ebp - 0x354], 0x2714
je 0x1008262b
jmp 0x10082695
cmp dword [ebp + 0x18], 0
jl 0x10082688
jg 0x10082639
cmp dword [ebp + 0x14], 0
jbe 0x10082688
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 - 0x374]
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
cdq
mov ecx, dword [ebp + 0x14]
sub ecx, eax
mov eax, dword [ebp + 0x18]
sbb eax, edx
mov dword [ebp - 0x348], ecx
cmp dword [ebp - 0x348], 0
jg 0x10082688
and dword [ebp - 0x328], 0
jmp 0x10082695
cmp dword [ebp - 0x328], 0xffffffff
je 0x10082534
cmp dword [ebp - 0x328], 0
jge 0x100826a6
or eax, 0xffffffff
jmp 0x100827a7
cmp dword [ebp - 0x328], 0
jne 0x100826b6
xor eax, eax
jmp 0x100827a7
and dword [ebp - 0x324], 0
cmp dword [ebp + 8], 0xffffffff
je 0x10082709
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x100826e6
mov eax, dword [ebp - 0x324]
or eax, 1
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x10082709
mov eax, dword [ebp - 0x324]
or eax, 4
mov dword [ebp - 0x324], eax
cmp dword [ebp + 0xc], 0xffffffff
je 0x10082755
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x10082732
mov eax, dword [ebp - 0x324]
or eax, 8
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x10082755
mov eax, dword [ebp - 0x324]
or eax, 4
mov dword [ebp - 0x324], eax
cmp dword [ebp + 0x10], 0xffffffff
je 0x100827a1
lea eax, [ebp - 0x320]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1008277e
mov eax, dword [ebp - 0x324]
or eax, 2
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x100827a1
mov eax, dword [ebp - 0x324]
or eax, 4
mov dword [ebp - 0x324], eax
mov eax, dword [ebp - 0x324]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d588
mov esp, ebp
pop ebp
ret