Function at 0x676500
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x676890
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ecx
mov dword [ecx], 0x8ad864
mov dword [ebp - 4], 9
push ecx
mov ecx, 0x87a8e4
call fcn.0061ea60
push dword [ebp - 0x20]
mov ecx, 0x858f24
call fcn.0061ea60
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x67660a
push edi
call fcn.00676a54
pop ecx
mov esi, eax
test esi, esi
je 0x6765f4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov ebx, eax
mov eax, 0x87a72c
cmp eax, ebx
je 0x676594
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x67659b
push 0x87a72c
call fcn.0061e140
movzx eax, al
test eax, eax
je 0x67659b
mov ecx, 1
jmp 0x6765c0
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x676882
push 0x87a72c
call fcn.0061e140
mov edx, 1
xor ecx, ecx
movzx eax, al
cmp eax, 0
cmovne ecx, edx
test ecx, ecx
je 0x6765f4
mov eax, dword [ebp - 0x20]
mov edx, dword [esi + 0x154]
cmp edx, eax
je 0x676870
test edx, edx
je 0x67684e
cmp eax, dword [esi + 0x150]
je 0x67683f
mov dword [esi + 0x154], edx
mov ecx, dword [eax + 0x2c]
jmp 0x6765fa
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x67660a
push eax
mov edx, dword [ecx]
call dword [edx + 0xe8]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xa0]
test ecx, ecx
je 0x67661d
push 1
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x67662e
push 1
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
mov ecx, eax
call fcn.00676980
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0xb8]
test eax, eax
je 0x67666b
push eax
call fcn.006768a0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xb8]
test edx, edx
je 0x676661
push 1
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0xb8], 0
mov edx, dword [ecx + 0xc4]
test edx, edx
je 0x676680
push ecx
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc0]
test edx, edx
je 0x676696
push 1
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x64]
test edx, edx
je 0x6766a8
push 1
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xb4]
test edx, edx
je 0x6766be
push 1
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x87b530]
test edx, edx
je 0x6766d3
push ecx
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 8
add ecx, 0xe0
call fcn.006e6790
mov dword [ebp - 4], 7
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0xd4]
add ecx, 0xfffffff4
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x67670c
dec eax
mov dword [ecx], eax
jne 0x67670c
call fcn.0061ff50
mov edx, dword [ebp - 0x20]
mov dword [ebp - 4], 6
add edx, 0xac
mov dword [edx], 0x88d7b4
mov ecx, edx
call fcn.0061de50
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x20]
add ecx, 0xa4
call fcn.006e6790
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
add ecx, 0x8c
call fcn.006e6790
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
add ecx, 0x78
call fcn.006e6790
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
add ecx, 0x70
call fcn.00670ea0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
add ecx, 0x68
call fcn.006e6790
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
add ecx, 0x30
call fcn.0061e2b0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
call fcn.006222d0
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x150], 0
jmp 0x6765e9
cmp eax, dword [esi + 0x150]
je 0x67685e
mov ecx, dword [eax + 0x2c]
jmp 0x6765fa
mov dword [esi + 0x150], 0
mov ecx, dword [eax + 0x2c]
jmp 0x6765fa
mov dword [esi + 0x154], 0
mov ecx, dword [eax + 0x2c]
jmp 0x6765fa
xor ecx, ecx
jmp 0x6765c0