Function at 0x54eb10
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x71d37c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
mov dword [esp + 0x10], esi
call fcn.005b3190
xor ebp, ebp
lea ecx, [esi + 0x10]
mov dword [esp + 0x2c], ebp
call fcn.005b3190
mov ebx, 1
lea ecx, [esi + 0x18]
mov byte [esp + 0x2c], bl
call fcn.005b3190
lea ecx, [esi + 0x20]
mov byte [esp + 0x2c], 2
call fcn.005b3190
mov dword [esi + 0xf0], ebp
mov dword [esi + 0xf4], ebx
lea ecx, [esi + 0xfc]
mov byte [esp + 0x2c], 3
mov dword [esi + 0xf8], ebp
call fcn.005b3190
mov eax, dword [esi + 0x104]
mov dword [esp + 0x20], ebp
mov dword [esi], ebp
mov word [esi + 4], bp
and eax, 0xfffffff8
mov dword [esi + 0x90], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0x98], ebx
xor ebx, ebx
mov dword [esi + 0x104], eax
mov eax, str.Undefined
lea ebp, [esi + 0x10c]
mov dword [ebp], eax
lea ecx, [esi + 0x90]
lea edi, [esi + 0xc4]
mov eax, str.UndefinedOption
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [ebp + 8], ebx
mov ebx, dword [str.AllowLocal]
mov dword [ebp + 0xc], eax
mov eax, dword [str.JoiningRestrictions]
lea ebp, [esi + 0x11c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x28]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowServer]
lea ebp, [esi + 0x12c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x2c]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowVault]
lea ebp, [esi + 0x13c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x30]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.FixedParties]
lea ebp, [esi + 0x14c]
lea edx, [esi + 0x94]
mov dword [ebp], eax
mov dword [edx], 0x14
mov dword [esi + 0x108], 2
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x34]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowFighter]
lea ebp, [esi + 0x15c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x38]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowBarbarian]
lea ebp, [esi + 0x16c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x3c]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowRanger]
lea ebp, [esi + 0x17c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x40]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowPaladin]
lea ebp, [esi + 0x18c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x44]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowWizard]
lea ebp, [esi + 0x19c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x48]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowSorcerer]
lea ebp, [esi + 0x1ac]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x4c]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowCleric]
lea ebp, [esi + 0x1bc]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x50]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowDruid]
lea ebp, [esi + 0x1cc]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x54]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowRogue]
lea ebp, [esi + 0x1dc]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x58]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowBard]
lea ebp, [esi + 0x1ec]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x5c]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowMonk]
lea ebp, [esi + 0x1fc]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x60]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowHuman]
lea ebp, [esi + 0x20c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x64]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowElf]
lea ebp, [esi + 0x21c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x68]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowDwarf]
lea ebp, [esi + 0x22c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x6c]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowGnome]
lea ebp, [esi + 0x23c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x70]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowHalfling]
lea ebp, [esi + 0x24c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x74]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowHalfOrc]
lea ebp, [esi + 0x25c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x78]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.AllowHalfElf]
lea ebp, [esi + 0x26c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x7c]
mov dword [ebp + 8], ebx
mov ebx, 1
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.MaxPlayers]
lea ebp, [esi + 0x27c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x80]
mov dword [ebp + 8], ebx
mov ebx, 2
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.MaxParties]
lea ebp, [esi + 0x28c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x84]
mov dword [ebp + 8], ebx
mov ebx, 2
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.MaxItemPoints]
lea ebp, [esi + 0x29c]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x88]
mov dword [ebp + 8], ebx
mov ebx, 2
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.MaxStatTotal]
lea ebp, [esi + 0x2ac]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x8c]
mov dword [ebp + 8], ebx
mov ebx, 2
mov dword [ebp + 0xc], ebx
mov ebx, dword [str.MinLevel]
lea ebp, [esi + 0x2bc]
mov dword [ebp], eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ecx
mov ecx, 2
mov dword [ebp + 0xc], ecx
mov ecx, dword [str.MaxLevel]
lea ebp, [esi + 0x2cc]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov eax, dword [str.PlayOptions]
mov dword [ebp + 8], edx
mov ecx, dword [str.AllKillable]
mov ebx, 2
mov dword [ebp + 0xc], ebx
lea ebp, [esi + 0x2dc]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov ecx, dword [str.NonPartyKillable]
mov ebx, 1
lea edx, [esi + 0x9c]
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
lea ebp, [esi + 0x2ec]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov ecx, dword [str.RequireResurrection]
lea edx, [esi + 0xa0]
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
lea ebp, [esi + 0x2fc]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov ecx, dword [str.LoseStolenItems]
lea edx, [esi + 0xa4]
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
lea ebp, [esi + 0x30c]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov ecx, dword [str.LoseItems]
lea edx, [esi + 0xa8]
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
lea ebp, [esi + 0x31c]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov ecx, dword [str.LoseExp]
lea edx, [esi + 0xac]
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
lea ebp, [esi + 0x32c]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov ecx, dword [str.LoseGold]
lea edx, [esi + 0xb0]
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
lea ebp, [esi + 0x33c]
mov dword [ebp], eax
lea edx, [esi + 0xb4]
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
mov ecx, dword [str.LoseGoldNum]
lea ebp, [esi + 0x34c]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov ecx, dword [str.LoseExpNum]
lea edx, [esi + 0xb8]
mov dword [ebp + 8], edx
mov ebx, 2
mov dword [ebp + 0xc], ebx
lea ebp, [esi + 0x35c]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov ecx, dword [str.LoseItemsNum]
lea edx, [esi + 0xbc]
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
lea ebp, [esi + 0x36c]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov ecx, dword [str.ResetOption]
lea edx, [esi + 0xc0]
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
mov edx, dword [str.OnVacant]
lea ebp, [esi + 0x37c]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
lea ebx, [esi + 0xcc]
mov dword [ebp + 8], ebx
mov edx, 1
mov dword [ebp + 0xc], edx
mov edx, dword [str.OnVictory]
lea ebp, [esi + 0x38c]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
lea ebx, [esi + 0xd0]
mov dword [ebp + 8], ebx
mov edx, 1
mov dword [ebp + 0xc], edx
mov edx, dword [str.OnFailure]
lea ebp, [esi + 0x39c]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
lea ebx, [esi + 0xd4]
mov dword [ebp + 8], ebx
mov edx, 1
mov dword [ebp + 0xc], edx
mov edx, dword [str.OnDeath]
lea ebp, [esi + 0x3ac]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
lea ebx, [esi + 0xd8]
mov dword [ebp + 8], ebx
mov edx, 1
mov dword [ebp + 0xc], edx
mov edx, dword [str.OnPartyDeath]
lea ebp, [esi + 0x3bc]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov edx, dword [str.AtIntervals]
lea ebx, [esi + 0xdc]
mov dword [ebp + 8], ebx
mov ecx, 1
mov dword [ebp + 0xc], ecx
mov ecx, dword [str.AutoSave]
lea ebp, [esi + 0x3cc]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
lea ebx, [esi + 0xe0]
mov dword [ebp + 8], ebx
mov edx, 1
mov dword [ebp + 0xc], edx
mov edx, dword [str.AtSavePoints]
lea ebp, [esi + 0x3dc]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
lea ebx, [esi + 0xe4]
mov dword [ebp + 8], ebx
mov edx, 1
mov dword [ebp + 0xc], edx
mov edx, dword [str.OnPlayerChange]
lea ebp, [esi + 0x3ec]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
lea ebx, [esi + 0xe8]
mov dword [ebp + 8], ebx
mov edx, 1
mov dword [ebp + 0xc], edx
mov edx, dword [str.Interval]
lea ebp, [esi + 0x3fc]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
lea ebx, [esi + 0xec]
mov dword [ebp + 8], ebx
mov ecx, 2
mov dword [ebp + 0xc], ecx
xor ebx, ebx
lea ebp, [esi + 0x40c]
mov ecx, str.Undefined
mov dword [ebp], ecx
mov edx, str.UndefinedOption
mov dword [ebp + 4], edx
mov dword [ebp + 8], ebx
xor ecx, ecx
mov dword [ebp + 0xc], ecx
mov ecx, dword [str.PauseAndPlay]
lea ebx, [esi + 0x41c]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [ebx + 8], edi
pop edi
mov eax, esi
pop esi
mov edx, 1
mov dword [ebx + 0xc], edx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret