Function at 0x40a5b0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44239e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
lea eax, [edi + 0x68]
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0x808080
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0x808080
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov byte [edi + 0x64], 0
mov dword [ebp + 8], eax
mov dword [eax], 0x444844
mov dword [eax + 4], 0
mov dword [ebp - 4], 0
mov dword [eax], 0x444848
mov dword [ebp - 4], 1
lea eax, [edi + 0x70]
mov dword [ebp + 8], eax
mov dword [eax], 0x444844
mov dword [eax + 4], 0
mov byte [ebp - 4], 2
mov dword [eax], 0x444848
mov byte [ebp - 4], 3
lea eax, [edi + 0x78]
push 0x405a70
push 0x40a560
push 3
push 8
push eax
call fcn.004254c8
mov byte [ebp - 4], 4
lea ecx, [edi + 0xb8]
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0x808080
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0xb4], 0
call fcn.0040aaa0
mov byte [ebp - 4], 5
lea ecx, [edi + 0x10c]
call fcn.0040aaa0
mov byte [ebp - 4], 6
lea ecx, [edi + 0x160]
call fcn.0040aaa0
mov byte [ebp - 4], 7
lea esi, [edi + 0x1b4]
mov dword [ebp + 8], esi
mov ecx, esi
call fcn.0040aaa0
mov byte [ebp - 4], 8
mov dword [esi], 0x45034c
mov byte [ebp - 4], 9
mov al, byte [ebp + 0x10]
mov ebx, dword [0x444050]
mov byte [edi + 0x64], al
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40a797
mov dword [edi + 0x14], eax
jmp 0x40a882
push 0x3c
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00426fd0
add esp, 0xc
call fcn.00404f70
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1c]
push 0x4635f4
call fcn.0040d090
mov byte [ebp - 4], 0xa
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0xd
mov eax, 1
mov dword [ebp - 0x10], eax
and eax, 0xfffffffe
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xe
lea eax, [ecx - 1]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, esi
test esi, esi
jne 0x40a819
mov eax, 0x444568
push ecx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0042a9e0
add esp, 0xc
call fcn.00404f70
imul ecx, dword [0x4610a0], 0x15
mov eax, 0x51eb851f
mov dword [ebp - 0x58], 0x1f4
add ecx, 0x32
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call dword [0x44404c]
mov dword [edi + 0x14], eax
mov ecx, dword [edi + 0x6c]
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x40a86e
push ecx
call ebx
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x6c], eax
mov byte [ebp - 4], 9
test esi, esi
je 0x40a882
push esi
call fcn.0042a2c0
add esp, 4
push 0x3c
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.00426fd0
add esp, 0xc
call fcn.00404f70
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1c]
push 0x4635f4
call fcn.0040d090
mov byte [ebp - 4], 0x11
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0x14
mov eax, 2
mov dword [ebp - 0x10], eax
and eax, 0xfffffffd
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x15
lea eax, [ecx - 1]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, esi
test esi, esi
jne 0x40a907
mov eax, 0x444568
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0042a9e0
add esp, 0xc
mov dword [ebp - 0xa4], 0x15
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x94], 0x258
push eax
call dword [0x44404c]
mov ecx, dword [edi + 0x74]
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x40a949
push ecx
call ebx
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x74], eax
cmp byte [edi + 0x64], 0
je 0x40aa4c
push 0xff
push dword [0x463650]
call dword [0x4442e0]
mov ecx, dword [edi + 0x7c]
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x40a977
push ecx
call ebx
mov eax, dword [ebp + 0x10]
push 0x111
mov dword [edi + 0x7c], eax
push dword [0x463650]
call dword [0x4442e0]
mov ecx, dword [edi + 0x84]
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x40a99e
push ecx
call ebx
mov eax, dword [ebp + 0x10]
push 0x112
mov dword [edi + 0x84], eax
push dword [0x463650]
call dword [0x4442e0]
mov ecx, dword [edi + 0x8c]
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x40a9c8
push ecx
call ebx
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x8c], eax
mov ebx, dword [edi + 0x7c]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x84]
mov dword [ebp + 0x10], eax
test ebx, ebx
je 0x40a9f6
lea eax, [ebp - 0x50]
push eax
push ebx
call fcn.0040bc90
mov eax, dword [ebp - 0x4c]
add esp, 8
mov ecx, dword [ebp - 0x50]
jmp 0x40aa00
mov ecx, 0xd
mov eax, 0x15
mov dword [edi + 0x94], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x9c], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x90], ecx
mov dword [edi + 0x98], ebx
mov dword [edi + 0xa0], eax
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0xffffff
mov dword [edi + 0xb0], 0xc0c0c0
mov byte [ebp - 4], 9
test esi, esi
je 0x40aa5d
push esi
call fcn.0042a2c0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10