Function at 0x40aff0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, esp
mov dword [esi + 0x58], ebp
mov dword [esi + 0x5c], esp
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0x577a70
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esi + 8], ecx
mov edi, dword fs:[0]
mov dword [esi + 0x60], edi
lea edi, [esi + 0x60]
mov dword fs:[0], edi
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], edx
mov dword [esi + 0x38], eax
movaps xmmword [esi + 0x40], xmm0
mov dword [esi + 0x50], 0
mov eax, dword [ecx]
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0
mov dword [esi + 4], eax
xor eax, eax
jmp 0x40b084
call dword [sym.imp.kernel32.dll_SwitchToThread]
mov ecx, dword [esi + 8]
nop word cs:[eax + eax]
mov eax, dword [ecx]
add ebx, edi
add edi, 2
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x14]
inc eax
cmp eax, 6
mov edx, 6
mov dword [esi + 0x14], eax
mov edi, dword [ecx + 0x88]
mov ebx, dword [esi + 4]
cmovb edx, eax
mov eax, dword [ecx + 0xd4]
imul edx, edx
dec edi
mov dword [esi + 0x2c], eax
xor eax, eax
and edi, ebx
inc ebx
sub eax, dword [ecx + 0x84]
mov ecx, dword [esi + 0x2c]
mov ecx, dword [ecx + edi*4]
mov dword [esi + 0x10], ecx
cmp ebx, dword [esi + 0x10]
jne 0x40b120
mov ebx, dword [esi + 8]
lea ecx, [edi + 1]
cmp ecx, dword [ebx + 0x80]
mov ecx, dword [esi + 8]
jb 0x40b0de
and eax, dword [esi + 4]
add eax, dword [ecx + 0x84]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov ebx, dword [esi + 0x10]
lock cmpxchg dword [ecx], ebx
je 0x40b317
mov edi, dword [esi + 0x14]
mov eax, 6
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
cmp edi, 6
cmovb eax, edi
mov edi, dword [esi + 0x18]
test eax, eax
je 0x40b070
nop dword [eax]
pause
dec edx
jne 0x40b110
jmp 0x40b070
mov eax, dword [esi + 4]
cmp dword [esi + 0x10], eax
jne 0x40b180
mfence
mov ebx, eax
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x40]
mov edi, dword [ecx + 0x88]
mov ecx, edi
not ecx
and ecx, eax
cmp ecx, ebx
mov ebx, dword [esi + 0x1c]
je 0x40b1b0
mov ecx, dword [esi + 0x14]
mov eax, 6
mov edi, dword [esi + 0x18]
cmp ecx, 6
cmovb eax, ecx
mov ecx, dword [esi + 8]
test eax, eax
je 0x40b070
nop word cs:[eax + eax]
nop dword [eax]
pause
dec edx
jne 0x40b170
jmp 0x40b070
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
cmp eax, 7
jae 0x40b05d
mov ecx, dword [esi + 8]
test eax, eax
je 0x40b070
mov eax, ebx
nop
pause
dec eax
jne 0x40b1a0
jmp 0x40b070
test edi, eax
jne 0x40b358
mov eax, dword [esi + 0x38]
mov dword [esi + 0x68], 0xffffffff
cmp eax, 0x3b9aca00
je 0x40b204
mov edi, dword [esi + 0x30]
mov ebx, dword [esi + 0x34]
mov dword [esi + 4], eax
call fcn.0055e0f0
mov dword [esi + 0x10], edi
cmp eax, edi
mov edi, eax
mov eax, edx
mov dword [esi + 0x14], ecx
mov ecx, ebx
sbb eax, ebx
mov ebx, dword [esi + 4]
jb 0x40b204
xor edi, dword [esi + 0x10]
xor edx, ecx
xor eax, eax
or edx, edi
jne 0x40b346
cmp dword [esi + 0x14], ebx
jae 0x40b346
call fcn.0056dbb0
test eax, eax
je 0x40b289
mov ecx, dword [eax]
mov dword [eax], 0
test ecx, ecx
je 0x40b2d0
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], ecx
mov dword [ecx + 0xc], 0
mov dword [esi + 4], ecx
mov dword [ecx + 0x10], 0
lea ecx, [esi + 0x40]
mov dword [esi + 0x68], 1
mov edx, dword [esi + 8]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x30]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x20]
lea edx, [esi + 0xc]
call fcn.0040b3c0
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 4]
mov eax, dword [ecx]
mov dword [esi + 0x20], eax
mov dword [ecx], edx
mov ecx, dword [esi + 8]
test eax, eax
je 0x40b046
lock dec dword [eax]
jne 0x40b046
lea ecx, [esi + 0x20]
call fcn.00417e90
mov ecx, dword [esi + 8]
jmp 0x40b046
call fcn.00587da0
mov edx, dword [esi + 8]
lea ecx, [esi + 0x40]
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x68], 2
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x30]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x20]
lea edx, [esi + 0xc]
call fcn.0040b3c0
mov eax, dword [esi + 4]
lock dec dword [eax]
jne 0x40b2c8
lea ecx, [esi + 0xc]
call fcn.00417e90
mov ecx, dword [esi + 8]
jmp 0x40b046
call fcn.00587da0
mov edx, dword [esi + 8]
lea ecx, [esi + 0x40]
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x68], 0
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x30]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x20]
lea edx, [esi + 0xc]
call fcn.0040b3c0
mov eax, dword [esi + 4]
lock dec dword [eax]
jne 0x40b30f
lea ecx, [esi + 0xc]
call fcn.00417e90
mov ecx, dword [esi + 8]
jmp 0x40b046
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 4]
lea eax, [edx + edi*4]
mov dword [esi + 0x40], eax
add ebx, dword [ecx + 0x84]
add ecx, 0x8c
mov dword [esi + 0x44], ebx
mov dword [edx + edi*4], ebx
mov dword [esi + 0x68], 0xffffffff
call fcn.0040bdd0
mov al, 2
mov ecx, dword [esi + 0x60]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, 1
jmp 0x40b346