Function at 0x4516b0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d5988
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x68]
mov ecx, edi
call fcn.004cce0a
lea ebx, [esi + 0x70]
mov ecx, ebx
call fcn.004cce0a
mov eax, dword [esi + 0x58]
xor ebp, ebp
push ebp
push ebp
push ebp
push eax
and eax, 0xffff
push 2
push eax
call fcn.004cce28
push eax
call dword [0x4da088]
push eax
mov ecx, edi
call fcn.004cce1c
cmp eax, ebp
jne 0x451720
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
mov eax, dword [esi + 0x20]
push eax
call dword [0x4dabe8]
push eax
call fcn.004cce3a
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], eax
call fcn.004cd01a
mov edx, dword [esi + 0x6c]
lea ecx, [esp + 0x60]
push ecx
push 0x18
push edx
mov dword [esp + 0x8c], ebp
call dword [0x4da094]
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x451761
xor eax, eax
jmp 0x451764
mov eax, dword [eax + 4]
push eax
call dword [0x4da128]
push eax
lea ecx, [esp + 0x34]
call fcn.004cd014
cmp edi, ebp
jne 0x45177d
xor edi, edi
jmp 0x451780
mov edi, dword [edi + 4]
mov eax, dword [esp + 0x34]
push edi
push eax
call fcn.004cd00e
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x10], eax
cmp dword [ecx - 8], ebp
je 0x451840
mov eax, dword [esi + 0x54]
test eax, 0x80000000
je 0x4517ae
neg eax
push eax
call dword [0x4dabc4]
push eax
lea ecx, [esp + 0x34]
call fcn.004cd06e
push 1
lea ecx, [esp + 0x34]
mov ebp, eax
call fcn.004ccef4
push 0x11
mov dword [esp + 0x20], eax
call dword [0x4da0dc]
push eax
call fcn.004cd044
push eax
lea ecx, [esp + 0x34]
call fcn.004cd4e8
lea edi, [esi + 0x44]
mov dword [esp + 0x18], eax
push edi
call dword [0x4dac64]
test eax, eax
je 0x451802
mov eax, dword [esi + 0x20]
test eax, eax
je 0x451802
push edi
push eax
call dword [0x4dabf0]
mov eax, dword [esi + 0x40]
mov edx, dword [esp + 0x30]
push 0x25
push edi
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x40]
call dword [edx + 0x70]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
call fcn.004cd4e8
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x34]
call fcn.004ccef4
push ebp
lea ecx, [esp + 0x34]
call fcn.004cd06e
xor ebp, ebp
lea edx, [esp + 0x10]
test edx, edx
je 0x451858
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [0x4da0ec]
lea ecx, [esp + 0x50]
mov dword [esp + 0x28], 0xc0c0c0
mov dword [esp + 0x2c], 0xffffff
call fcn.004cd01a
xor edx, edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x48], edx
mov dword [esp + 0x20], 0x4db9ec
mov dword [esp + 0x4c], edx
mov eax, dword [esi + 0x58]
lea ecx, [esp + 0x28]
push 1
push ecx
push ebp
push eax
and eax, 0xffff
push 2
push eax
mov byte [esp + 0x98], 2
call fcn.004cce28
push eax
call dword [0x4da088]
push eax
mov ecx, ebx
call fcn.004cce1c
cmp eax, ebp
jne 0x45191e
mov dword [esp + 0x20], 0x4dbbb4
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 3
call fcn.004cce0a
lea ecx, [esp + 0x50]
mov dword [esp + 0x20], 0x4dbba0
mov byte [esp + 0x80], 0
call fcn.004ccffc
lea ecx, [esp + 0x30]
mov dword [esp + 0x80], 0xffffffff
call fcn.004ccffc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
cmp edi, ebp
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
jne 0x45193a
xor eax, eax
jmp 0x45193d
mov eax, dword [edi + 4]
push eax
call dword [0x4da128]
push eax
lea ecx, [esp + 0x54]
call fcn.004cd014
cmp ebx, ebp
jne 0x451956
xor eax, eax
jmp 0x451959
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x34]
push eax
push ecx
call fcn.004cd00e
mov edx, dword [esp + 0x4c]
push ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
push 1
push 1
push edx
push eax
call dword [0x4da114]
push eax
lea ecx, [esp + 0x24]
call fcn.004cce1c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call fcn.004cd00e
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x4c]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ecx
mov ecx, dword [esp + 0x58]
push ebp
push ebp
push eax
mov eax, dword [esp + 0x58]
push edx
push eax
push ebp
push ebp
push ecx
call dword [0x4da11c]
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0x4519dd
xor eax, eax
jmp 0x4519e0
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x34]
push eax
push edx
call fcn.004cd00e
mov ecx, ebx
call fcn.004cce0a
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [edi + 4]
push eax
push ecx
push edx
call dword [0x4da124]
push eax
mov ecx, ebx
call fcn.004cce1c
cmp ebx, ebp
jne 0x451a16
xor eax, eax
jmp 0x451a19
mov eax, dword [ebx + 4]
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.004cd00e
mov edx, dword [esi + 0x20]
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 4]
push ecx
push edx
call dword [0x4dabf4]
push 0xffffff
lea ecx, [esp + 0x34]
call fcn.004cd5fc
mov edi, dword [0x4dac60]
push 0x10
mov ebp, eax
call edi
push eax
call fcn.004cd044
push 0x14
mov ebx, eax
call edi
push eax
call fcn.004cd044
push eax
lea ecx, [esp + 0x34]
call fcn.004cd5f6
push 0x10
mov edi, eax
call fcn.004cd044
test eax, eax
je 0x451a7c
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x34]
push eax
lea eax, [esp + 0x44]
push eax
push ecx
call dword [0x4dac5c]
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x50]
mov edx, dword [esp + 0x4c]
push 0xb8074a
neg eax
sbb eax, eax
push 0
and eax, ecx
mov ecx, dword [esp + 0x3c]
push 0
push eax
mov eax, dword [esp + 0x58]
push edx
push eax
push 1
push 1
push ecx
call dword [0x4da11c]
push ebx
lea ecx, [esp + 0x34]
call fcn.004cd5f6
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x50]
neg eax
sbb eax, eax
mov ecx, dword [esp + 0x34]
push 0xb8074a
and eax, edx
mov edx, dword [esp + 0x50]
push 0
push 0
push eax
mov eax, dword [esp + 0x58]
push edx
push eax
push 0
push 0
push ecx
call dword [0x4da11c]
push edi
lea ecx, [esp + 0x34]
call fcn.004cd5f6
push ebp
lea ecx, [esp + 0x34]
call fcn.004cd5fc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x451b18
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x54]
push eax
push edx
call fcn.004cd00e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x451b2e
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.004cd00e
lea ecx, [esp + 0x20]
call fcn.004cce0a
lea ecx, [esp + 0x30]
call fcn.004cd5f0
mov ecx, dword [esi + 0x20]
push 1
push 0
push ecx
call dword [0x4dac0c]
mov dword [esp + 0x20], 0x4dbbb4
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 4
call fcn.004cce0a
lea ecx, [esp + 0x50]
mov dword [esp + 0x20], 0x4dbba0
mov byte [esp + 0x80], 0
call fcn.004ccffc
lea ecx, [esp + 0x30]
mov dword [esp + 0x80], 0xffffffff
call fcn.004ccffc
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret