Function at 0x76ee90
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe0
mov esi, esp
mov dword [esi + 0xc8], ebp
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [esi + 0xcc], esp
mov dword [esi + 0xd8], 0xffffffff
lea ecx, [esi + 0xd0]
mov dword [esi + 0xd4], 0x7706e0
mov edx, dword fs:[0]
mov dword [esi + 0xd0], edx
mov dword fs:[0], ecx
mov ecx, dword [edi]
lea edx, [esi + 0x18]
push dword [edi + 4]
push eax
push dword [ecx + 0x18]
push dword [ecx + 0x14]
push edx
call fcn.00780780
add esp, 0x14
mov dword [esi + 0x10], edi
mov eax, dword [edi]
mov dword [esi + 4], eax
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x14], eax
mov dword [esi + 0xd8], 1
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x68]
push eax
call fcn.0077fea0
mov dword [esi + 0xd8], 2
lea ecx, [esi + 0x30]
lea eax, [esi + 0x18]
push eax
call fcn.0077ffa0
mov dword [esi + 0x30], 6
lea eax, [esi + 0x38]
mov dword [esi + 0xa0], 0x9d94e4
lea edi, [esi + 0xa0]
mov dword [esi + 0xc4], edi
mov ecx, edi
push eax
call fcn.0076f9b0
mov ecx, dword [esi + 0xc4]
test ecx, ecx
je 0x76ef71
xor eax, eax
cmp ecx, edi
setne al
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov dword [esi + 0xd8], 3
lea ecx, [esi + 0x68]
lea eax, [esi + 0x30]
push eax
call fcn.00770190
lea ecx, [esi + 0x68]
call fcn.0077fec0
push eax
call fcn.0077fed0
add esp, 4
mov dword [esi + 8], eax
mov ebx, dword [esi + 4]
mov edi, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esi + 0xc], edx
sub edx, edi
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, edx
jae 0x76efb8
add edi, ecx
mov dword [ebx + 4], edi
jmp 0x76efde
jbe 0x76efde
mov ebx, dword [esi + 4]
mov edx, dword [ebx + 8]
sub edx, edi
mov ecx, dword [esi + 8]
cmp edx, ecx
jae 0x76f1cd
mov edx, ecx
mov ecx, ebx
lea eax, [esi + 0xa0]
push eax
push edx
call fcn.00750a90
push 4
call fcn.007a9de0
add esp, 4
add eax, 4
push dword [esi + 8]
mov ecx, dword [esi + 4]
push dword [ecx]
push eax
lea eax, [esi + 0x68]
push eax
call fcn.0077ff10
add esp, 0x10
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x76f017
xor eax, eax
lea edx, [esi + 0x38]
cmp ecx, edx
setne al
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esi + 0x94]
test ecx, ecx
lea edi, [esi + 0x18]
je 0x76f034
lea eax, [esi + 0x70]
xor edx, edx
cmp ecx, eax
setne dl
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
lea ecx, [eax + 0xc]
mov dword [esi + 0xd8], 1
mov edx, 4
push eax
push edi
call fcn.0076e8f0
add esp, 8
mov ebx, dword [eax + 0xe]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
sub edx, eax
je 0x76f0ae
mov edi, edx
mov ecx, edx
and edi, 7
je 0x76f077
and ecx, 0xfffffff8
nop
mov byte [eax], 0
inc eax
dec edi
jne 0x76f070
cmp edx, 8
jb 0x76f0ae
xor edx, edx
nop
mov byte [eax + edx], 0
mov byte [eax + edx + 1], 0
mov byte [eax + edx + 2], 0
mov byte [eax + edx + 3], 0
mov byte [eax + edx + 4], 0
mov byte [eax + edx + 5], 0
mov byte [eax + edx + 6], 0
mov byte [eax + edx + 7], 0
add edx, 8
cmp ecx, edx
jne 0x76f080
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
sub edx, eax
je 0x76f111
mov edi, edx
mov ecx, edx
and edi, 7
je 0x76f0d7
and ecx, 0xfffffff8
nop word cs:[eax + eax]
mov byte [eax], 0
inc eax
dec edi
jne 0x76f0d0
cmp edx, 8
jb 0x76f10e
xor edx, edx
nop
mov byte [eax + edx], 0
mov byte [eax + edx + 1], 0
mov byte [eax + edx + 2], 0
mov byte [eax + edx + 3], 0
mov byte [eax + edx + 4], 0
mov byte [eax + edx + 5], 0
mov byte [eax + edx + 6], 0
mov byte [eax + edx + 7], 0
add edx, 8
cmp ecx, edx
jne 0x76f0e0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x76f1b5
mov edi, dword [esi + 0x24]
sub edi, eax
je 0x76f151
mov dword [esi + 4], ebx
mov ecx, edi
mov ebx, eax
mov edx, edi
and ecx, 7
je 0x76f147
mov edx, edi
and edx, 0xfffffff8
mov ebx, eax
nop word cs:[eax + eax]
mov byte [ebx], 0
inc ebx
dec ecx
jne 0x76f140
cmp edi, 8
jae 0x76f155
mov ebx, dword [esi + 4]
jmp 0x76f1ab
xor edi, edi
jmp 0x76f1ab
xor ecx, ecx
nop word [eax + eax]
mov byte [ebx + ecx], 0
mov byte [ebx + ecx + 1], 0
mov byte [ebx + ecx + 2], 0
mov byte [ebx + ecx + 3], 0
mov byte [ebx + ecx + 4], 0
mov byte [ebx + ecx + 5], 0
mov byte [ebx + ecx + 6], 0
mov byte [ebx + ecx + 7], 0
add ecx, 8
cmp edx, ecx
jne 0x76f160
cmp edi, 0x1000
mov ebx, dword [esi + 4]
jb 0x76f1ab
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x76f1e4
add edi, 0x23
mov eax, ecx
push edi
push eax
call fcn.0091d82d
add esp, 8
mov eax, dword [esi + 0xd0]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [esi + 0xc]
lea edi, [ecx + eax]
push eax
push 0
push ecx
call fcn.009350b0
add esp, 0xc
jmp 0x76efb3
mov dword [esi + 0xd8], 0
call fcn.00900ce1
nop word cs:[eax + eax]
push ebp
sub esp, 0x14
lea esi, [ebp - 0xdc]
mov ebp, dword [esi + 0xc8]
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x76f227
xor eax, eax
lea edx, [esi + 0x38]
cmp ecx, edx
setne al
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
add esp, 0x14
pop ebp
ret