Function at 0x653850
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x72ae20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x68]
call fcn.00405ed0
lea ecx, [esp + 0x18]
call fcn.005b3190
lea ecx, [esp + 0x20]
mov dword [esp + 0x84], 0
call fcn.005b3190
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], 1
call fcn.005b3190
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 2
call fcn.005b3190
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 3
call fcn.005b3190
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], 4
call fcn.005b3190
mov bl, 5
push 0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x88], bl
call fcn.00405ed0
push eax
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call fcn.00692660
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x88], 6
call fcn.005e5c50
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push 0x20
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call fcn.004d67e0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x88], 7
call fcn.005e5c50
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push 8
mov ecx, esi
call fcn.004d6720
push 0x10
mov ecx, esi
mov byte [esp + 0x16], al
call fcn.004d6750
push 8
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.004d6720
push 8
mov ecx, esi
mov byte [esp + 0x17], al
call fcn.004d6720
push 8
mov ecx, esi
mov byte [esp + 0x14], al
call fcn.004d6720
mov byte [esp + 0x11], al
push 0x10
lea edx, [esp + 0x5c]
push edx
mov ecx, esi
call fcn.004d6180
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x70]
call fcn.00406120
push 0x20
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call fcn.004d67e0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x88], 8
call fcn.005e5c50
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push 1
mov ecx, esi
call fcn.004d6230
test eax, eax
jne 0x653a17
mov edx, dword [0x7a39fc]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
push eax
call fcn.005ed5f0
mov edi, eax
test edi, edi
je 0x653a17
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 4]
call fcn.005ed690
mov esi, eax
test esi, esi
jne 0x653a96
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], 4
call fcn.005e5c20
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 3
call fcn.005e5c20
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 2
call fcn.005e5c20
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], 1
call fcn.005e5c20
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 0
call fcn.005e5c20
lea ecx, [esp + 0x18]
mov dword [esp + 0x84], 0xffffffff
call fcn.005e5c20
xor eax, eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x751e04
lea ecx, [esp + 0x4c]
call fcn.005e5a90
push 0
push 0x10000000
lea edx, [esp + 0x50]
push edx
mov ecx, esi
mov byte [esp + 0x90], 9
call fcn.0062b5c0
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push str.LABEL
lea ecx, [esp + 0x4c]
call fcn.005e5a90
mov al, byte [edi + 0x10c]
mov ecx, dword [0x7a3a28]
mov ecx, dword [ecx + 0xb8]
mov ecx, dword [ecx + 0x2c]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x4c]
movzx eax, al
push edx
push eax
mov byte [esp + 0x90], 0xa
call fcn.00413270
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push str.Name:
lea ecx, [esp + 0x1c]
call fcn.005e5140
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x20]
call fcn.005e5d10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0xb
call fcn.005e5c50
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push str.____Tag:
lea ecx, [esp + 0x4c]
call fcn.005e5a90
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 0xc
call fcn.005e5d10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0xd
call fcn.005e5c50
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 0xc
call fcn.005e5c20
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
call fcn.005e5d10
mov byte [esp + 0x84], 0xe
push eax
lea ecx, [esp + 0x1c]
call fcn.005e5c50
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push str.____Appearance:
lea ecx, [esp + 0x4c]
call fcn.005e5a90
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 0xf
call fcn.005e5d10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x10
call fcn.005e5c50
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 0xf
call fcn.005e5c20
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x20]
call fcn.005e5d10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x11
call fcn.005e5c50
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push 0
push 0x10000000
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0062b5c0
lea ecx, [esp + 0x38]
call fcn.005e5670
lea ecx, [esp + 0x30]
call fcn.005e5670
lea ecx, [esp + 0x20]
call fcn.005e5670
push str.Hardness:
lea ecx, [esp + 0x1c]
call fcn.005e5140
movzx edi, byte [esp + 0x12]
push edi
lea ecx, [esp + 0x4c]
call fcn.005e5bc0
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 0x12
call fcn.005e5d10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x13
call fcn.005e5c50
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 0x12
call fcn.005e5c20
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push str.____HP:
lea ecx, [esp + 0x4c]
call fcn.005e5a90
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 0x14
call fcn.005e5d10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x15
call fcn.005e5c50
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 0x14
call fcn.005e5c20
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
movsx eax, word [esp + 0x14]
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], eax
call fcn.005e5bc0
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 0x16
call fcn.005e5d10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x17
call fcn.005e5c50
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 0x16
call fcn.005e5c20
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push 0
push 0x10000000
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0062b5c0
push edi
lea ecx, [esp + 0x5c]
call fcn.005e5bc0
mov ecx, eax
mov byte [esp + 0x84], 0x18
call fcn.005e5670
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], bl
call fcn.005e5c20
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x5c]
call fcn.005e5bc0
mov ecx, eax
mov byte [esp + 0x84], 0x19
call fcn.005e5670
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push str.FortitudeSave:
lea ecx, [esp + 0x1c]
call fcn.005e5140
movzx edi, byte [esp + 0x13]
push edi
lea ecx, [esp + 0x4c]
call fcn.005e5bc0
push eax
lea eax, [esp + 0x5c]
mov byte [esp + 0x88], 0x1a
push eax
lea ecx, [esp + 0x20]
call fcn.005e5d10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x1b
call fcn.005e5c50
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 0x1a
call fcn.005e5c20
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push str.____ReflexSave:
lea ecx, [esp + 0x4c]
call fcn.005e5a90
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 0x1c
call fcn.005e5d10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x1d
call fcn.005e5c50
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 0x1c
call fcn.005e5c20
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
movzx eax, byte [esp + 0x10]
push eax
lea ecx, [esp + 0x4c]
call fcn.005e5bc0
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 0x1e
call fcn.005e5d10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x1f
call fcn.005e5c50
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 0x1e
call fcn.005e5c20
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push str.____WillSave:
lea ecx, [esp + 0x4c]
call fcn.005e5a90
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 0x20
call fcn.005e5d10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x21
call fcn.005e5c50
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 0x20
call fcn.005e5c20
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
movzx eax, byte [esp + 0x11]
push eax
lea ecx, [esp + 0x4c]
call fcn.005e5bc0
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 0x22
call fcn.005e5d10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x23
call fcn.005e5c50
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 0x22
call fcn.005e5c20
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push 0
push 0x10000000
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0062b5c0
push edi
lea ecx, [esp + 0x5c]
call fcn.005e5bc0
mov ecx, eax
mov byte [esp + 0x84], 0x24
call fcn.005e5670
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], bl
call fcn.005e5c20
movzx eax, byte [esp + 0x10]
push eax
lea ecx, [esp + 0x5c]
call fcn.005e5bc0
mov ecx, eax
mov byte [esp + 0x84], 0x25
call fcn.005e5670
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], bl
call fcn.005e5c20
movzx eax, byte [esp + 0x11]
push eax
lea ecx, [esp + 0x5c]
call fcn.005e5bc0
mov ecx, eax
mov byte [esp + 0x84], 0x26
call fcn.005e5670
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], bl
call fcn.005e5c20
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x6c]
call fcn.00405f70
push str.TemplateResRef:
lea ecx, [esp + 0x1c]
call fcn.005e5140
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x20]
call fcn.005e5d10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x27
call fcn.005e5c50
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push 0
push 0x10000000
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0062b5c0
lea ecx, [esp + 0x20]
call fcn.005e5670
push str.Faction:
lea ecx, [esp + 0x1c]
call fcn.005e5140
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x20]
call fcn.005e5d10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x28
call fcn.005e5c50
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], bl
call fcn.005e5c20
push 0
push 0x10000000
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0062b5c0
lea ecx, [esp + 0x28]
call fcn.005e5670
push 0x751e04
lea ecx, [esp + 0x4c]
call fcn.005e5a90
push 0
push 0x10000000
lea eax, [esp + 0x50]
push eax
mov ecx, esi
mov byte [esp + 0x90], 0x29
call fcn.0062b5c0
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call fcn.005e5c20
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], 4
call fcn.005e5c20
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 3
call fcn.005e5c20
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 2
call fcn.005e5c20
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], 1
call fcn.005e5c20
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 0
call fcn.005e5c20
lea ecx, [esp + 0x18]
mov dword [esp + 0x84], 0xffffffff
call fcn.005e5c20
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4