Function at 0x10066230
Capabilities:
Get number of processors
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x102523c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
push 1
lea ecx, [esp + 0x1c]
lea eax, [edi + 0x64]
push eax
call fcn.10091800
mov ebx, dword [esp + 0x34]
xor edx, edx
mov eax, ebx
xor ecx, ecx
shr eax, 4
div dword [edi + 0x88]
mov eax, dword [edi + 0x84]
mov dword [esp + 0x2c], ecx
cmp eax, ecx
mov dword [esp + 0xc], ecx
je 0x10066293
mov eax, dword [eax + edx*4]
cmp eax, ecx
je 0x10066293
cmp dword [eax + 8], ebx
je 0x100662ca
mov eax, dword [eax]
cmp eax, ecx
jne 0x10066288
push ecx
mov ecx, dword [edi + 0x60]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10091860
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
cmp eax, ecx
je 0x10066293
mov esi, dword [eax + 0xc]
cmp dword [esi + 0x9c], ecx
je 0x10066300
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10091860
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov eax, dword [esi + 0x88]
push ebp
mov ebp, dword [esi + 0x84]
dec eax
cmp eax, 3
mov dword [esp + 0x38], ebp
ja case.default.0x1006631b
jmp dword [eax*4 + 0x100664d4]
mov eax, dword [esi + 0x64]
mov dword [esi + 0x88], 3
test eax, eax
jne 0x100664a9
mov edx, dword [esi]
push 1
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [esi + 0x40]
lea ebp, [esi + 0x40]
xor eax, eax
cmp ecx, eax
je 0x10066428
cmp dword [esi + 0x8c], eax
je 0x100664a9
mov dword [esi + 0x8c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
push eax
lea eax, [esi + 0x20]
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x24]
jmp 0x100663f6
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x100664a9
jmp 0x10066456
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x100664a9
mov edx, dword [esi]
push 1
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esi + 0x64]
mov dword [esi + 0x88], 4
test eax, eax
jne 0x100663be
mov eax, dword [esi + 0x40]
test eax, eax
je 0x10066456
mov ecx, dword [esi + 0x40]
lea ebp, [esi + 0x40]
xor eax, eax
cmp ecx, eax
je 0x100664a9
cmp dword [esi + 0x8c], eax
je 0x100664a9
mov dword [esi + 0x8c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push eax
lea eax, [esi + 0x20]
lea ecx, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, dword [esi]
push edx
lea eax, [esi + 0x38]
push 1
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x100664a9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x100664a9
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
push ebx
mov ecx, edi
call fcn.100664f0
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x10], 1
jmp 0x10066467
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x100664a9
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x100664a9
jmp 0x10066456
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x100664a9
push esi
push ebx
mov ecx, edi
call fcn.100664f0
mov dword [esp + 0x10], 1
mov eax, ebp
xor edx, edx
shr eax, 4
div dword [edi + 0x88]
mov eax, dword [edi + 0x84]
test eax, eax
je 0x100664a9
mov eax, dword [eax + edx*4]
test eax, eax
je 0x100664a9
cmp dword [eax + 8], ebp
je 0x10066492
mov eax, dword [eax]
test eax, eax
jne 0x10066485
jmp 0x100664a9
test eax, eax
je 0x100664a9
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x64]
test ecx, ecx
jne 0x100664a9
push eax
push ebp
mov ecx, edi
call fcn.100664f0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.10091860
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4