Function at 0x1002ff98
Capabilities:
Get socket status

Disassembly:
sub esp, 0x34c
mov eax, dword [0x100a5688]
xor eax, esp
mov dword [esp + 0x348], eax
mov eax, dword [esp + 0x360]
push ebx
push ebp
xor ebx, ebx
push esi
xorps xmm0, xmm0
push edi
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x1002ffee
mov ecx, accept
jg 0x1002ffe4
mov ebp, dword [esp + 0x36c]
cmp ebp, ecx
jb 0x1002fff5
mov eax, ebx
mov ebp, ecx
mov dword [esp + 0x10], eax
jmp 0x1002fff5
mov ebp, dword [esp + 0x36c]
mov esi, dword [esp + 0x360]
cmp esi, 0xffffffff
jne 0x1003001f
cmp dword [esp + 0x364], esi
jne 0x1003001f
cmp dword [esp + 0x368], esi
jne 0x1003001f
push ebp
call fcn.1003030b
pop ecx
jmp 0x100302f2
cmp eax, ebx
jl 0x10030049
jg 0x10030029
cmp ebp, ebx
jbe 0x10030049
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x18], ebp
call fcn.1002799f
mov esi, eax
lea edi, [esp + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x364]
pop ecx
mov eax, ebx
or edx, 0xffffffff
mov ecx, ebx
xor edi, edi
mov dword [esp + 0x254], eax
mov dword [esp + 0x4c], ecx
cmp esi, 0xffffffff
je 0x10030080
lea ecx, [edi + 1]
lea eax, [edi + 1]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x258], esi
mov dword [esp + 0x254], eax
mov edx, esi
mov esi, dword [esp + 0x364]
cmp esi, 0xffffffff
je 0x100300e9
test ecx, ecx
je 0x1003009b
cmp dword [esp + edi*4 + 0x50], esi
je 0x1003009b
inc edi
cmp edi, ecx
jb 0x10030090
cmp edi, ecx
jne 0x100300b1
cmp ecx, 0x40
jae 0x100300b1
mov dword [esp + edi*4 + 0x50], esi
mov ecx, dword [esp + 0x4c]
inc ecx
mov dword [esp + 0x4c], ecx
mov edi, ebx
test eax, eax
je 0x100300c5
cmp dword [esp + edi*4 + 0x258], esi
je 0x100300c5
inc edi
cmp edi, eax
jb 0x100300b7
cmp edi, eax
jne 0x100300e4
cmp eax, 0x40
jae 0x100300e4
mov dword [esp + edi*4 + 0x258], esi
mov eax, dword [esp + 0x254]
inc eax
mov dword [esp + 0x254], eax
cmp esi, edx
cmova edx, esi
mov edi, dword [esp + 0x368]
mov dword [esp + 0x150], ebx
cmp edi, 0xffffffff
je 0x1003013e
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], 1
mov esi, ebx
test eax, eax
je 0x10030122
cmp dword [esp + esi*4 + 0x258], edi
je 0x10030122
inc esi
cmp esi, eax
jb 0x10030114
cmp esi, eax
jne 0x10030139
cmp eax, 0x40
jae 0x10030139
mov dword [esp + esi*4 + 0x258], edi
inc dword [esp + 0x254]
cmp edi, edx
cmova edx, edi
mov esi, dword [esp + 0x10]
cmp esi, ebx
jg 0x10030154
jl 0x1003014c
cmp ebp, ebx
jae 0x10030154
mov edi, ebx
mov dword [esp + 0x18], ebx
jmp 0x1003015c
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], edi
lea eax, [edx + 1]
mov dword [esp + 0x28], eax
cmp esi, ebx
jl 0x1003018e
jg 0x1003016d
cmp ebp, ebx
jbe 0x1003018e
mov eax, dword [esp + 0x14]
cdq
mov dword [esp + 0x24], 0x3e8
idiv dword [esp + 0x24]
imul edx, edx, 0x3e8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
jmp 0x1003019c
mov eax, ebp
or eax, esi
jne 0x1003019c
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push edi
xor edx, edx
cmp dword [esp + 0x154], edx
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0x158]
cmove eax, edx
push eax
test ecx, ecx
lea eax, [esp + 0x58]
cmove eax, edx
push eax
push dword [esp + 0x38]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1003023e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x100301eb
cmp dword [0x100a73d8], ebx
jne 0x10030242
cmp eax, 0x2714
jne 0x10030242
cmp esi, ebx
jl 0x10030233
jg 0x100301f5
cmp ebp, ebx
jbe 0x10030233
lea eax, [esp + 0x3c]
push eax
call fcn.1002799f
sub esp, 0xc
mov edi, esp
lea esi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
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.10027963
mov ecx, ebp
sub ecx, eax
add esp, 0x20
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x1003023c
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
jmp 0x10030163
mov eax, ebx
test eax, eax
jns 0x1003024a
or eax, 0xffffffff
jmp 0x100302f2
jne 0x10030253
xor eax, eax
jmp 0x100302f2
mov esi, dword [esp + 0x360]
cmp esi, 0xffffffff
je 0x10030287
lea eax, [esp + 0x4c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
push 1
test eax, eax
pop eax
cmovne ebx, eax
lea eax, [esp + 0x254]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10030287
or ebx, 4
mov esi, dword [esp + 0x364]
cmp esi, 0xffffffff
je 0x100302ba
lea eax, [esp + 0x4c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100302a5
or ebx, 8
lea eax, [esp + 0x254]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100302ba
or ebx, 4
mov edi, dword [esp + 0x368]
cmp edi, 0xffffffff
je 0x100302f0
lea eax, [esp + 0x150]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100302db
or ebx, 2
lea eax, [esp + 0x254]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100302f0
or ebx, 4
mov eax, ebx
mov ecx, dword [esp + 0x358]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005ae75
add esp, 0x34c
ret