Function at 0x10011960
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100d6de0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x1013d900]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x1013d900]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
push 0xffffffffffffffff
xor ebx, ebx
push ebx
mov dword [esp + 0x1c], ecx
lea edi, [esi + 0xe8]
push eax
mov ecx, edi
mov dword [esp + 0x28], esi
call fcn.10005490
push 1
push str.____
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.100058b0
mov dword [esp + 0x88], ebx
push 1
push 0x1012a1f0
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.100058b0
lea edx, [esp + 0x24]
push edx
push edi
lea ecx, [esp + 0x48]
mov byte [esp + 0x90], 1
call fcn.10020e10
add esp, 8
cmp dword [esp + 0x58], 0x10
jb 0x10011a2f
mov eax, dword [esp + 0x44]
push eax
call fcn.10032562
add esp, 4
mov dword [esp + 0x88], 0xffffffff
cmp dword [esp + 0x3c], 0x10
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x10011a5e
mov ecx, dword [esp + 0x28]
push ecx
call fcn.10032562
add esp, 4
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
push edx
lea ecx, [esi + 0x44]
call fcn.10005490
push 1
push 0x1012a1f4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.100058b0
lea eax, [esp + 0x24]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0xa8], 2
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edi
add esi, 0x60
mov byte [ecx + 4], bl
call fcn.10005490
mov ecx, esi
call fcn.10011c20
cmp dword [esp + 0x3c], 0x10
jb 0x10011adb
mov ecx, dword [esp + 0x28]
push ecx
call fcn.10032562
add esp, 4
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x88], 3
cmp dword [edx + 0xfc], 2
jb 0x10011b26
cmp dword [edi + 0x14], 1
jae 0x10011b0e
call fcn.100596cf
cmp dword [edi + 0x18], 0x10
jb 0x10011b19
mov edi, dword [edi + 4]
jmp 0x10011b1c
add edi, 4
cmp byte [edi + 1], 0x2f
mov byte [esp + 0x13], bl
je 0x10011b2b
mov byte [esp + 0x13], 1
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], ebx
je 0x10011be8
mov dword [esp + 0x14], ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x18], ecx
jb 0x10011b76
call fcn.100596cf
mov edi, dword [esi + 0xc]
add edi, dword [esp + 0x14]
mov bl, byte [esp + 0x13]
lea edx, [esp + 0x5c]
push edx
call fcn.100121e0
test al, al
je 0x10011bb9
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
add edx, 0x78
push edx
mov dword [esp + 0x28], eax
call fcn.10012f80
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x64]
push ecx
mov ecx, eax
call fcn.10005490
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
add dword [esp + 0x14], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [esp + 0x18], edi
cmp edi, eax
jb 0x10011b52
cmp dword [esp + 0x74], 0x10
jb 0x10011bfc
mov ecx, dword [esp + 0x60]
push ecx
call fcn.10032562
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.10056c06
mov esp, ebp
pop ebp
ret 4