Function at 0x4c9100
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x6a4ca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, ecx
push edi
mov ecx, ebp
call fcn.004905d0
mov ecx, ebp
call fcn.005758b0
lea ecx, [esp + 0x1c]
call fcn.00406c70
lea ecx, [esp + 0x20]
call fcn.00406c70
lea ecx, [esp + 0x24]
call fcn.00406c70
xor ebx, ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], ebx
call fcn.00406c80
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x68], 1
cmp ecx, ebx
je 0x4c9286
lea eax, [esp + 0x18]
lea edx, [esp + 0x10]
push eax
push edx
lea eax, [esp + 0x1c]
lea edx, [esp + 0x78]
push eax
push edx
call fcn.004b3100
push ebx
lea ecx, [esp + 0x20]
call fcn.005728d0
push ebx
lea ecx, [esp + 0x24]
call fcn.005728d0
push ebx
lea ecx, [esp + 0x28]
call fcn.005728d0
lea edi, [esi + 0x5c]
lea ecx, [esp + 0x1c]
push edi
mov byte [esp + 0x2c], bl
mov dword [esp + 0x30], ebx
mov dword [esp + 0x60], 0xffffffff
mov byte [esp + 0x34], bl
mov byte [esp + 0x3c], bl
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
call fcn.00571160
lea eax, [edi + 4]
lea ecx, [esp + 0x20]
push eax
call fcn.00571160
lea ecx, [edi + 8]
push ecx
lea ecx, [esp + 0x28]
call fcn.00403c10
mov cl, byte [esi + 0x1c]
mov dl, byte [edi + 0xc]
mov eax, dword [edi + 0x10]
mov byte [esp + 0x30], cl
mov ecx, dword [esi + 0x2c]
mov byte [esp + 0x28], dl
mov dl, byte [esi + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x40], ecx
lea ecx, [esi + 0x34]
mov byte [esp + 0x38], dl
mov edx, dword [esi + 0x30]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x20]
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], edx
mov dword [esp + 0x38], eax
call fcn.00571160
fld dword [esp + 0x70]
fadd dword [esp + 0x10]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x54], ecx
fmul dword [0x6c8ac0]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x44]
mov dword [esp + 0x50], eax
mov al, byte [esp + 0x74]
lea ecx, [esp + 0x1c]
push 1
fstp dword [esp + 0x44]
fld dword [esp + 0x18]
fadd dword [esp + 0x1c]
push ecx
mov dword [esp + 0x60], edx
mov byte [esp + 0x38], al
mov ecx, ebp
fmul dword [0x6c8ac0]
fstp dword [esp + 0x4c]
call fcn.00490610
mov ecx, dword [esi + 0x80]
cmp ecx, ebx
je 0x4c936b
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x78]
push edx
push eax
call fcn.004b3100
push ebx
lea ecx, [esp + 0x20]
call fcn.005728d0
push ebx
lea ecx, [esp + 0x24]
call fcn.005728d0
push ebx
lea ecx, [esp + 0x28]
call fcn.005728d0
lea edi, [esi + 0x70]
lea ecx, [esp + 0x1c]
push edi
mov byte [esp + 0x2c], bl
mov dword [esp + 0x30], ebx
mov dword [esp + 0x60], 0xffffffff
mov byte [esp + 0x34], bl
mov byte [esp + 0x3c], bl
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], ebx
call fcn.00403c10
lea ecx, [edi + 4]
push ecx
lea ecx, [esp + 0x24]
call fcn.00403c10
lea edx, [edi + 8]
lea ecx, [esp + 0x24]
push edx
call fcn.00403c10
mov ecx, dword [edi + 0x10]
mov al, byte [edi + 0xc]
add esi, 0x1c
mov dword [esp + 0x2c], ecx
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], al
call fcn.004ae490
fld dword [esp + 0x70]
fadd dword [esp + 0x10]
mov dl, byte [esp + 0x74]
lea eax, [esp + 0x1c]
push 1
push eax
fmul dword [0x6c8ac0]
mov ecx, ebp
mov byte [esp + 0x38], dl
fstp dword [esp + 0x48]
fld dword [esp + 0x1c]
fadd dword [esp + 0x20]
fmul dword [0x6c8ac0]
fstp dword [esp + 0x4c]
call fcn.00490610
mov ecx, dword [esp + 0x48]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x4c938b
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x4c938b
push eax
call dword [0x6c74ac]
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00403c80
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 8