Function at 0x49a740
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x54d598
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.005400f8
lea ebx, [esi + 0x70]
mov ecx, ebx
call fcn.005400f8
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.0054010a
push eax
call dword [0x553048]
push eax
mov ecx, edi
call fcn.00540104
cmp eax, ebp
jne 0x49a7b0
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 [0x553da4]
push eax
call fcn.00540008
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], eax
call fcn.005402c0
mov edx, dword [esi + 0x6c]
lea ecx, [esp + 0x60]
push ecx
push 0x18
push edx
mov dword [esp + 0x8c], ebp
call dword [0x5530cc]
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x49a7f1
xor eax, eax
jmp 0x49a7f4
mov eax, dword [eax + 4]
push eax
call dword [0x5530d0]
push eax
lea ecx, [esp + 0x34]
call fcn.005402b4
cmp edi, ebp
jne 0x49a80d
xor edi, edi
jmp 0x49a810
mov edi, dword [edi + 4]
mov eax, dword [esp + 0x34]
push edi
push eax
call fcn.005402ae
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x10], eax
cmp dword [ecx - 8], ebp
je 0x49a8d0
mov eax, dword [esi + 0x54]
test eax, 0x80000000
je 0x49a83e
neg eax
push eax
call dword [0x553ce4]
push eax
lea ecx, [esp + 0x34]
call fcn.00540998
push 1
lea ecx, [esp + 0x34]
mov ebp, eax
call fcn.00540242
push 0x11
mov dword [esp + 0x20], eax
call dword [0x55308c]
push eax
call fcn.00540302
push eax
lea ecx, [esp + 0x34]
call fcn.00540992
lea edi, [esi + 0x44]
mov dword [esp + 0x18], eax
push edi
call dword [0x553dd8]
test eax, eax
je 0x49a892
mov eax, dword [esi + 0x20]
test eax, eax
je 0x49a892
push edi
push eax
call dword [0x553d3c]
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.00540992
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x34]
call fcn.00540242
push ebp
lea ecx, [esp + 0x34]
call fcn.00540998
xor ebp, ebp
lea edx, [esp + 0x10]
test edx, edx
je 0x49a8e8
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [0x5530c4]
lea ecx, [esp + 0x50]
mov dword [esp + 0x28], 0xc0c0c0
mov dword [esp + 0x2c], 0xffffff
call fcn.005402c0
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], 0x555580
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.0054010a
push eax
call dword [0x553048]
push eax
mov ecx, ebx
call fcn.00540104
cmp eax, ebp
jne 0x49a9ae
mov dword [esp + 0x20], 0x5555a8
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 3
call fcn.005400f8
lea ecx, [esp + 0x50]
mov dword [esp + 0x20], 0x555594
mov byte [esp + 0x80], 0
call fcn.005402ba
lea ecx, [esp + 0x30]
mov dword [esp + 0x80], 0xffffffff
call fcn.005402ba
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 0x49a9ca
xor eax, eax
jmp 0x49a9cd
mov eax, dword [edi + 4]
push eax
call dword [0x5530d0]
push eax
lea ecx, [esp + 0x54]
call fcn.005402b4
cmp ebx, ebp
jne 0x49a9e6
xor eax, eax
jmp 0x49a9e9
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x34]
push eax
push ecx
call fcn.005402ae
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 [0x553090]
push eax
lea ecx, [esp + 0x24]
call fcn.00540104
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.005402ae
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 [0x5530fc]
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0x49aa6d
xor eax, eax
jmp 0x49aa70
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x34]
push eax
push edx
call fcn.005402ae
mov ecx, ebx
call fcn.005400f8
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [edi + 4]
push eax
push ecx
push edx
call dword [0x5530c8]
push eax
mov ecx, ebx
call fcn.00540104
cmp ebx, ebp
jne 0x49aaa6
xor eax, eax
jmp 0x49aaa9
mov eax, dword [ebx + 4]
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.005402ae
mov edx, dword [esi + 0x20]
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 4]
push ecx
push edx
call dword [0x553d40]
push 0xffffff
lea ecx, [esp + 0x34]
call fcn.0054098c
mov edi, dword [0x553cdc]
push 0x10
mov ebp, eax
call edi
push eax
call fcn.00540302
push 0x14
mov ebx, eax
call edi
push eax
call fcn.00540302
push eax
lea ecx, [esp + 0x34]
call fcn.005401d0
push 0x10
mov edi, eax
call fcn.00540302
test eax, eax
je 0x49ab0c
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x34]
push eax
lea eax, [esp + 0x44]
push eax
push ecx
call dword [0x553ce0]
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 [0x5530fc]
push ebx
lea ecx, [esp + 0x34]
call fcn.005401d0
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 [0x5530fc]
push edi
lea ecx, [esp + 0x34]
call fcn.005401d0
push ebp
lea ecx, [esp + 0x34]
call fcn.0054098c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49aba8
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x54]
push eax
push edx
call fcn.005402ae
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49abbe
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.005402ae
lea ecx, [esp + 0x20]
call fcn.005400f8
lea ecx, [esp + 0x30]
call fcn.005402a2
mov ecx, dword [esi + 0x20]
push 1
push 0
push ecx
call dword [0x553da0]
mov dword [esp + 0x20], 0x5555a8
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 4
call fcn.005400f8
lea ecx, [esp + 0x50]
mov dword [esp + 0x20], 0x555594
mov byte [esp + 0x80], 0
call fcn.005402ba
lea ecx, [esp + 0x30]
mov dword [esp + 0x80], 0xffffffff
call fcn.005402ba
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