Function at 0x462180
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5e8250
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704dd8]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x71c]
mov ecx, dword [esi + 0x718]
push eax
push ecx
call fcn.00404090
add esp, 8
mov ebx, eax
push 0x5fd0cc
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ebx
xor edi, edi
call fcn.00404b40
push 0x5fd0cc
lea ecx, [esp + 0x30]
mov dword [esp + 0x64], edi
call fcn.00404b40
mov edx, dword [esi + 0x71c]
mov eax, dword [esi + 0x718]
push 1
push edx
push eax
mov byte [esp + 0x6c], 1
call fcn.00403f60
mov ebp, eax
mov eax, dword [esi + 0x500]
add esp, 0xc
cmp eax, edi
jne 0x46221c
cmp ebp, edi
jne 0x462219
lea ebp, [edi + 6]
jmp 0x462234
dec ebp
jmp 0x462234
cmp eax, 2
jne 0x462234
cmp ebp, edi
jne 0x46222a
lea ebp, [eax - 1]
jmp 0x462234
cmp ebp, 6
jne 0x462233
xor ebp, ebp
jmp 0x462234
inc ebp
mov ecx, dword [esi + 0x718]
cmp ecx, 0x7b2
jne 0x46224d
cmp dword [esi + 0x71c], 2
jge 0x462253
cmp ecx, ecx
jle 0x46230c
xor eax, eax
add ecx, 0xfffff894
mov dword [esp + 0x48], eax
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x71c]
lea edx, [esp + 0x34]
dec ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], 1
call fcn.004e8c26
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
test ebp, ebp
jle 0x4623c2
mov ebx, ebp
imul ebx, ebx, 0x15180
mov ecx, dword [esp + 0x20]
mov eax, ebx
cdq
sub ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
sbb eax, edx
push ecx
mov dword [esp + 0x20], eax
call fcn.004eac6e
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
add esp, 4
push edx
mov edx, dword [eax + 0x14]
inc ecx
push ecx
add edx, 0x76c
push edx
push edi
push 0
mov ecx, esi
call fcn.00461c90
inc edi
sub ebx, 0x15180
cmp edi, ebp
jl 0x4622bb
jmp 0x4623be
cmp ebp, edi
jle 0x4623c2
mov ebx, 0x1f
sub ebx, ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebp
jmp 0x462330
mov eax, dword [esi + 0x71c]
mov ecx, dword [esi + 0x718]
cmp eax, 1
jne 0x46234f
dec ecx
mov dword [esp + 0x18], 0xc
lea ebp, [ebx + 1]
jmp 0x46239c
cmp eax, 8
lea edx, [eax - 1]
mov dword [esp + 0x18], edx
jg 0x462435
cmp eax, 3
jne 0x46241f
mov eax, ecx
and eax, reloc.WS2_32.dll_closesocket
lea ebp, [ebx - 2]
jns 0x462379
dec eax
or eax, 0xfffffffc
inc eax
jne 0x462389
mov eax, ecx
cdq
mov ebx, 0x64
idiv ebx
test edx, edx
jne 0x462397
mov eax, ecx
cdq
mov ebx, 0x190
idiv ebx
test edx, edx
jne 0x462398
inc ebp
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ebp
push edx
push ecx
push edi
push 0
mov ecx, esi
call fcn.00461c90
inc ebx
inc edi
sub dword [esp + 0x20], 1
mov dword [esp + 0x14], ebx
jne 0x462330
mov ebx, dword [esp + 0x28]
mov ebp, 1
cmp ebx, ebp
jl 0x4623ea
mov eax, dword [esi + 0x71c]
mov ecx, dword [esi + 0x718]
push ebp
push eax
push ecx
push edi
push 1
mov ecx, esi
call fcn.00461c90
inc ebp
inc edi
cmp ebp, ebx
jle 0x4623cb
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 5
jne 0x46244e
lea ecx, [edi - 0x23]
test ecx, ecx
je 0x46244e
mov dword [esi + 0x804], 2
mov dword [esi + 0x758], 0x2a
jmp 0x462462
and eax, reloc.WSOCK32.dll_accept
jns 0x46242b
dec eax
or eax, 0xfffffffe
inc eax
jne 0x462447
lea ebp, [ebx + 1]
jmp 0x46239c
and eax, reloc.WSOCK32.dll_accept
jns 0x462441
dec eax
or eax, 0xfffffffe
inc eax
jne 0x46234a
mov ebp, ebx
jmp 0x46239c
mov dword [esi + 0x758], 0x23
mov dword [esi + 0x804], 0xe
mov ebx, 1
jmp 0x462470
mov edx, dword [esi + 0x73c]
mov eax, dword [esi + 0x738]
push ebx
push edx
push eax
push edi
push 2
mov ecx, esi
call fcn.00461c90
test eax, eax
je 0x462499
inc edi
cmp edi, 0x2a
jge 0x462499
inc ebx
cmp ebx, 0x14
jl 0x462470
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x60], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4624be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4624e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret