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

Disassembly:
push 0xffffffffffffffff
push 0x1025fea8
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.1009cf30
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 0x100718b3
mov eax, dword [eax + edx*4]
cmp eax, ecx
je 0x100718b3
cmp dword [eax + 8], ebx
je 0x100718ea
mov eax, dword [eax]
cmp eax, ecx
jne 0x100718a8
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.1009cf90
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 0x100718b3
mov esi, dword [eax + 0xc]
cmp dword [esi + 0x9c], ecx
je 0x10071920
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1009cf90
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.0x1007193b
jmp dword [eax*4 + 0x10071b64]
mov eax, dword [esi + 0x64]
mov dword [esi + 0x88], 3
test eax, eax
jne 0x10071b38
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 0x10071ab7
cmp dword [esi + 0x8c], eax
je 0x10071b38
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
lea edx, [esp + 0x20]
push ecx
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 0x10071b38
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10071b38
mov eax, dword [0x1030aa70]
test eax, eax
je 0x10071aae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi]
push eax
push edx
jmp 0x10071a95
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x10071b38
jmp 0x10071ae5
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x10071b38
mov eax, dword [esi]
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esi + 0x64]
mov dword [esi + 0x88], 4
test eax, eax
jne 0x10071a21
mov eax, dword [esi + 0x40]
test eax, eax
je 0x10071ae5
mov ecx, dword [esi + 0x40]
lea ebp, [esi + 0x40]
xor eax, eax
cmp ecx, eax
je 0x10071b38
cmp dword [esi + 0x8c], eax
je 0x10071b38
lea ecx, [esi + 0x20]
mov dword [esi + 0x8c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esi]
push eax
lea ecx, [esi + 0x38]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x10071b38
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10071b38
mov eax, dword [0x1030aa70]
test eax, eax
je 0x10071aae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [esi]
push eax
push str.WSARecv_failed__SOCKET__d___errno__d_
push str.SocketSystem
push 1
push 0x1030a1dc
call fcn.100a4680
add esp, 0x18
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
push ebx
mov ecx, edi
call fcn.10071b80
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x10], 1
jmp 0x10071af6
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x10071b38
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x10071b38
jmp 0x10071ae5
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x10071b38
push esi
push ebx
mov ecx, edi
call fcn.10071b80
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 0x10071b38
mov eax, dword [eax + edx*4]
test eax, eax
je 0x10071b38
cmp dword [eax + 8], ebp
je 0x10071b21
mov eax, dword [eax]
test eax, eax
jne 0x10071b14
jmp 0x10071b38
test eax, eax
je 0x10071b38
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x64]
test ecx, ecx
jne 0x10071b38
push eax
push ebp
mov ecx, edi
call fcn.10071b80
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.1009cf90
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