Function at 0x495490
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x4da7a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x38]
call fcn.0040d1c0
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x68]
push eax
mov dword [esp + 0x454], 0
mov dword [esp + 0x30], 0
call fcn.00417d40
lea ecx, [esp + 0x34]
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x45c], 1
mov dword [esp + 0x40], 0x3f800000
mov dword [esp + 0x3c], 0
mov dword [esp + 0x28], 0
call fcn.00405110
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x45c], 2
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], 0x3f800000
call fcn.00405110
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
mov ebx, 3
push edx
push eax
lea ecx, [esp + 0x98]
mov byte [esp + 0x45c], bl
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0x3f800000
mov dword [esp + 0x20], 0
call fcn.00405110
mov dword [esp + 0x38], 0x4dffb0
mov dword [esp + 0x48], ebx
mov edi, dword [esp + 0x458]
mov ebx, 4
test edi, edi
mov dword [esp + 0x450], ebx
jge 0x4956aa
cmp edi, 0xfffffffc
jne 0x495615
lea ecx, [esp + 0xa4]
push ecx
mov ecx, esi
call fcn.0048d400
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], 0x4dffb0
call fcn.00404070
lea edx, [esi + 0x170]
lea eax, [esp + 0xa4]
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.00404950
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], 0x4dffb0
call fcn.00404070
jmp 0x495702
push 0
push 0
push 0
lea ecx, [esp + 0x27c]
call fcn.0040c1c0
lea ecx, [esp + 0x190]
push edi
push ecx
lea ecx, [esp + 0x278]
mov byte [esp + 0x458], 5
call fcn.0040d8c0
lea edx, [esp + 0xa4]
push eax
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x458], 6
call fcn.00404950
lea ecx, [esp + 0xa4]
call fcn.00404070
lea ecx, [esp + 0x190]
mov byte [esp + 0x450], 5
call fcn.00404070
lea eax, [esi + 0x1c]
lea ecx, [esp + 0x38]
push eax
call fcn.00419c80
mov ecx, dword [esi + 0xc4]
mov byte [esp + 0x450], bl
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x270]
call fcn.0040c330
jmp 0x495702
je 0x49580f
mov ecx, dword [esi + 0x2f8]
push edi
call fcn.004122d0
push eax
lea ecx, [esp + 0xa8]
call fcn.00403f00
lea edx, [esp + 0x190]
push eax
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x458], 7
call fcn.00404950
lea ecx, [esp + 0x190]
call fcn.00404070
lea ecx, [esp + 0xa4]
mov byte [esp + 0x450], bl
call fcn.00404070
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x154]
mov dword [esp + 0x150], 0
rep stosd dword es:[edi], eax
mov ecx, 0xf
lea edi, [esp + 0x114]
mov dword [esp + 0x110], eax
mov dword [esp + 0x1f0], eax
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esp + 0x1f8]
mov dword [esp + 0x1f4], eax
mov byte [esp + 0xf], 0x70
rep stosd dword es:[edi], eax
lea eax, [esp + 0x104]
lea ecx, [esp + 0x38]
push eax
call fcn.00419ca0
mov edi, eax
lea ecx, [esp + 0x98]
mov byte [esp + 0x450], 8
push ecx
lea ecx, [esp + 0x3c]
call fcn.00418960
lea edx, [esp + 0x110]
mov byte [esp + 0x450], 9
push edx
push edi
push eax
lea eax, [esp + 0x1b]
push eax
call fcn.0041a250
add esp, 0x10
lea ecx, [esp + 0x98]
mov byte [esp + 0x450], bl
push ecx
lea ecx, [esp + 0x3c]
call fcn.00418960
lea edx, [esp + 0x1f0]
mov byte [esp + 0x450], 0xa
push edx
push eax
call fcn.00405a00
lea eax, [esp + 0x158]
lea ecx, [esp + 0x1f8]
push eax
push ebx
push ebx
lea edx, [esp + 0x124]
push ecx
push edx
mov byte [esp + 0x46c], bl
call fcn.004a0230
add esp, 0x1c
lea eax, [esp + 0x150]
lea ecx, [esp + 0xf]
mov byte [esp + 0xf], 0x41
push eax
push ecx
mov ecx, dword [esi + 0x38]
call fcn.00445b20
lea ecx, [esp + 0x38]
mov dword [esp + 0x450], 0xffffffff
call fcn.00404070
mov ecx, dword [esp + 0x448]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x448
ret 4