Function at 0x10070d00
Capabilities:
Get socket status

Disassembly:
sub esp, 0x34c
mov eax, dword [0x100c7070]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push ebp
mov ebp, dword [esp + 0x368]
xor eax, eax
mov dword [esp + 0x1c], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x14], xmm0
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
jl 0x10070d54
jg 0x10070d4b
mov edi, dword [esp + 0x36c]
cmp edi, 0x7fffffff
jb 0x10070d5b
mov edi, accept
xor ebp, ebp
jmp 0x10070d5b
mov edi, dword [esp + 0x36c]
mov ecx, dword [esp + 0x360]
mov ebx, dword [esp + 0x364]
cmp ecx, 0xffffffff
jne 0x10070da3
cmp ebx, 0xffffffff
jne 0x10070da3
cmp dword [esp + 0x368], ebx
jne 0x10070da3
test edi, edi
je 0x10070d9c
jns 0x10070d95
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
jmp 0x100710bc
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x100710bc
test ebp, ebp
jl 0x10070dca
jg 0x10070dad
test edi, edi
je 0x10070dca
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], edi
push eax
call fcn.1006eec0
mov ecx, dword [esp + 0x364]
add esp, 4
movups xmm0, xmmword [eax]
jmp 0x10070dcf
movups xmm0, xmmword [esp + 0x1c]
xor eax, eax
xor esi, esi
or edx, 0xffffffff
mov dword [esp + 0x254], eax
mov dword [esp + 0x4c], esi
movups xmmword [esp + 0x2c], xmm0
cmp ecx, 0xffffffff
je 0x10070e0a
mov esi, 1
mov dword [esp + 0x50], ecx
mov eax, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x258], ecx
mov edx, ecx
mov dword [esp + 0x254], eax
cmp ebx, 0xffffffff
je 0x10070e72
xor ecx, ecx
test esi, esi
je 0x10070e20
cmp dword [esp + ecx*4 + 0x50], ebx
je 0x10070e20
inc ecx
cmp ecx, esi
jb 0x10070e15
cmp ecx, esi
jne 0x10070e36
cmp esi, 0x40
jae 0x10070e36
mov dword [esp + ecx*4 + 0x50], ebx
mov esi, dword [esp + 0x4c]
inc esi
mov dword [esp + 0x4c], esi
xor ecx, ecx
test eax, eax
je 0x10070e4e
nop dword [eax]
cmp dword [esp + ecx*4 + 0x258], ebx
je 0x10070e4e
inc ecx
cmp ecx, eax
jb 0x10070e40
cmp ecx, eax
jne 0x10070e6d
cmp eax, 0x40
jae 0x10070e6d
mov dword [esp + ecx*4 + 0x258], ebx
mov eax, dword [esp + 0x254]
inc eax
mov dword [esp + 0x254], eax
cmp ebx, edx
cmova edx, ebx
mov ecx, dword [esp + 0x368]
mov dword [esp + 0x150], 0
cmp ecx, 0xffffffff
je 0x10070ef2
mov dword [esp + 0x154], ecx
xor ecx, ecx
mov dword [esp + 0x150], 1
test eax, eax
je 0x10070ec5
mov ebx, dword [esp + 0x368]
nop dword [eax + eax]
cmp dword [esp + ecx*4 + 0x258], ebx
je 0x10070ebe
inc ecx
cmp ecx, eax
jb 0x10070eb0
mov ebx, dword [esp + 0x364]
cmp ecx, eax
jne 0x10070ee3
cmp eax, 0x40
jae 0x10070ee3
mov eax, dword [esp + 0x368]
mov dword [esp + ecx*4 + 0x258], eax
inc dword [esp + 0x254]
cmp dword [esp + 0x368], edx
cmova edx, dword [esp + 0x368]
test ebp, ebp
jg 0x10070f06
jl 0x10070efc
test edi, edi
jae 0x10070f06
mov dword [esp + 0x14], 0
jmp 0x10070f0e
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [edx + 1]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
nop dword [eax]
test ebp, ebp
jl 0x10070f53
jg 0x10070f2a
test edi, edi
je 0x10070f53
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x20], eax
jmp 0x10070f61
mov eax, edi
or eax, ebp
jne 0x10070f61
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push dword [esp + 0x14]
xor ecx, ecx
lea eax, [esp + 0x258]
cmp dword [esp + 0x154], ecx
push eax
lea eax, [esp + 0x158]
cmove eax, ecx
test esi, esi
push eax
lea eax, [esp + 0x58]
cmove eax, ecx
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x10071012
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x10070fbc
cmp dword [0x100cae40], 0
jne 0x10070d8d
cmp eax, 0x2714
jne 0x10070d8d
test ebp, ebp
jl 0x10070fc6
jg 0x10070fcf
test edi, edi
jne 0x10070fcf
mov esi, dword [esp + 0x4c]
jmp 0x10070f15
lea eax, [esp + 0x3c]
push eax
call fcn.1006eec0
movups xmm0, xmmword [esp + 0x30]
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.1006ee70
mov ecx, edi
add esp, 0x20
sub ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jle 0x10070d9c
mov esi, dword [esp + 0x4c]
jmp 0x10070f20
test eax, eax
js 0x10070d8d
je 0x10070d9c
mov edi, dword [esp + 0x360]
xor esi, esi
cmp edi, 0xffffffff
je 0x10071058
lea eax, [esp + 0x4c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov ecx, 1
lea eax, [esp + 0x254]
push eax
push edi
cmovne esi, ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10071058
or esi, 4
cmp ebx, 0xffffffff
je 0x10071084
lea eax, [esp + 0x4c]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1007106f
or esi, 8
lea eax, [esp + 0x254]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10071084
or esi, 4
mov ebx, dword [esp + 0x368]
cmp ebx, 0xffffffff
je 0x100710ba
lea eax, [esp + 0x150]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100710a5
or esi, 2
lea eax, [esp + 0x254]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100710ba
or esi, 4
mov eax, esi
mov ecx, dword [esp + 0x358]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10044baf
add esp, 0x34c
ret