Function at 0x1000e5c0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1016ddf0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x101bd92c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x101bd92c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0xffffffffffffffff
push eax
xor ebx, ebx
push esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], ax
call fcn.10004790
xor eax, eax
mov dword [esp + 0x88], ebx
push eax
push 0x10199228
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
call fcn.100048b0
push 1
push ebx
push 0x101922ac
mov ecx, esi
mov byte [esp + 0x94], 1
call fcn.10010d20
mov edi, eax
cmp edi, 0xffffffff
je 0x1000e7ad
mov dword [esp + 0x14], 1
mov ebx, dword [esi + 0x10]
push edi
push 0
lea eax, [esp + 0x68]
push eax
mov ecx, esi
call fcn.1000ff80
push 0x101922b0
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x94], 2
call fcn.10011310
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x94], 3
call fcn.10004bd0
cmp dword [esp + 0x44], 8
jb 0x1000e6c8
push dword [esp + 0x30]
call fcn.10091747
add esp, 4
xor eax, eax
mov byte [esp + 0x88], 1
cmp dword [esp + 0x74], 8
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
jb 0x1000e6fa
push dword [esp + 0x60]
call fcn.10091747
add esp, 4
sub ebx, edi
dec ebx
push ebx
lea eax, [edi + 1]
push eax
lea eax, [esp + 0x68]
push eax
mov ecx, esi
call fcn.1000ff80
mov edi, eax
cmp esi, edi
je 0x1000e77b
cmp dword [esi + 0x14], 8
jb 0x1000e724
push dword [esi]
call fcn.10091747
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [edi + 0x14], 8
jae 0x1000e752
mov eax, dword [edi + 0x10]
inc eax
je 0x1000e75c
add eax, eax
push eax
push edi
push esi
call fcn.10091760
add esp, 0xc
jmp 0x1000e75c
mov eax, dword [edi]
mov dword [esi], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [esp + 0x74], 8
jb 0x1000e78e
push dword [esp + 0x60]
call fcn.10091747
add esp, 4
push 1
push 0
push 0x101922ac
mov ecx, esi
call fcn.10010d20
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000e672
mov ebx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0x24]
call fcn.10004bd0
lea eax, [esp + 0x18]
cmp esi, eax
je 0x1000e7cf
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10004790
cmp dword [esp + 0x2c], 8
jb 0x1000e7e2
push dword [esp + 0x18]
call fcn.10091747
add esp, 4
xor eax, eax
cmp dword [esp + 0x5c], 8
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
jb 0x1000e80c
push dword [esp + 0x48]
call fcn.10091747
add esp, 4
mov eax, ebx
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.1009174c
mov esp, ebp
pop ebp
ret