Function at 0x7ded7310
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.7ded57a2
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x1c], edx
cmp eax, 2
jne 0x7ded7338
call fcn.7ded57a2
jmp 0x7ded733f
cmp eax, 3
jne 0x7ded7347
rdtsc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x7ded7364
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
call 0x7de32884
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea edi, [edi*4 + 0x120]
push edi
push 8
push dword [eax + 0x18]
call 0x7de28026
mov ebx, eax
test ebx, ebx
jne 0x7ded738f
xor eax, eax
jmp 0x7ded7616
push edi
push 0
push ebx
call 0x7de27f20
mov eax, dword [esi + 0x30]
add esp, 0xc
mov edi, 0x400
test eax, eax
jbe 0x7ded73bc
cmp eax, edi
jbe 0x7ded73ae
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x30]
shl eax, 0xa
mov dword [ebx + 0x80], eax
jmp 0x7ded73c6
mov dword [ebx + 0x80], 0x1000
push dword [esi + 0x94]
lea eax, [ebx + 0x60]
push eax
call 0x7de55dee
test al, al
je 0x7ded759a
lea eax, [ebp - 8]
push eax
push dword [esi + 0x60]
push esi
call fcn.7ded6faf
test eax, eax
jne 0x7ded759a
mov eax, dword [esi + 0x40]
test eax, 0x4000
je 0x7ded7408
mov dword [ebx + 0x104], 0x7df77688
jmp 0x7ded741b
test eax, 0x8000
je 0x7ded741b
lea eax, [ebx + 0x108]
mov dword [ebx + 0x104], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0xcc], 0x800
test dword [esi + 0x40], 0x20000
je 0x7ded7444
mov dword [ebx + 0xcc], 0x20800
mov eax, 0x10000000
test dword [esi + 0x40], eax
je 0x7ded7454
or dword [ebx + 0xcc], eax
mov eax, 0x20000000
test dword [esi + 0x40], eax
je 0x7ded7464
or dword [ebx + 0xcc], eax
mov eax, dword [esi + 0x40]
test edi, eax
je 0x7ded7473
or dword [ebx + 0xcc], edi
jmp 0x7ded74b0
test al, 2
je 0x7ded7480
or dword [ebx + 0xcc], 2
jmp 0x7ded74a4
test al, 8
je 0x7ded7499
or dword [ebx + 0xcc], 8
mov eax, dword [ebp - 8]
mov dword [ebx + 0x70], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x74], eax
jmp 0x7ded74b0
test al, 1
je 0x7ded74b0
or dword [ebx + 0xcc], 1
mov eax, dword [ebp - 8]
mov dword [ebx + 0x68], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x6c], eax
mov eax, 0x10000
test dword [esi + 0x40], eax
je 0x7ded74c0
or dword [ebx + 0xcc], eax
test byte [esi + 0x40], 0x20
je 0x7ded74cd
or dword [ebx + 0xcc], 0x20
test byte [esi + 0x40], 4
je 0x7ded74da
or dword [ebx + 0xcc], 4
mov eax, dword [esi + 0x6c]
mov dword [ebx + 0x100], eax
mov eax, dword [ebx + 0x94]
mov dword [ebx + 0x98], eax
mov ecx, dword [ebp + 8]
add esi, 0x18
lea edi, [ebx + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ecx + 0x3c]
mov dword [ebx + 0xc8], eax
mov eax, dword [ecx + 0x38]
mov dword [ebx + 0x8c], eax
mov eax, dword [ecx + 0x34]
mov dword [ebx + 0x90], eax
lea edx, [ebx + 0xa4]
lea eax, [ebx + 0x9c]
mov dword [eax + 4], eax
mov dword [eax], eax
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [edx + 8]
mov dword [edx], eax
mov dword [edx + 4], eax
xor eax, eax
lea edx, [ebx + 0xb0]
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [edx + 8]
mov dword [edx], eax
mov dword [edx + 4], eax
lea edx, [ebx + 0xbc]
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [edx + 8]
mov dword [edx], eax
mov dword [edx + 4], eax
mov eax, dword [ecx + 0x28]
push 0
push 1
mov dword [ebx + 0x10], eax
mov eax, dword [ecx + 0x60]
push 0
mov dword [ebx + 0x34], eax
mov esi, 0x1f0003
push esi
lea eax, [ebx + 0x54]
push eax
call 0x7de19f64
test eax, eax
jl 0x7ded759a
push 0
push 1
push 0
push esi
lea eax, [ebx + 0x58]
push eax
call 0x7de19f64
test eax, eax
jge 0x7ded75ef
mov eax, dword [ebx + 0x58]
xor esi, esi
cmp eax, esi
je 0x7ded75ac
push eax
call 0x7de199d0
mov dword [ebx + 0x58], esi
mov eax, dword [ebx + 0x54]
cmp eax, esi
je 0x7ded75bc
push eax
call 0x7de199d0
mov dword [ebx + 0x54], esi
lea eax, [ebx + 0x60]
push eax
call 0x7de28126
lea eax, [ebx + 0x68]
push eax
call 0x7de28126
lea eax, [ebx + 0x70]
push eax
call 0x7de28126
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
push dword [eax + 0x18]
call 0x7de27f85
jmp 0x7ded7388
lea eax, [ebx + 0x3c]
push eax
call 0x7de2cc42
lea eax, [ebx + 0x38]
push eax
call 0x7de32456
lea esi, [ebp - 0x20]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0xd0], 1
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc