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

Disassembly:
push 0xffffffffffffffff
push 0x1018fc98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push edi
mov edi, ecx
push 1
lea ecx, [esp + 0x18]
lea eax, [edi + 0x64]
push eax
call fcn.10084010
mov ebx, dword [esp + 0x30]
xor edx, edx
mov eax, ebx
xor ecx, ecx
shr eax, 4
div dword [edi + 0x88]
mov eax, dword [edi + 0x84]
mov dword [esp + 0x28], ecx
cmp eax, ecx
mov dword [esp + 8], ecx
je 0x1005a372
mov eax, dword [eax + edx*4]
cmp eax, ecx
je 0x1005a372
cmp dword [eax + 8], ebx
je 0x1005a3a8
mov eax, dword [eax]
cmp eax, ecx
jne 0x1005a367
push ecx
mov ecx, dword [edi + 0x60]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.10084070
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
cmp eax, ecx
je 0x1005a372
push ebp
push esi
mov esi, dword [eax + 0xc]
mov eax, dword [esi + 0x88]
mov ebp, dword [esi + 0x84]
dec eax
mov dword [esp + 0x38], ebp
cmp eax, 3
ja case.default.0x1005a3cb
jmp dword [eax*4 + 0x1005a584]
mov eax, dword [esi + 0x64]
mov dword [esi + 0x88], 3
test eax, eax
jne 0x1005a559
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 0x1005a4d8
cmp dword [esi + 0x8c], eax
je 0x1005a559
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 0x1005a4a6
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x1005a559
jmp 0x1005a506
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x1005a559
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 0x1005a46e
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1005a506
mov ecx, dword [esi + 0x40]
lea ebp, [esi + 0x40]
xor eax, eax
cmp ecx, eax
je 0x1005a559
cmp dword [esi + 0x8c], eax
je 0x1005a559
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 0x1005a559
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1005a559
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
push ebx
mov ecx, edi
call fcn.1005a5a0
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x10], 1
jmp 0x1005a517
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x1005a559
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x1005a559
jmp 0x1005a506
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x1005a559
push esi
push ebx
mov ecx, edi
call fcn.1005a5a0
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 0x1005a559
mov eax, dword [eax + edx*4]
test eax, eax
je 0x1005a559
cmp dword [eax + 8], ebp
je 0x1005a542
mov eax, dword [eax]
test eax, eax
jne 0x1005a535
jmp 0x1005a559
test eax, eax
je 0x1005a559
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x64]
test ecx, ecx
jne 0x1005a559
push eax
push ebp
mov ecx, edi
call fcn.1005a5a0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.10084070
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4