Function at 0x52b820
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584343
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5eae84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0052b5b0
push 0x80
mov dword [ebp - 0x24], 0x180
mov dword [ebp - 0x20], 0x180
mov dword [ebp - 0x30], 0x4000
mov dword [ebp - 0x2c], 0x4000
call fcn.0045c4e0
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x52b892
mov ecx, esi
call fcn.0052cd90
mov dword [esi + 0x5c], ebx
push str.VIEWER_EFFECT_effect_viewer.def
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x18], esi
call fcn.0052cee0
push 0x6c
call fcn.0045c4e0
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x52b8cf
mov ecx, esi
call fcn.0052bef0
push 0xf
push 0xf
mov dword [esi + 0x5c], ebx
push 0xf
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x1c], esi
call fcn.0052bfe0
push 0x64
call fcn.0045c4e0
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x52b90d
mov ecx, esi
call fcn.0052d4c0
mov dword [esi + 0x5c], ebx
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x20], esi
call fcn.004159f0
push 0x63eb28
push 1
call fcn.0043f2f0
add esp, 8
mov ecx, 0x63eb28
push 0x63ec20
push 0
call fcn.0043f2a0
push 0x63eba0
push 1
mov ecx, 0x63eb28
call fcn.0043f2a0
push dword [ebx + 0x20]
mov ecx, 0x63eb28
push 2
call fcn.0043f2a0
push dword [ebx + 0x18]
mov ecx, 0x63ec20
push 0
call fcn.0043f2a0
push dword [ebx + 0x1c]
mov ecx, 0x63eba0
push 0
call fcn.0043f2a0
lea edi, [ebx + 0x70]
mov ecx, edi
call fcn.00454ef0
mov ecx, edi
mov dword [ebx + 0xf4], 0
call fcn.00454d10
push 0
push 0
push 0
mov ecx, edi
call fcn.004557b0
push 0x7f00000
push 0x1000
mov ecx, edi
call fcn.00455730
push 0
push 0x1000
push 0
mov ecx, edi
call fcn.00455770
push 0
push 1
push 0
mov ecx, edi
call fcn.004556e0
movq xmm0, qword [ebp - 0x24]
push 0
movq qword [ebx + 0x134], xmm0
movq xmm0, qword [ebp - 0x30]
push 0xffffa000
movq qword [ebx + 0x128], xmm0
push 0xf00
mov ecx, edi
mov dword [ebx + 0x13c], 0x180
mov dword [ebx + 0x130], 0x4000
call fcn.00455680
push 0x20b000
mov ecx, edi
call fcn.00455720
lea esi, [ebx + 0x140]
push edi
mov ecx, esi
call fcn.0045b9d0
mov ecx, esi
call fcn.0045b8e0
lea ecx, [ebx + 0x384]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebx + 0x390], 0x280000
mov dword [ebx + 0x394], 0x280000
mov dword [ebx + 0x398], 0x280000
mov eax, 3
push 1
mov word [ebx + 0x3a4], ax
call fcn.0045b440
mov ecx, dword [ebx + 0x1c]
lea eax, [ebp - 0x18]
push eax
call fcn.0052bfa0
movzx eax, word [ebp - 0x18]
mov word [ebx + 0x39c], ax
movzx eax, word [ebp - 0x16]
mov word [ebx + 0x39e], ax
movzx eax, word [ebp - 0x14]
push esi
push 0x5e1120
mov word [ebx + 0x3a0], ax
push 0x5e1108
mov eax, 0x1f
push 0x5eb444
mov ecx, 0x5eb498
mov word [ebx + 0x3a2], ax
call fcn.00421840
mov ecx, 0x5eb498
push str.VIEWER_EFFECT_effect.efi
call fcn.004216b0
mov eax, dword [ebx + 0x68]
imul eax, dword [ebx + 0x64]
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
neg eax
mov ecx, 2
mov dword [ebx + 0x5c], 0x20002
mov word [ebx + 0x60], cx
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret