Function at 0x50cbe0
Capabilities:
Check for peb beingdebugged flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587b9d
mov eax, dword fs:[0]
push eax
sub esp, 0x7f8
mov eax, dword [0x5b0890]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 1
call fcn.0054f400
mov eax, dword [0x5ae064]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [0x5ae390]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [0x5ae394]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
push 0x50b7f0
call fcn.0055e8ee
add esp, 4
mov eax, dword [0x5c6a24]
mov ecx, dword [0x5c6a24]
mov edx, dword [eax + 0x24]
xor edx, dword [ecx + 0x18]
push edx
call dword [0x5ae074]
push eax
push 0x5b2efc
push 0x104
lea eax, [ebp - 0x124]
push eax
call fcn.0055e358
add esp, 0x14
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0x1f0001
call dword [0x5ae0b0]
test eax, eax
je 0x50cca4
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x50ce85
mov eax, dword [0x5c6a24]
mov ecx, dword [0x5c6a24]
mov edx, dword [eax + 0x6c]
xor edx, dword [ecx + 0x84]
mov eax, dword [0x5c6a24]
xor edx, dword [eax + 0x54]
and edx, 0x20
je 0x50ce85
mov ecx, dword [0x5c6a24]
mov edx, dword [0x5c6a24]
mov eax, dword [ecx + 0x80]
xor eax, dword [edx + 0x90]
mov ecx, dword [0x5c6a24]
xor eax, dword [ecx + 0x24]
push eax
push 0x5b2ef4
push 0x104
lea edx, [ebp - 0x124]
push edx
call fcn.0055e358
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
push 0
push 0
call dword [0x5ae034]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x50ce85
call dword [0x5ae02c]
cmp eax, 0xb7
jne 0x50ce85
push 0x7530
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [0x5ae0ac]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x50cd76
cmp dword [ebp - 0x130], 0x80
jne 0x50ce7b
mov edx, dword [0x5c6a24]
mov eax, dword [0x5c6a24]
mov ecx, dword [edx + 0x80]
xor ecx, dword [eax + 0x90]
mov edx, dword [0x5c6a24]
xor ecx, dword [edx + 0x24]
push ecx
push 0x5b2eec
push 0x104
lea eax, [ebp - 0x124]
push eax
call fcn.0055e358
add esp, 0x10
mov dword [ebp - 0x138], 0
jmp 0x50cdcb
mov ecx, dword [ebp - 0x138]
add ecx, 1
mov dword [ebp - 0x138], ecx
cmp dword [ebp - 0x138], 0x12c
jge 0x50ce04
lea edx, [ebp - 0x124]
push edx
push 0x5b2ee0
call dword [0x5ae398]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x50cdfa
jmp 0x50ce04
push 0x64
call dword [0x5ae23c]
jmp 0x50cdbc
cmp dword [ebp - 0x134], 0
je 0x50ce6e
mov eax, dword [0x5c6a24]
mov ecx, dword [0x5c6a24]
mov edx, dword [eax + 0x80]
xor edx, dword [ecx + 0x90]
mov eax, dword [0x5c6a24]
xor edx, dword [eax + 0x24]
mov dword [ebp - 0x144], edx
mov ecx, dword [0x5c67c8]
push ecx
call fcn.00559800
add esp, 4
add eax, 1
mov dword [ebp - 0x140], eax
mov edx, dword [0x5c67c8]
mov dword [ebp - 0x13c], edx
lea eax, [ebp - 0x144]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 0x134]
push ecx
call dword [0x5ae3ac]
mov edx, dword [ebp - 0x12c]
push edx
call dword [0x5ae0a8]
mov eax, 1
jmp 0x50d475
push 1
call fcn.0050d490
add esp, 4
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x50d211
mov ecx, dword [0x5c6a24]
mov edx, dword [0x5c6a24]
mov eax, dword [ecx + 0x6c]
xor eax, dword [edx + 0x84]
mov ecx, dword [0x5c6a24]
xor eax, dword [ecx + 0x54]
and eax, 0x40
jne 0x50d211
push 0x200
lea edx, [ebp - 0x344]
push edx
push 0x5b2ed8
call dword [0x5ae098]
test eax, eax
jne 0x50d211
push 0xc8
push 0x23
lea eax, [ebp - 0x344]
push eax
call fcn.0055aa30
add esp, 0xc
mov byte [ebp - 0x27c], 0
mov dword [ebp - 0x448], 1
jmp 0x50cf19
mov ecx, dword [ebp - 0x448]
add ecx, 1
mov dword [ebp - 0x448], ecx
cmp dword [ebp - 0x448], 0x40
jg 0x50cf58
mov edx, dword [ebp - 0x448]
push edx
push 0x5b2ed0
push 0x100
lea eax, [ebp - 0x444]
push eax
call fcn.0055e358
add esp, 0x10
lea ecx, [ebp - 0x344]
push ecx
lea edx, [ebp - 0x444]
push edx
call dword [0x5ae070]
jmp 0x50cf0a
mov eax, dword [0x5c6a24]
mov ecx, dword [0x5c6a24]
mov edx, dword [eax + 0x6c]
xor edx, dword [ecx + 0x84]
mov eax, dword [0x5c6a24]
xor edx, dword [eax + 0x54]
and edx, 0x10
jne 0x50d211
lea ecx, [ebp - 0x624]
push ecx
call fcn.00536c30
add esp, 4
mov dword [ebp - 4], 0
lea edx, [ebp - 0x708]
push edx
call fcn.004f62e0
add esp, 4
mov dword [ebp - 0x7f8], eax
mov eax, dword [ebp - 0x7f8]
mov dword [ebp - 0x7fc], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x7fc]
push ecx
lea ecx, [ebp - 0x4ac]
call fcn.00530cb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x708]
call fcn.004ee870
cmp dword [0x5c67c0], 1
jne 0x50d00e
cmp dword [ebp - 0x618], 0
jne 0x50d00e
lea ecx, [ebp - 0x4ac]
call fcn.00531970
movzx edx, al
test edx, edx
jne 0x50d00e
lea ecx, [ebp - 0x4ac]
call fcn.00531510
mov dword [ebp - 0x618], eax
push 0
lea eax, [ebp - 0x644]
push eax
call fcn.00536510
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x644]
call fcn.004fa780
movzx ecx, al
test ecx, ecx
je 0x50d07a
mov dword [ebp - 0x70c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.004ee870
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.004ee6c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.004fa280
mov eax, dword [ebp - 0x70c]
jmp 0x50d475
lea edx, [ebp - 0x78c]
push edx
call fcn.00536e50
add esp, 4
mov dword [ebp - 0x800], eax
mov eax, dword [ebp - 0x800]
mov dword [ebp - 0x804], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x804]
push ecx
lea ecx, [ebp - 0x770]
call fcn.004f6a40
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x644]
call fcn.004fa740
push eax
lea ecx, [ebp - 0x7ec]
call fcn.004f6a40
mov byte [ebp - 4], 7
lea edx, [ebp - 0x4bc]
push edx
lea eax, [ebp - 0x624]
push eax
push 0x5c7580
push 0x5c7580
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x770]
push ecx
lea edx, [ebp - 0x7ec]
push edx
call fcn.00536730
add esp, 0x28
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x70d], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x7ec]
call fcn.004ee6c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x770]
call fcn.004ee6c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78c]
call fcn.005069e0
movzx eax, byte [ebp - 0x70d]
test eax, eax
je 0x50d1ba
mov dword [0x5c6900], 6
call dword [0x5ae02c]
push eax
push 0x5b2eb0
push 0x100
push 0x5c6908
call fcn.0055e358
add esp, 0x10
mov dword [ebp - 0x7f0], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.004ee870
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.004ee6c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.004fa280
mov eax, dword [ebp - 0x7f0]
jmp 0x50d475
push 0x2710
mov ecx, dword [ebp - 0x4bc]
push ecx
call dword [0x5ae3bc]
mov dword [ebp - 0x7f4], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.004ee870
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.004ee6c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.004fa280
mov eax, dword [ebp - 0x7f4]
jmp 0x50d475
mov edx, dword [0x5c6a24]
mov eax, dword [0x5c6a24]
mov ecx, dword [edx + 0x6c]
xor ecx, dword [eax + 0x84]
mov edx, dword [0x5c6a24]
xor ecx, dword [edx + 0x54]
and ecx, 0x10
je 0x50d3cb
mov eax, dword [0x5c6a24]
mov ecx, dword [0x5c6a24]
mov edx, dword [eax + 0x24]
xor edx, dword [ecx + 0x18]
push edx
call dword [0x5ae074]
push eax
push 0x5b2efc
push 0x104
lea eax, [ebp - 0x124]
push eax
call fcn.0055e358
add esp, 0x14
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0x1f0001
call dword [0x5ae0b0]
test eax, eax
jne 0x50d3c9
push 1
call dword [0x5ae234]
push eax
call dword [0x5ae238]
mov byte [ebp - 0x645], 0
push 0x5b28c4
call dword [0x5ae090]
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
je 0x50d2e7
push 0x5b2e9c
mov edx, dword [ebp - 0x64c]
push edx
call dword [0x5ae08c]
mov dword [ebp - 0x6e8], eax
cmp dword [ebp - 0x6e8], 0
je 0x50d2e7
call dword [ebp - 0x6e8]
test eax, eax
je 0x50d2e7
mov byte [ebp - 0x645], 1
mov dword [ebp - 0x6e4], 0x94
lea eax, [ebp - 0x6e4]
push eax
call dword [0x5ae088]
cmp dword [ebp - 0x6d4], 2
jne 0x50d319
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0x50d325
jmp 0x50d32c
mov eax, dword fs:[0x20]
or eax, eax
jne 0x50d325
jmp 0x50d32c
mov byte [0x5c67ec], 1
movzx ecx, byte [ebp - 0x645]
test ecx, ecx
je 0x50d36a
call dword [0x5ae074]
push eax
push 0x5b2e94
push 0x104
lea edx, [ebp - 0x124]
push edx
call fcn.0055e358
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
push 0
push 0
call dword [0x5ae034]
jmp 0x50d3c9
cmp dword [0x5c67c0], 0
sete cl
push ecx
call fcn.004f9700
add esp, 4
movzx edx, al
test edx, edx
jne 0x50d3b5
mov dword [0x5c6900], 6
call dword [0x5ae02c]
push eax
push 0x5b2e84
push 0x100
push 0x5c6908
call fcn.0055e358
add esp, 0x10
xor eax, eax
jmp 0x50d475
push 0
call fcn.0050d490
add esp, 4
mov eax, 1
jmp 0x50d475
jmp 0x50d3fd
push 0
push 0x5b28d0
call dword [0x5ae070]
mov eax, dword [0x5c6a24]
mov ecx, dword [0x5c6a24]
mov edx, dword [eax]
xor edx, dword [ecx + 0x84]
mov eax, dword [0x5c6a24]
xor edx, dword [eax + 0x54]
and edx, 2
je 0x50d3fd
call fcn.0052ed10
call fcn.0050b820
mov dword [ebp - 0x128], eax
push 0
call fcn.0050d490
add esp, 4
push 0
call fcn.0055e8ee
add esp, 4
cmp dword [ebp - 0x128], 1
jne 0x50d439
push 0x5c67c0
call dword [0x5c67e8]
add esp, 4
mov dword [ebp - 0x128], eax
push 0x50b7f0
call fcn.0055e8ee
add esp, 4
cmp dword [0x5c67e4], 0
je 0x50d455
call dword [0x5c67e4]
cmp dword [0x5c68f8], 0
je 0x50d46f
push 0
push 0
mov ecx, dword [0x5c68f4]
push ecx
call dword [0x5c68f8]
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00559e32
mov esp, ebp
pop ebp
ret