Function at 0x1002d3f1
Capabilities:
Get socket status

Disassembly:
sub esp, 0x348
mov eax, dword [esp + 0x35c]
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 0x1002d439
mov ecx, bind
jg 0x1002d42f
mov ebp, dword [esp + 0x368]
cmp ebp, ecx
jb 0x1002d440
mov eax, ebx
mov ebp, ecx
mov dword [esp + 0x10], eax
jmp 0x1002d440
mov ebp, dword [esp + 0x368]
mov esi, dword [esp + 0x35c]
cmp esi, 0xffffffff
jne 0x1002d46a
cmp dword [esp + 0x360], esi
jne 0x1002d46a
cmp dword [esp + 0x364], esi
jne 0x1002d46a
push ebp
call fcn.1002d73f
pop ecx
jmp 0x1002d734
cmp eax, ebx
jl 0x1002d494
jg 0x1002d474
cmp ebp, ebx
jbe 0x1002d494
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x18], ebp
call fcn.100309e4
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 + 0x360]
pop ecx
mov eax, ebx
or edx, 0xffffffff
mov ecx, ebx
xor edi, edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x150], ecx
cmp esi, 0xffffffff
je 0x1002d4cb
lea ecx, [edi + 1]
lea eax, [edi + 1]
mov dword [esp + 0x154], esi
mov dword [esp + 0x150], ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], eax
mov edx, esi
mov esi, dword [esp + 0x360]
cmp esi, 0xffffffff
je 0x1002d534
test ecx, ecx
je 0x1002d4e9
cmp dword [esp + edi*4 + 0x154], esi
je 0x1002d4e9
inc edi
cmp edi, ecx
jb 0x1002d4db
cmp edi, ecx
jne 0x1002d508
cmp ecx, 0x40
jae 0x1002d508
mov dword [esp + edi*4 + 0x154], esi
mov ecx, dword [esp + 0x150]
inc ecx
mov dword [esp + 0x150], ecx
mov edi, ebx
test eax, eax
je 0x1002d519
cmp dword [esp + edi*4 + 0x50], esi
je 0x1002d519
inc edi
cmp edi, eax
jb 0x1002d50e
cmp edi, eax
jne 0x1002d52f
cmp eax, 0x40
jae 0x1002d52f
mov dword [esp + edi*4 + 0x50], esi
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
cmp esi, edx
cmova edx, esi
mov edi, dword [esp + 0x364]
mov dword [esp + 0x254], ebx
cmp edi, 0xffffffff
je 0x1002d580
mov dword [esp + 0x258], edi
mov dword [esp + 0x254], 1
mov esi, ebx
test eax, eax
je 0x1002d56a
cmp dword [esp + esi*4 + 0x50], edi
je 0x1002d56a
inc esi
cmp esi, eax
jb 0x1002d55f
cmp esi, eax
jne 0x1002d57b
cmp eax, 0x40
jae 0x1002d57b
mov dword [esp + esi*4 + 0x50], edi
inc dword [esp + 0x4c]
cmp edi, edx
cmova edx, edi
mov esi, dword [esp + 0x10]
cmp esi, ebx
jg 0x1002d596
jl 0x1002d58e
cmp ebp, ebx
jae 0x1002d596
mov edi, ebx
mov dword [esp + 0x18], ebx
jmp 0x1002d59e
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], edi
lea eax, [edx + 1]
mov dword [esp + 0x28], eax
cmp esi, ebx
jl 0x1002d5d0
jg 0x1002d5af
cmp ebp, ebx
jbe 0x1002d5d0
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 0x1002d5de
mov eax, ebp
or eax, esi
jne 0x1002d5de
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push edi
xor edx, edx
cmp dword [esp + 0x258], edx
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x25c]
cmove eax, edx
push eax
test ecx, ecx
lea eax, [esp + 0x15c]
cmove eax, edx
push eax
push dword [esp + 0x38]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1002d683
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1002d62d
cmp dword [0x1009ab10], ebx
jne 0x1002d687
cmp eax, 0x2714
jne 0x1002d687
cmp esi, ebx
jl 0x1002d675
jg 0x1002d637
cmp ebp, ebx
jbe 0x1002d675
lea eax, [esp + 0x3c]
push eax
call fcn.100309e4
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.10030a6f
mov ecx, ebp
sub ecx, eax
add esp, 0x20
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x1002d681
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x150]
jmp 0x1002d5a5
mov eax, ebx
test eax, eax
jns 0x1002d68f
or eax, 0xffffffff
jmp 0x1002d734
jne 0x1002d698
xor eax, eax
jmp 0x1002d734
mov esi, dword [esp + 0x35c]
cmp esi, 0xffffffff
je 0x1002d6cc
lea eax, [esp + 0x150]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
push 1
test eax, eax
pop eax
cmovne ebx, eax
lea eax, [esp + 0x4c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1002d6cc
or ebx, 4
mov esi, dword [esp + 0x360]
cmp esi, 0xffffffff
je 0x1002d6ff
lea eax, [esp + 0x150]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1002d6ed
or ebx, 8
lea eax, [esp + 0x4c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1002d6ff
or ebx, 4
mov edi, dword [esp + 0x364]
cmp edi, 0xffffffff
je 0x1002d732
lea eax, [esp + 0x254]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1002d720
or ebx, 2
lea eax, [esp + 0x4c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1002d732
or ebx, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x348
ret