Function at 0x499560
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4eedeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x30]
xor eax, eax
push ebp
mov al, byte [ebx]
push esi
push edi
mov ax, word [eax*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
mov eax, dword [eax + ebx]
push eax
call sub.WSOCK32.dll_ntohl
xor ecx, ecx
mov esi, eax
mov cl, byte [ebx]
mov dword [esp + 0x28], esi
mov ax, word [ecx*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
mov ax, word [eax + ebx + 4]
push eax
call sub.WSOCK32.dll_ntohs
mov edi, eax
mov ebp, 6
test esi, esi
mov dword [esp + 0x24], edi
je 0x4998a1
test di, di
je 0x4998a1
and eax, 0xffff
mov dword [esp + 0x18], eax
shl eax, 4
push eax
call fcn.004ddf8e
mov ecx, dword [esp + 0x1c]
add esp, 4
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x4997cb
lea esi, [eax + 6]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x3c], esi
jmp 0x499624
mov esi, dword [esp + 0x3c]
xor edx, edx
mov dl, byte [ebx]
mov ax, word [edx*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
add eax, ebp
mov eax, dword [eax + ebx]
push eax
mov dword [esi - 6], eax
call sub.WSOCK32.dll_ntohl
mov dword [esi - 6], eax
xor eax, eax
mov al, byte [ebx]
add ebp, 4
mov ax, word [eax*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
add eax, ebp
mov ax, word [eax + ebx]
push eax
mov word [esi - 2], ax
call sub.WSOCK32.dll_ntohs
xor ecx, ecx
mov word [esi - 2], ax
mov cl, byte [ebx]
add ebp, 2
mov ax, word [ecx*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
add eax, ebp
mov ax, word [eax + ebx]
push eax
mov word [esi], ax
call sub.WSOCK32.dll_ntohs
xor edx, edx
mov word [esi], ax
mov dl, byte [ebx]
add ebp, 2
mov ax, word [edx*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
add eax, ebp
mov ax, word [eax + ebx]
push eax
mov word [esi + 2], ax
call sub.WSOCK32.dll_ntohs
mov word [esi + 2], ax
xor eax, eax
mov al, byte [ebx]
add ebp, 2
mov ax, word [eax*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
add eax, ebp
mov ax, word [eax + ebx]
push eax
mov word [esi + 4], ax
call sub.WSOCK32.dll_ntohs
xor ecx, ecx
mov word [esi + 4], ax
mov cl, byte [ebx]
add ebp, 2
mov ax, word [ecx*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
add eax, ebp
mov ax, word [eax + ebx]
push eax
call sub.WSOCK32.dll_ntohs
xor edx, edx
mov edi, eax
mov dl, byte [ebx]
add ebp, 2
and edi, 0xffff
mov cx, word [edx*8 + 0x54901c]
mov dword [esp + 0x20], edi
and ecx, 0x8000
lea eax, [edi + 1]
or ch, 0x40
push eax
shr ecx, 0xe
and ecx, 0xffff
add ecx, ebp
add ebp, edi
add ecx, ebx
mov dword [esp + 0x20], ecx
call fcn.004ddf8e
mov ecx, edi
mov dword [esi + 6], eax
mov esi, dword [esp + 0x20]
mov edx, ecx
mov edi, eax
mov eax, dword [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add eax, 0x10
and ecx, 3
mov dword [esp + 0x40], eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax - 0xa]
mov eax, dword [esp + 0x18]
add esp, 4
dec eax
mov byte [edx + ecx], 0
mov dword [esp + 0x14], eax
jne 0x499620
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
push esi
call fcn.00488740
mov esi, eax
add esp, 4
test esi, esi
je 0x499874
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
test eax, eax
je 0x499874
mov ebx, dword [0xb6614c]
test ebx, ebx
je 0x49981f
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xdc]
test eax, eax
je 0x49980a
cmp dword [ebx + 0x38], esi
je 0x499813
mov ebx, dword [ebx + 0x40]
test ebx, ebx
jne 0x4997f7
jmp 0x49981f
test ebx, ebx
je 0x49981f
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
push 0xfc
call fcn.004ddf8e
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
mov dword [esp + 0x34], 0
je 0x499852
mov ecx, dword [esp + 0x10]
push ecx
push edi
push esi
push 0
push 0x64
mov ecx, eax
call fcn.004b52e0
mov esi, eax
jmp 0x499854
xor esi, esi
push 1
push 0
mov ecx, esi
mov dword [esp + 0x3c], 0xffffffff
call fcn.0045a530
mov ecx, dword [esi + 0xe0]
push 0
call fcn.0045a270
mov edi, dword [esp + 0x18]
test edi, edi
jle 0x499894
mov edx, dword [esp + 0x10]
lea esi, [edx + 0xc]
mov eax, dword [esi]
push eax
call fcn.004ddac0
add esp, 4
add esi, 0x10
dec edi
jne 0x499883
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004ddac0
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret