Function at 0x44add0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46e4d1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esi + 0x68]
call fcn.00461d90
xor edi, edi
mov dword [esp + 0x30], edi
mov eax, dword [eax + 4]
lea ebx, [esi + 0x78]
mov dword [esp + 0x10], eax
cmp eax, edi
je 0x44ae4a
cmp dword [ebx + 4], edi
je 0x44ae3e
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
mov eax, dword [esp + 0x10]
mov edx, dword [ebx]
mov dword [ebx + 4], eax
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.004491f0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.004494a0
mov dword [esp + 0x30], 1
mov eax, dword [eax + 4]
lea ebx, [esi + 0x70]
mov dword [esp + 0x10], eax
cmp eax, edi
je 0x44aea4
cmp dword [ebx + 4], edi
je 0x44ae98
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
mov eax, dword [esp + 0x10]
mov edx, dword [ebx]
mov dword [ebx + 4], eax
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.00460ce0
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, ebx
call fcn.00460da0
mov dword [esp + 0x30], 2
mov eax, dword [eax + 4]
lea ecx, [esi + 0x80]
mov dword [esp + 0x10], eax
cmp eax, edi
je 0x44af0f
cmp dword [ecx + 4], edi
je 0x44aeff
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, dword [esi + 0x80]
mov edx, dword [eax + 0x18]
lea ecx, [esi + 0x80]
call edx
mov eax, dword [esp + 0x10]
lea ecx, [esi + 0x80]
mov dword [ecx + 4], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.00460ac0
push 4
xor edx, edx
lea ecx, [esi + 0x80]
call fcn.00423940
mov dword [esi + 0xd8], eax
mov dword [esi + 0xf8], edi
mov dword [esi + 0xfc], edi
mov ebx, dword [ebx + 4]
cmp ebx, edi
je 0x44af4d
lea eax, [ebx - 8]
jmp 0x44af4f
xor eax, eax
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x14]
xor eax, eax
sar ecx, 2
mov dword [esi + 0x98], ecx
push edi
mov dword [esi + 0xe8], eax
mov dword [esi + 0xec], eax
push edi
mov dword [esi + 0xf0], eax
push edi
lea ecx, [esi + 0x80]
mov dword [esi + 0xf4], eax
call fcn.004239e0
mov ebx, 0x4000
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], edx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0xb8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
cmp eax, 1
je 0x44afc1
cmp eax, 2
jne 0x44afd4
mov eax, dword [esi + 0xa4]
cmp eax, edi
je 0x44afd4
push eax
call sub.mfc90u.dll_delete__
add esp, 4
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xa4], edi
push ebx
mov dword [esi + 0xb8], edi
call sub.mfc90u.dll_new__
add esp, 4
push ebx
push edi
push eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xac], eax
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xb4], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x11
xor edx, edx
lea ecx, [esi + 0x78]
mov dword [esi + 0xb8], 1
call fcn.00423940
test eax, eax
mov eax, dword [esi + 0xd4]
jne 0x44b0b4
mov ecx, dword [esi + 0x54]
mov ebx, dword [esi + 0xac]
mov dword [esp + 0x10], ecx
cmp eax, 1
je 0x44b05b
cmp eax, 2
jne 0x44b072
mov eax, dword [esi + 0xc0]
cmp eax, edi
je 0x44b072
push eax
call sub.mfc90u.dll_delete__
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xc4], ecx
mov dword [esi + 0xd0], ecx
mov dword [esi + 0xd4], 3
jmp 0x44b12e
mov ebx, dword [esi + 0x54]
cmp eax, 1
je 0x44b0c1
cmp eax, 2
jne 0x44b0d4
mov eax, dword [esi + 0xc0]
cmp eax, edi
je 0x44b0d4
push eax
call sub.mfc90u.dll_delete__
add esp, 4
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xc0], edi
push ebx
mov dword [esi + 0xd4], edi
call sub.mfc90u.dll_new__
add esp, 4
push ebx
push edi
push eax
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc8], eax
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xd0], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esi + 0xd4], 1
push edi
push edi
push 2
lea ecx, [esi + 0x80]
call fcn.004239e0
mov esi, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
cmp ecx, edi
je 0x44b15c
lea ebx, [esp + 0x14]
push ebx
push edi
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [esi + 0x30]
push edx
push eax
call ecx
add esp, 0x18
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc