Function at 0x10013d50
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x100439b0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1005d020]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov eax, dword [0x1005d020]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
test eax, eax
jne 0x10013dc5
mov eax, 0x80004003
jmp 0x10014208
mov dword [eax], 0
mov edi, 1
lea eax, [ecx - 0x24]
mov byte [esp + 0xe], 0
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.100132f0
mov eax, dword [esp + 0x14]
add eax, 0xffffffe0
mov dword [esp + 0x10], eax
mov ecx, dword [eax]
mov eax, dword [esp + 0x28]
test ecx, ecx
je 0x10013e19
cmp ecx, eax
je 0x10013e19
push 0x507
push 0
push 0
push ecx
call dword [0x100482dc]
mov ecx, dword [esp + 0x18]
call fcn.10016560
mov eax, dword [esp + 0x28]
push eax
call dword [0x100482cc]
test eax, eax
je 0x10014206
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
cmp dword [ecx], eax
je 0x10013e5b
mov edi, dword [esp + 0x18]
mov ecx, edi
push eax
call fcn.10018600
mov ecx, dword [esp + 0x10]
shl eax, 4
xor eax, dword [edi + 0xc8]
and eax, 0x10
mov byte [esp + 0xe], 1
xor dword [edi + 0xc8], eax
mov edi, dword [esp + 0x14]
cmp dword [edi + 0xa8], 0
jne 0x10013e83
call fcn.10011c90
test eax, eax
je 0x10013e75
push 0xf
jmp 0x10013e77
push 5
call dword [0x100482d4]
mov dword [edi + 0xa8], eax
push dword [esp + 0x30]
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
push dword [esp + 0x34]
mov ecx, esi
call fcn.100123c0
mov esi, dword [esp + 0x38]
mov edi, eax
add esp, 0xc
test edi, edi
js 0x10013ebc
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
push 0
push dword [esi]
call fcn.10016050
mov edi, eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [ecx + 0x5c]
movdqu xmm0, xmmword [eax]
movdqu xmmword [edx], xmm0
test edi, edi
js 0x100141cf
cmp dword [esi], 0
je 0x10013ef2
cmp dword [esp + 0x24], 0
je 0x10013ef2
lea eax, [ecx + 0x70]
mov ecx, dword [esi]
push eax
push edx
mov edx, dword [esp + 0x2c]
call fcn.10010d50
cmp byte [esp + 0xf], 0
je 0x100141c1
cmp dword [esi], 0
je 0x100141c1
mov eax, dword [esp + 0x10]
push 0xfffffffffffffff0
push dword [eax]
call dword [0x100482f0]
test eax, 0x300000
jne 0x10013f28
mov eax, dword [esp + 0x14]
or dword [eax + 0xbc], 8
jmp 0x10013f62
mov eax, dword [esp + 0x10]
push 0xfffffffffffffff0
push dword [eax]
call dword [0x100482f0]
and eax, 0xffcfffff
push eax
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff0
push dword [eax]
call dword [0x100482e0]
mov eax, dword [esp + 0x10]
push 0x37
push 0
push 0
push 0
push 0
push 0
push dword [eax]
call dword [0x100482d0]
mov esi, dword [esi]
mov dword [esp + 0x30], esi
test esi, esi
je 0x10013f72
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov dword [esp + 0x70], 1
mov eax, dword [esp + 0x20]
movzx ecx, word [eax]
cmp ecx, 0x4d
je 0x10013f8f
cmp ecx, 0x6d
jne 0x100140b9
movzx ecx, word [eax + 2]
cmp ecx, 0x53
je 0x10013fa1
cmp ecx, 0x73
jne 0x100140b9
movzx ecx, word [eax + 4]
cmp ecx, 0x48
je 0x10013fb3
cmp ecx, 0x68
jne 0x100140b9
movzx ecx, word [eax + 6]
cmp ecx, 0x54
je 0x10013fc5
cmp ecx, 0x74
jne 0x100140b9
movzx ecx, word [eax + 8]
cmp ecx, 0x4d
je 0x10013fd7
cmp ecx, 0x6d
jne 0x100140b9
movzx ecx, word [eax + 0xa]
cmp ecx, 0x4c
je 0x10013fe9
cmp ecx, 0x6c
jne 0x100140b9
cmp word [eax + 0xc], 0x3a
jne 0x100140b9
mov ecx, eax
call fcn.10010840
lea eax, [eax*2 - 0xe]
push eax
push 0x42
mov dword [esp + 0x24], eax
call dword [0x100481f0]
mov edi, eax
test edi, edi
je 0x100140af
mov dword [esp + 0x28], 0
mov byte [esp + 0x70], 3
push edi
call dword [0x1004820c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
add ecx, 0xe
push ecx
push edx
push eax
call fcn.1002f79e
push eax
call fcn.100108e0
add esp, 0x14
push edi
call dword [0x1004806c]
lea eax, [esp + 0x28]
push eax
push 1
push edi
call dword [0x100483c4]
mov edi, eax
test edi, edi
js 0x100140aa
mov dword [esp + 0x2c], 0
mov byte [esp + 0x70], 5
lea ecx, [esp + 0x2c]
mov eax, dword [esi]
push ecx
push 0x1004f68c
push esi
call dword [eax]
mov edi, eax
test edi, edi
js 0x10014097
mov eax, dword [esp + 0x2c]
push dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov edi, eax
mov byte [esp + 0x70], 3
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100140aa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1001419c
mov edi, 0x8007000e
jmp 0x100141af
mov dword [esp + 0x28], 0
mov byte [esp + 0x70], 9
lea ecx, [esp + 0x28]
mov eax, dword [esi]
push ecx
push 0x1004f7f8
push esi
call dword [eax]
cmp dword [esp + 0x28], 0
je 0x1001419c
lea eax, [esp + 0x44]
xorps xmm0, xmm0
push eax
movdqa xmmword [esp + 0x48], xmm0
call dword [0x10048254]
mov byte [esp + 0x70], 0xa
xor eax, eax
mov word [esp + 0x34], ax
lea eax, [esp + 0x34]
push eax
call dword [0x1004825c]
test eax, eax
jns 0x10014115
push eax
call fcn.100108c0
mov ecx, dword [esp + 0x20]
mov eax, 8
push ecx
mov word [esp + 0x38], ax
call dword [0x10048264]
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x1001414e
mov eax, 0xa
mov dword [esp + 0x3c], 0x8007000e
push 0x8007000e
mov word [esp + 0x38], ax
call fcn.100108c0
mov byte [esp + 0x70], 0xb
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x44]
push edx
push edx
push edx
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x44]
push edx
push eax
call dword [ecx + 0xd0]
mov byte [esp + 0x70], 0xa
lea eax, [esp + 0x34]
push eax
call dword [0x1004825c]
mov byte [esp + 0x70], 9
lea eax, [esp + 0x44]
push eax
call dword [0x1004825c]
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100141af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x70], 0xffffffff
test esi, esi
je 0x100141c1
mov eax, dword [esi]
push esi
call dword [eax + 8]
test edi, edi
js 0x100141cf
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x3c], 0
jne 0x10014206
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.100132f0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
test eax, eax
je 0x10014206
push 0x507
push 0
push 0
push eax
call dword [0x100482dc]
test edi, edi
jns 0x10014206
cmp byte [esp + 0xe], 0
je 0x10014206
mov ecx, esi
call fcn.10016560
mov eax, edi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1002eb24
mov esp, ebp
pop ebp
ret 0x20