Function at 0x5b31d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x722610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x54
call fcn.006fa7e6
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x244], ebx
je 0x5b3233
push ebx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.BASEITEMS
call fcn.00406d80
mov ecx, esi
call fcn.00413cc0
mov edi, eax
jmp 0x5b3235
xor edi, edi
mov ecx, edi
mov dword [esp + 0x244], 0xffffffff
call int.004143b0
mov esi, dword [edi + 0x24]
mov eax, esi
imul eax, eax, 0xc8
add eax, 4
push eax
mov dword [ebp], esi
call fcn.006fa7e6
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0x244], 1
je 0x5b328f
push 0x5b2fc0
push 0x5b2ef0
push esi
lea ebx, [eax + 4]
push 0xc8
push ebx
mov dword [eax], esi
call fcn.006fb55f
lea ecx, [esp + 0x20]
mov dword [esp + 0x244], 0xffffffff
mov dword [ebp + 4], ebx
call fcn.005b3190
mov eax, dword [ebp]
xor esi, esi
test eax, eax
mov dword [esp + 0x244], 2
jle 0x5b4621
xor ebx, ebx
push str.Name
lea ecx, [esp + 0x10c]
call fcn.005e5a90
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10c]
push edx
push esi
mov ecx, edi
mov byte [esp + 0x250], 3
call fcn.00413660
lea ecx, [esp + 0x108]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [eax], ecx
push str.EquipableSlots
lea ecx, [esp + 0x4c]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x4c]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 4
call fcn.00413660
lea ecx, [esp + 0x48]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [eax + 4], ecx
push str.CanRotateIcon
lea ecx, [esp + 0x1e4]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1e4]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 5
call fcn.00413660
lea ecx, [esp + 0x1e0]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [eax + 0x6c], ecx
push str.ModelType
lea ecx, [esp + 0x5c]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x5c]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 6
call fcn.00413660
lea ecx, [esp + 0x58]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x18], cl
push str.ItemClass
lea ecx, [esp + 0x13c]
call fcn.005e5a90
mov byte [esp + 0x244], 7
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x13c]
push eax
push esi
mov ecx, edi
call int.00413270
lea ecx, [esp + 0x138]
mov byte [esp + 0x244], 2
call fcn.005e5c20
lea ecx, [esp + 0x20]
call fcn.005e5670
mov ecx, dword [ebp + 4]
add ecx, ebx
push 0xb
push eax
add ecx, 0x3c
push ecx
call fcn.006fab80
add esp, 0xc
push str.GenderSpecific
lea ecx, [esp + 0x6c]
call fcn.005e5a90
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x6c]
push edx
push esi
mov ecx, edi
mov byte [esp + 0x250], 8
call fcn.00413660
lea ecx, [esp + 0x68]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
movzx ecx, byte [esp + 0x10]
add eax, ebx
mov dword [eax + 0x74], ecx
push str.PartEnvMap
lea ecx, [esp + 0x1ac]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1ac]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 9
call fcn.00413660
lea ecx, [esp + 0x1a8]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [eax + 0x48], ecx
push str.DefaultModel
lea ecx, [esp + 0x7c]
call fcn.005e5a90
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x7c]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0xa
call int.00413270
lea ecx, [esp + 0x78]
mov byte [esp + 0x244], 2
call fcn.005e5c20
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x21c]
call fcn.00406d60
mov ecx, dword [ebp + 4]
add ecx, ebx
push eax
lea edx, [esp + 0x1fc]
push edx
add ecx, 0x5c
call fcn.00406120
push str.DefaultIcon
lea ecx, [esp + 0x14c]
call fcn.005e5a90
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14c]
push ecx
push esi
mov ecx, edi
mov byte [esp + 0x250], 0xb
call int.00413270
lea ecx, [esp + 0x148]
mov byte [esp + 0x244], 2
call fcn.005e5c20
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x20c]
call fcn.00406d60
mov ecx, dword [ebp + 4]
push eax
add ecx, ebx
lea eax, [esp + 0x22c]
push eax
add ecx, 0x4c
call fcn.00406120
push str.Container
lea ecx, [esp + 0x8c]
call fcn.005e5a90
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x8c]
push edx
push esi
mov ecx, edi
mov byte [esp + 0x250], 0xc
call fcn.00413660
lea ecx, [esp + 0x88]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [eax + 0x70], ecx
push str.WeaponWield
lea ecx, [esp + 0x1d4]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1d4]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0xd
call fcn.00413660
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 8], cl
push str.WeaponType
lea ecx, [esp + 0x9c]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0xe
call fcn.00413660
mov byte [esp + 0x244], 2
lea ecx, [esp + 0x98]
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 9], cl
push str.DamageFlags
lea ecx, [esp + 0x15c]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x15c]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0xf
call fcn.00413660
lea ecx, [esp + 0x158]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [eax + 0xc], ecx
push str.WeaponSize
lea ecx, [esp + 0xac]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xac]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x10
call fcn.00413660
lea ecx, [esp + 0xa8]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x1b], cl
push str.RangedWeapon
lea ecx, [esp + 0x1bc]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1bc]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x11
call fcn.00413660
lea ecx, [esp + 0x1b8]
mov dword [esp + 0x18], eax
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, dword [ebp + 4]
je 0x5b3783
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x1a], cl
jmp 0x5b3789
add eax, ebx
mov byte [eax + 0x1a], 0
push str.MaxAttackRange
lea ecx, [esp + 0xbc]
call fcn.005e5a90
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xbc]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x12
call int.00413430
lea ecx, [esp + 0xb8]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x2c]
add eax, ebx
mov dword [eax + 0x34], ecx
push str.PrefAttackDist
lea ecx, [esp + 0x16c]
call fcn.005e5a90
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x16c]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x13
call int.00413430
lea ecx, [esp + 0x168]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x2c]
add eax, ebx
mov dword [eax + 0x38], ecx
push str.MinRange
lea ecx, [esp + 0xcc]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xcc]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x14
call fcn.00413660
lea ecx, [esp + 0xc8]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [eax + 0x10], ecx
push str.MaxRange
lea ecx, [esp + 0x1dc]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1dc]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x15
call fcn.00413660
lea ecx, [esp + 0x1d8]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [eax + 0x14], ecx
push str.NumDice
lea ecx, [esp + 0xdc]
call fcn.005e5a90
mov byte [esp + 0x244], 0x16
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xdc]
push eax
push esi
mov ecx, edi
call fcn.00413660
lea ecx, [esp + 0xd8]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x1c], cl
push str.DieToRoll
lea ecx, [esp + 0x17c]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x17c]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x17
call fcn.00413660
lea ecx, [esp + 0x178]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x1d], cl
push str.CritThreat
lea ecx, [esp + 0xec]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xec]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x18
call fcn.00413660
lea ecx, [esp + 0xe8]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x1e], cl
push str.CritHitMult
lea ecx, [esp + 0x1cc]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1cc]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x19
call fcn.00413660
lea ecx, [esp + 0x1c8]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x1f], cl
push str.BaseCost
lea ecx, [esp + 0xfc]
call fcn.005e5a90
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xfc]
push eax
mov byte [esp + 0x24c], 0x1a
push esi
mov ecx, edi
call int.00413430
lea ecx, [esp + 0xf8]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x2c]
add eax, ebx
mov dword [eax + 0x20], ecx
push str.Stacking
lea ecx, [esp + 0x18c]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18c]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x1b
call fcn.00413660
lea ecx, [esp + 0x188]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cx, word [esp + 0x10]
add eax, ebx
mov word [eax + 0x24], cx
mov eax, dword [ebp + 4]
add eax, ebx
push str.Description
lea ecx, [esp + 0x3c]
mov dword [eax + 0xc4], 0x3f800000
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x3c]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x1c
call fcn.00413660
lea ecx, [esp + 0x38]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [eax + 0x28], ecx
push str.InvSoundType
lea ecx, [esp + 0x1ec]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1ec]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x1d
call fcn.00413660
lea ecx, [esp + 0x1e8]
mov dword [esp + 0x18], eax
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5b3b45
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x78], cl
push str.MaxProps
lea ecx, [esp + 0x11c]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x11c]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x1e
call fcn.00413660
lea ecx, [esp + 0x118]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x2d], cl
push str.MinProps
lea ecx, [esp + 0x19c]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x19c]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x1f
call fcn.00413660
lea ecx, [esp + 0x198]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x2c], cl
push str.PropColumn
lea ecx, [esp + 0x12c]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x12c]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x20
call fcn.00413660
lea ecx, [esp + 0x128]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x2e], cl
push str.ArmorCheckPen
lea ecx, [esp + 0x44]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x44]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x21
call fcn.00413660
lea ecx, [esp + 0x40]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x8d], cl
push str.ChargesStarting
lea ecx, [esp + 0x54]
call fcn.005e5a90
mov byte [esp + 0x244], 0x22
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
push esi
mov ecx, edi
call fcn.00413660
lea ecx, [esp + 0x50]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x19], cl
push str.BaseItemStatRef
lea ecx, [esp + 0x64]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x64]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x23
call fcn.00413660
neg eax
sbb al, al
inc al
lea ecx, [esp + 0x60]
mov byte [esp + 0x17], al
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov al, byte [esp + 0x17]
test al, al
je 0x5b3d0f
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [eax + 0x84], ecx
push str.StorePanel
lea ecx, [esp + 0x74]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x74]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x24
call fcn.00413660
lea ecx, [esp + 0x70]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x2f], cl
push str.StorePanelSort
lea ecx, [esp + 0x84]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x84]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x25
call fcn.00413660
lea ecx, [esp + 0x80]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x30], cl
push str.RotateOnGround
lea ecx, [esp + 0x94]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x94]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x26
call fcn.00413660
lea ecx, [esp + 0x90]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x88], cl
push str.TenthLBS
lea ecx, [esp + 0xa4]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xa4]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x27
call fcn.00413660
lea ecx, [esp + 0xa0]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x89], cl
push str.BaseAC
lea ecx, [esp + 0xb4]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xb4]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x28
call fcn.00413660
lea ecx, [esp + 0xb0]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x8a], cl
push str.AC_Enchant
lea ecx, [esp + 0xc4]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc4]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x29
call fcn.00413660
lea ecx, [esp + 0xc0]
mov dword [esp + 0x18], eax
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, dword [ebp + 4]
je 0x5b3f03
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x8b], cl
jmp 0x5b3f0c
add eax, ebx
mov byte [eax + 0x8b], 0xff
push str.WeaponMatType
lea ecx, [esp + 0xd4]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xd4]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x2a
call fcn.00413660
lea ecx, [esp + 0xd0]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x8c], cl
push str.AmmunitionType
lea ecx, [esp + 0xe4]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xe4]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x2b
call fcn.00413660
lea ecx, [esp + 0xe0]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x8e], cl
push str.PoweredItem
lea ecx, [esp + 0xf4]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xf4]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x2c
call fcn.00413660
lea ecx, [esp + 0xf0]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [eax + 0x90], ecx
push str.PoweredSnd
lea ecx, [esp + 0x104]
call fcn.005e5a90
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x104]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x2d
call int.00413270
lea ecx, [esp + 0x100]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x20]
add eax, ebx
push ecx
lea ecx, [eax + 0x94]
call fcn.005e5c50
push str.PowerDownSnd
lea ecx, [esp + 0x114]
call fcn.005e5a90
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x114]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x2e
call int.00413270
lea ecx, [esp + 0x110]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x20]
add eax, ebx
push ecx
lea ecx, [eax + 0xa4]
call fcn.005e5c50
push str.PowerUpSnd
lea ecx, [esp + 0x124]
call fcn.005e5a90
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x124]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x2f
call int.00413270
lea ecx, [esp + 0x120]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x20]
add eax, ebx
push ecx
lea ecx, [eax + 0x9c]
call fcn.005e5c50
push str.ItemType
lea ecx, [esp + 0x134]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x134]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x30
call fcn.00413660
lea ecx, [esp + 0x130]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0xac], cl
push str.DroidOrHuman
lea ecx, [esp + 0x144]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x144]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x31
call fcn.00413660
neg eax
sbb al, al
inc al
lea ecx, [esp + 0x140]
mov byte [esp + 0x17], al
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov al, byte [esp + 0x17]
test al, al
je 0x5b41b1
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0xb4], cl
push str.BodyVar
lea ecx, [esp + 0x154]
call fcn.005e5a90
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x154]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x32
call int.00413270
lea ecx, [esp + 0x150]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x1f0]
add eax, ebx
push ecx
lea ecx, [esp + 0x24]
mov byte [eax + 0xaf], 1
call fcn.005e6360
lea ecx, [esp + 0x1f0]
call fcn.005e5c20
lea ecx, [esp + 0x20]
call fcn.005e5790
cmp eax, 1
jne 0x5b426f
push 0
lea ecx, [esp + 0x24]
call fcn.005e5600
cmp al, 0x41
jl 0x5b426f
push 0
lea ecx, [esp + 0x24]
call fcn.005e5600
cmp al, 0x4a
jg 0x5b426f
push 0
lea ecx, [esp + 0x24]
call fcn.005e5600
mov ecx, dword [ebp + 4]
sub al, 0x40
add ecx, ebx
mov byte [ecx + 0xaf], al
lea ecx, [esp + 0x30]
call fcn.005b3190
mov byte [esp + 0x244], 0x33
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], 0
lea ecx, [ecx]
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push str.ReqFeat_d
push eax
call fcn.005e5680
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.005e5670
push eax
lea ecx, [esp + 0x164]
call fcn.005e5a90
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x164]
push edx
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x34
call fcn.00413660
lea ecx, [esp + 0x160]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x244], 0x33
call fcn.005e5c20
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5b42fe
inc byte [esp + 0x17]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 5
mov dword [esp + 0x18], eax
jl 0x5b4290
mov cl, byte [esp + 0x17]
test cl, cl
jbe 0x5b4423
mov eax, dword [ebp + 4]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0x7c]
test eax, eax
mov byte [esp + 0x28], cl
je 0x5b4344
push eax
call fcn.006fa390
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 0x1b]
add esp, 4
mov dword [eax + 0x7c], 0
movzx ecx, cl
shl ecx, 1
push ecx
call fcn.006fa7e6
mov ecx, dword [esp + 0x1c]
add esp, 4
test eax, eax
mov dword [ecx + 0x7c], eax
jne 0x5b4361
xor al, al
jmp 0x5b4365
mov al, byte [esp + 0x28]
mov byte [ecx + 0x80], al
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], 0
jmp 0x5b4380
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push str.ReqFeat_d
push eax
call fcn.005e5680
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.005e5670
push eax
lea ecx, [esp + 0x174]
call fcn.005e5a90
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x174]
push edx
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x35
call fcn.00413660
lea ecx, [esp + 0x170]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x244], 0x33
call fcn.005e5c20
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5b4411
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x17]
mov dl, byte [eax + ebx + 0x80]
add eax, ebx
cmp cl, dl
jae 0x5b440d
mov edx, dword [eax + 0x7c]
mov ax, word [esp + 0x10]
movzx ecx, cl
mov word [edx + ecx*2], ax
inc byte [esp + 0x17]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 5
mov dword [esp + 0x18], eax
jl 0x5b4380
push str.SpecFeat
lea ecx, [esp + 0x184]
call fcn.005e5a90
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x184]
push edx
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x36
call fcn.00413660
lea ecx, [esp + 0x180]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x244], 0x33
call fcn.005e5c20
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5b4482
mov eax, dword [ebp + 4]
mov cx, word [esp + 0x10]
add eax, ebx
mov word [eax + 0xb0], cx
push str.FocFeat
lea ecx, [esp + 0x194]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x194]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x37
call fcn.00413660
lea ecx, [esp + 0x190]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x244], 0x33
call fcn.005e5c20
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5b44e1
mov eax, dword [ebp + 4]
mov cx, word [esp + 0x10]
add eax, ebx
mov word [eax + 0xb2], cx
push str.DenySubrace
lea ecx, [esp + 0x1a4]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1a4]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x38
call fcn.00413660
lea ecx, [esp + 0x1a0]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x244], 0x33
call fcn.005e5c20
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5b453e
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [eax + 0xb8], ecx
push str.ArmorType
lea ecx, [esp + 0x1b4]
call fcn.005e5a90
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1b4]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x39
call int.00413270
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x244], 0x33
call fcn.005e5c20
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5b45a1
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x20]
add eax, ebx
push ecx
lea ecx, [eax + 0xbc]
call fcn.005e5c50
push str.DEXBONUS
lea ecx, [esp + 0x1c4]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c4]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x250], 0x3a
call fcn.00413660
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x244], 0x33
call fcn.005e5c20
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5b45fe
mov eax, dword [ebp + 4]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0xad], cl
lea ecx, [esp + 0x30]
mov byte [esp + 0x244], 2
call fcn.005e5c20
mov eax, dword [ebp]
inc esi
add ebx, 0xc8
cmp esi, eax
jl 0x5b32c0
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
lea ecx, [esp + 0x20]
mov dword [esp + 0x244], 0xffffffff
call fcn.005e5c20
mov ecx, dword [esp + 0x23c]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret