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

Disassembly:
push 0xffffffffffffffff
push 0x4ff598
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.0046b880
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esi], 0x50bb30
mov dword [esi + 0xd4], eax
mov dword [esi + 0xdc], ecx
mov dword [esi + 0xd8], edx
mov eax, dword [esi + 0xd4]
xor edi, edi
mov ebx, 1
cmp eax, edi
mov dword [esp + 0x1c], edi
je 0x4addbc
cmp eax, ebx
je 0x4addbc
cmp eax, 5
je 0x4addbc
cmp eax, 2
je 0x4addbc
cmp eax, 3
je 0x4addbc
cmp eax, 4
je 0x4addbc
mov dword [esi + 0xd4], edi
mov eax, dword [esi + 0xd4]
mov ecx, 8
cmp eax, edi
jne 0x4added
mov dword [esi + 0xbc], ecx
mov dword [esi + 0xc0], ecx
mov dword [esi + 0xcc], 0x3e9
mov dword [esi + 0xd0], 0x421
jmp 0x4ade4f
cmp eax, ebx
je 0x4ade2b
cmp eax, 2
je 0x4ade2b
cmp eax, 5
je 0x4ade05
cmp eax, 3
je 0x4ade05
cmp eax, 4
jne 0x4ade4f
mov dword [esi + 0xbc], 0x32
mov dword [esi + 0xc0], 0x14
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], 0x3e9
jmp 0x4ade4f
mov dword [esi + 0xbc], ecx
mov dword [esi + 0xc0], 6
mov dword [esi + 0xcc], 0x44d
mov dword [esi + 0xd0], 0x47c
mov eax, dword [esi + 0xbc]
xor edx, edx
cmp eax, edi
mov ebp, 0x64
mov dword [esp + 0x3c], edx
jle 0x4adefe
lea eax, [esi + 0xe0]
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0xd0]
cmp ecx, 0x3e9
jne 0x4ade94
add ebp, ebp
lea eax, [ebx + ebp]
cmp eax, ecx
jle 0x4ade9c
inc ebx
mov ebp, 0x64
lea eax, [ebx + 0x64]
jmp 0x4ade9c
mov eax, dword [esi + 0xcc]
add eax, edx
xor edi, edi
cmp dword [esi + 0xc0], edi
jle 0x4adedb
mov edx, dword [esp + 0x34]
cmp eax, ecx
jl 0x4adeb0
mov eax, ecx
mov dword [edx], eax
mov ecx, dword [esi + 0xd0]
cmp ecx, 0x3e9
jne 0x4adec5
add eax, 5
jmp 0x4adecb
add eax, dword [esi + 0xbc]
inc edi
add edx, 4
cmp edi, dword [esi + 0xc0]
jl 0x4adeaa
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 0xbc]
inc edx
add ecx, 0x190
cmp edx, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], ecx
jl 0x4ade72
xor edi, edi
mov al, byte [esp + 0x40]
test al, al
je 0x4adf4a
call fcn.004ed909
cdq
idiv dword [esi + 0xbc]
mov dword [esi + 0xb0], edx
call fcn.004ed909
cdq
idiv dword [esi + 0xc0]
mov eax, dword [esi + 0xb0]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov dword [esi + 0xb4], edx
lea edx, [edx + ecx*4]
mov ax, word [esi + edx*4 + 0xe0]
mov word [esi + 0xb8], ax
jmp 0x4adf58
mov cx, word [esi + 0xe0]
mov word [esi + 0xb8], cx
mov ebp, dword [esi + 0xc0]
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], edi
mov edi, dword [esp + 0x2c]
mov ebx, dword [esi + 0xbc]
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 + 0x58], 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 + 0xc4], 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 + 0xa8], ecx
mov dword [esp + 0x48], eax
mov dword [esi + 0xc8], 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 + 0xac], edi
sar eax, 1
mov dword [esi + 0xa0], eax
mov eax, dword [esp + 0x38]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xa4], eax
call fcn.004b9f50
mov ecx, dword [esi + 0x18]
mov edi, eax
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x40], 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.004b9f50
mov edx, dword [esi + 0x40]
add esp, 0x10
mov dword [edx + 4], eax
mov ecx, dword [esi + 0x20]
imul ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x40]
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 + 0x40]
mov dx, word [esi + 0x20]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x40]
mov dx, word [esi + 0x24]
mov ecx, dword [eax + 4]
mov word [ecx + 2], dx
mov ecx, esi
call fcn.004ae3c0
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