Function at 0x44b390
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46e504
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 ebx, ebx
mov dword [esp + 0x30], ebx
mov eax, dword [eax + 4]
lea edi, [esi + 0x78]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x44b40a
cmp dword [edi + 4], ebx
je 0x44b3fe
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
mov dword [edi + 4], eax
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.004491f0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.004494a0
mov dword [esp + 0x30], 1
mov eax, dword [eax + 4]
lea edi, [esi + 0x70]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x44b464
cmp dword [edi + 4], ebx
je 0x44b458
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
mov dword [edi + 4], eax
mov eax, dword [edx + 0xc]
mov ecx, edi
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, edi
call fcn.00460da0
mov dword [esp + 0x30], 2
mov eax, dword [eax + 4]
lea edi, [esi + 0x80]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x44b4c5
cmp dword [edi + 4], ebx
je 0x44b4b9
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
mov eax, dword [esp + 0x10]
mov dword [edi + 4], eax
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.00460ac0
xor eax, eax
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xfc], ebx
push ebx
mov dword [esi + 0xe8], eax
mov dword [esi + 0xec], eax
push ebx
mov dword [esi + 0xf0], eax
push ebx
mov ecx, edi
mov dword [esi + 0xf4], eax
call fcn.004239e0
mov dword [esi + 0x100], eax
mov eax, 0x8000
lea ecx, [esi + 0x78]
mov dword [esi + 0x104], edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ebx
call fcn.004497b0
mov edi, dword [esi + 0x50]
mov dword [esi + 0xd8], eax
mov eax, dword [esi + 0xb8]
cmp eax, 1
je 0x44b54a
cmp eax, 2
jne 0x44b55d
mov eax, dword [esi + 0xa4]
cmp eax, ebx
je 0x44b55d
push eax
call sub.mfc90u.dll_delete__
add esp, 4
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xa4], ebx
push edi
mov dword [esi + 0xb8], ebx
call sub.mfc90u.dll_new__
add esp, 4
push edi
push ebx
push eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xac], eax
mov dword [esi + 0xa8], edi
mov dword [esi + 0xb4], edi
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push ebx
push 2
lea ecx, [esi + 0x80]
mov dword [esi + 0xb8], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.004239e0
mov esi, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
cmp ecx, ebx
je 0x44b5ed
lea edi, [esp + 0x14]
push edi
push ebx
push edx
mov edx, dword [esi + 0x30]
push eax
mov eax, dword [ebp + 8]
push eax
push edx
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