Function at 0x100070e0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006592d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x28], 1
mov dword [ebp - 4], 0
cmp byte [edi + 0xd0], 0
jne 0x10007485
mov eax, dword [edi + 0xa8]
lea ecx, [edi + 0xc0]
mov dword [ebp - 0x1c], ecx
mov dword [eax], 0
mov eax, dword [edi + 0xb4]
mov dword [edi + 0xb0], 0xffffffff
mov dword [eax], 0
mov dword [edi + 0xbc], 0xffffffff
mov eax, dword [ecx]
mov dword [eax], 0
mov dword [ecx + 8], 0xffffffff
xor ecx, ecx
mov esi, dword [edi + 0xa8]
mov ebx, dword [edi + 0x30]
mov edx, dword [esi]
test edx, edx
je 0x100071a0
lea eax, [esi + 4]
nop word [eax + eax]
cmp dword [eax], ebx
je 0x1000722f
inc ecx
add eax, 4
cmp ecx, edx
jb 0x10007190
lea ecx, [edx + 1]
mov edx, dword [edi + 0xac]
cmp ecx, edx
jbe 0x10007221
mov eax, edx
shr eax, 1
add eax, edx
cmp eax, ecx
cmovae ecx, eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx*4 + 4]
push eax
call fcn.10041665
mov ecx, dword [edi + 0xa8]
mov esi, eax
add esp, 4
mov ecx, dword [ecx]
mov dword [esi], ecx
xor ecx, ecx
mov eax, dword [edi + 0xa8]
cmp dword [eax], ecx
jbe 0x10007209
nop dword [eax]
nop word [eax + eax]
mov eax, dword [edi + 0xa8]
mov eax, dword [eax + ecx*4 + 4]
mov dword [esi + ecx*4 + 4], eax
inc ecx
mov eax, dword [edi + 0xa8]
cmp ecx, dword [eax]
jb 0x100071f0
push eax
call fcn.10041b03
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [edi + 0xa8], esi
mov dword [edi + 0xac], eax
mov eax, dword [esi]
mov dword [esi + eax*4 + 4], ebx
mov eax, dword [edi + 0xa8]
inc dword [eax]
mov esi, dword [edi + 0xcc]
xor ebx, ebx
test esi, esi
je 0x10007254
nop dword [eax + eax]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x10007254
mov esi, dword [esi + 4]
test esi, esi
jne 0x10007240
lea eax, [edi + 0x38]
mov dword [ebp - 0x10], 3
lea esi, [edi + 0xb0]
mov edi, eax
push ecx
push edi
lea ecx, [esi - 8]
call fcn.10005fb0
cmp dword [esi], ebx
cmova ebx, dword [esi]
add edi, 0x1c
sub dword [ebp - 0x10], 1
lea esi, [esi + 0xc]
jne 0x10007266
mov edi, dword [ebp - 0x14]
push ecx
lea esi, [edi + 0x8c]
push esi
lea ecx, [edi + 0xb4]
call fcn.10005fb0
mov eax, dword [edi + 0xbc]
cmp eax, ebx
push ecx
push esi
lea ecx, [edi + 0xc0]
cmova ebx, eax
call fcn.10005fb0
mov eax, dword [edi + 0xc8]
mov ecx, 1
mov esi, dword [edi + 0xcc]
cmp eax, ebx
cmovbe eax, ebx
mov dword [ebp - 0x10], eax
test esi, esi
je 0x100072e1
nop dword [eax]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [esi + 4]
mov ecx, eax
test esi, esi
jne 0x100072d0
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x24], eax
imul eax, eax, 0xf4240
sub ecx, eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0xa8]
lea esi, [edi + 0xc0]
mov ecx, dword [esi]
xor bl, bl
mov edx, dword [edi + 0xb4]
mov byte [ebp - 0x28], bl
test eax, eax
jne 0x10007363
test edx, edx
jne 0x10007363
test ecx, ecx
jne 0x10007363
mov eax, 0x10624dd3
imul dword [ebp - 0x20]
imul eax, dword [ebp - 0x24], 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 1
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
jmp 0x10007400
cmp dword [ebp - 0x24], 0
jne 0x10007389
mov eax, dword [ebp - 0x20]
test eax, eax
jle 0x10007383
cmp eax, 0x3e8
mov dword [ebp - 0x18], 0x3e8
cmovl eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0xa8]
lea esi, [ebp - 0x24]
push esi
push ecx
push edx
push eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x18], eax
lea esi, [edi + 0xc0]
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x100073b8
call fcn.10002f00
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10007400
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x10007400
push dword [edi + 0xa8]
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x10007400
lea ecx, [edi + 0x30]
call fcn.100069f0
test al, al
jne 0x100073f5
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, 1
lea ecx, [edi + 0x30]
mov byte [ebp - 0x28], bl
call fcn.10006980
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x10], eax
test bl, bl
jne 0x10007411
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 0x28], 1
mov ebx, dword [ebp + 0xc]
test eax, eax
jle 0x10007461
push ebx
lea eax, [edi + 0x8c]
mov ecx, esi
push eax
call fcn.10006050
push ebx
lea eax, [edi + 0x8c]
push eax
lea ecx, [edi + 0xb4]
call fcn.10006050
lea ebx, [edi + 0x70]
mov esi, 2
mov edi, dword [ebp - 0x1c]
push dword [ebp + 0xc]
mov ecx, edi
push ebx
call fcn.10006050
sub ebx, 0x1c
sub edi, 0xc
sub esi, 1
jns 0x10007445
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp + 0xc]
mov esi, dword [edi + 0xcc]
test esi, esi
je 0x1000747f
nop dword [eax + eax]
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0x10]
mov esi, dword [esi + 4]
test esi, esi
jne 0x10007470
cmp byte [ebp - 0x28], 0
je 0x1000748f
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8