Function at 0x5b14fc0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b1d486
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5b920e8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x5b920e8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], eax
mov word [esp + 0x40], cx
mov dword [esp + 0x88], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push 1
sub esp, 0xc
mov byte [esp + 0x98], 1
mov edi, esp
mov dword [esp + 0x40], esp
push 0x5b6d258
call fcn.05a0cc10
lea edx, [ebp + 0xc]
add esp, 4
push edx
lea ebx, [esp + 0x30]
call fcn.05a0cd40
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
add esp, 0x14
mov ebx, edi
mov dword [esp + 0x14], ebx
cmp edi, esi
je 0x5b1529a
nop
cmp dword [ebx + 0x10], 0
je 0x5b1527f
push 0x5b6d25c
push ebx
mov edi, 2
call fcn.05a0c1a0
mov esi, eax
cmp esi, 0xffffffff
je 0x5b1527f
call fcn.05a0c230
mov ecx, eax
mov eax, dword [esp + 0x14]
sub ecx, esi
mov ebx, 1
mov edx, esi
add ecx, ebx
push eax
lea esi, [esp + 0x60]
call fcn.05a01060
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x8c], 2
call fcn.05a01090
mov byte [esp + 0x88], bl
cmp dword [esp + 0x70], 8
jb 0x5b150e2
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.05ac7ecf
add esp, 4
call fcn.05aeb8bc
mov dword [esp + 0x18], eax
call fcn.05aeb67b
push 0
lea ecx, [esp + 0x40]
mov esi, eax
call fcn.05aeb9a5
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x5b15109
inc eax
mov dword [esi + 4], eax
lea ecx, [esp + 0x3c]
call fcn.05aeb9cd
mov byte [esp + 0x88], 3
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
mov eax, ecx
cmp edx, 8
jae 0x5b1512f
lea eax, [esp + 0x40]
mov ecx, eax
mov edx, dword [esp + 0x50]
lea ecx, [ecx + edx*2]
cmp eax, ecx
je 0x5b15150
lea edx, [esp + 0x18]
push edx
push eax
push ecx
lea ecx, [esp + 0x40]
push ecx
call fcn.05a0ed70
add esp, 0x10
jmp 0x5b15154
mov dword [esp + 0x34], eax
mov byte [esp + 0x88], bl
mov edi, dword [esp + 0x18]
test edi, edi
je 0x5b1519d
push 0
lea ecx, [esp + 0x3c]
call fcn.05aeb9a5
mov eax, dword [edi + 4]
test eax, eax
je 0x5b1517e
cmp eax, 0xffffffff
jae 0x5b1517e
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x38]
not esi
call fcn.05aeb9cd
and esi, edi
je 0x5b1519d
mov edx, dword [esi]
mov eax, dword [edx]
push ebx
mov ecx, esi
call eax
lea ecx, [esp + 0x40]
push ecx
call fcn.05a0c590
mov dword [esp + 0x10], eax
cmp eax, dword [0x5baf198]
je 0x5b151d9
mov edi, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x5b151c1
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x44]
call fcn.05a0b360
test eax, eax
js 0x5b151d9
lea eax, [esp + 0x10]
jmp 0x5b151e7
mov edx, dword [0x5baf198]
mov dword [esp + 0x30], edx
lea eax, [esp + 0x30]
mov eax, dword [eax]
mov esi, dword [esp + 0x2c]
cmp eax, dword [0x5baf198]
je 0x5b15243
lea edi, [eax + 0x28]
mov eax, dword [esi + 0x58]
cmp edi, eax
jae 0x5b15229
mov ecx, dword [esi + 0x54]
cmp ecx, edi
ja 0x5b15229
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 0x5c]
jne 0x5b15218
lea eax, [esi + 0x54]
call fcn.05a0bbb0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x5b1527b
mov ecx, dword [esi + 0x54]
mov edx, dword [ecx + edi*4]
mov dword [eax], edx
jmp 0x5b1527b
cmp eax, dword [esi + 0x5c]
jne 0x5b15236
lea eax, [esi + 0x54]
call fcn.05a0bbb0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x5b1527b
mov ecx, dword [edi]
mov dword [eax], ecx
jmp 0x5b1527b
mov eax, dword [esi + 0x58]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
cmp edx, eax
jae 0x5b15261
mov ecx, dword [esi + 0x54]
cmp ecx, edx
ja 0x5b15261
mov edi, edx
jmp 0x5b15206
cmp eax, dword [esi + 0x5c]
jne 0x5b1526e
lea eax, [esi + 0x54]
call fcn.05a0bbb0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x5b1527b
mov dword [eax], 0
add dword [esi + 0x58], 4
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
add ebx, 0x1c
mov dword [esp + 0x14], ebx
cmp ebx, esi
jne 0x5b15070
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x5b152da
cmp edi, esi
je 0x5b152d1
cmp dword [edi + 0x14], 8
jb 0x5b152b3
mov eax, dword [edi]
push eax
call fcn.05ac7ecf
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
add edi, 0x1c
cmp edi, esi
jne 0x5b152a2
mov edi, dword [esp + 0x1c]
push edi
call fcn.05ac7ecf
add esp, 4
xor eax, eax
cmp dword [esp + 0x54], 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
jb 0x5b152fc
mov edx, dword [esp + 0x40]
push edx
call fcn.05ac7ecf
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.05ac7ec0
mov esp, ebp
pop ebp
ret 8