Function at 0x46b690
Capabilities:
Check for peb beingdebugged flag
Check os version
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ed6a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0045ae70
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esi], 0x4f83f8
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd8], ecx
mov dword [esi + 0xd4], edx
mov eax, dword [esi + 0xd0]
xor edi, edi
mov ebx, 1
cmp eax, edi
mov dword [esp + 0x1c], edi
je 0x46b70c
cmp eax, ebx
je 0x46b70c
cmp eax, 5
je 0x46b70c
cmp eax, 2
je 0x46b70c
cmp eax, 3
je 0x46b70c
cmp eax, 4
je 0x46b70c
mov dword [esi + 0xd0], edi
mov eax, dword [esi + 0xd0]
mov ecx, 8
cmp eax, edi
jne 0x46b73d
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xbc], ecx
mov dword [esi + 0xc8], 0x3e9
mov dword [esi + 0xcc], 0x421
jmp 0x46b79f
cmp eax, ebx
je 0x46b77b
cmp eax, 2
je 0x46b77b
cmp eax, 5
je 0x46b755
cmp eax, 3
je 0x46b755
cmp eax, 4
jne 0x46b79f
mov dword [esi + 0xb8], 0x32
mov dword [esi + 0xbc], 0x14
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], 0x3e9
jmp 0x46b79f
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xbc], 6
mov dword [esi + 0xc8], 0x44d
mov dword [esi + 0xcc], 0x47c
mov eax, dword [esi + 0xb8]
xor edx, edx
cmp eax, edi
mov ebp, 0x64
mov dword [esp + 0x3c], edx
jle 0x46b84e
lea eax, [esi + 0xdc]
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0xcc]
cmp ecx, 0x3e9
jne 0x46b7e4
add ebp, ebp
lea eax, [ebx + ebp]
cmp eax, ecx
jle 0x46b7ec
inc ebx
mov ebp, 0x64
lea eax, [ebx + 0x64]
jmp 0x46b7ec
mov eax, dword [esi + 0xc8]
add eax, edx
xor edi, edi
cmp dword [esi + 0xbc], edi
jle 0x46b82b
mov edx, dword [esp + 0x34]
cmp eax, ecx
jl 0x46b800
mov eax, ecx
mov dword [edx], eax
mov ecx, dword [esi + 0xcc]
cmp ecx, 0x3e9
jne 0x46b815
add eax, 5
jmp 0x46b81b
add eax, dword [esi + 0xb8]
inc edi
add edx, 4
cmp edi, dword [esi + 0xbc]
jl 0x46b7fa
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 0xb8]
inc edx
add ecx, 0x190
cmp edx, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], ecx
jl 0x46b7c2
xor edi, edi
mov al, byte [esp + 0x40]
test al, al
je 0x46b89a
call fcn.004df679
cdq
idiv dword [esi + 0xb8]
mov dword [esi + 0xac], edx
call fcn.004df679
cdq
idiv dword [esi + 0xbc]
mov eax, dword [esi + 0xac]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov dword [esi + 0xb0], edx
lea edx, [edx + ecx*4]
mov ax, word [esi + edx*4 + 0xdc]
mov word [esi + 0xb4], ax
jmp 0x46b8a8
mov cx, word [esi + 0xdc]
mov word [esi + 0xb4], cx
mov ebp, dword [esi + 0xbc]
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov edi, dword [esp + 0x2c]
mov ebx, dword [esi + 0xb8]
mov eax, edi
mov dword [esi + 0x20], edi
cdq
idiv ebp
push str.framedata_for_CDumbGump
push 8
mov dword [esi + 8], str.hue_control
mov dword [esi + 0x54], 0x906
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 1
mov ecx, eax
mov eax, dword [esp + 0x38]
cdq
idiv ebx
mov dword [esi + 0xc0], ecx
mov edx, dword [esp + 0x38]
imul ecx, ebp
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 0x34], edx
mov dword [esi + 0xa4], ecx
mov dword [esp + 0x48], eax
mov dword [esi + 0xc4], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x30], eax
mov eax, edi
mov edi, dword [esp + 0x48]
sub eax, ecx
imul edi, ebx
cdq
sub eax, edx
mov dword [esi + 0xa8], edi
sar eax, 1
mov dword [esi + 0x9c], eax
mov eax, dword [esp + 0x38]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xa0], eax
call fcn.00479630
mov ecx, dword [esi + 0x18]
mov edi, eax
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x3c], edi
push str.dumb_frame0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x20]
imul eax, dword [esi + 0x24]
lea ecx, [eax + eax + 4]
push ecx
call fcn.00479630
mov edx, dword [esi + 0x3c]
add esp, 0x10
mov dword [edx + 4], eax
mov ecx, dword [esi + 0x20]
imul ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x3c]
xor eax, eax
shl ecx, 1
mov edi, dword [edx + 4]
mov edx, ecx
add edi, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x3c]
mov dx, word [esi + 0x20]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x3c]
mov dx, word [esi + 0x24]
mov ecx, dword [eax + 4]
mov word [ecx + 2], dx
mov ecx, esi
call fcn.0046bd20
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20