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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x71d80f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push 0x54
mov esi, ecx
call fcn.006fa7e6
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x12c], ebx
je 0x551643
push ebx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Feat
call fcn.00406d80
mov ecx, edi
call fcn.00413cc0
mov ebp, eax
jmp 0x551645
xor ebp, ebp
mov ecx, ebp
mov dword [esp + 0x12c], 0xffffffff
call int.004143b0
mov eax, dword [ebp + 0x24]
movzx edi, ax
mov word [esi + 0xa4], ax
lea eax, [edi + edi*8]
lea ecx, [eax*8 + 4]
push ecx
call fcn.006fa7e6
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x12c], 1
je 0x5516a2
push fcn.004015a0
push 0x5cd700
push edi
lea ebx, [eax + 4]
push 0x48
push ebx
mov dword [eax], edi
call fcn.006fb55f
movzx edx, word [esi + 0xa4]
shl edx, 1
push edx
mov dword [esp + 0x130], 0xffffffff
mov dword [esi + 0x90], ebx
call fcn.006fa7e6
xor ebx, ebx
add esp, 4
xor edi, edi
cmp word [esi + 0xa4], bx
mov dword [esi + 0xa0], eax
mov word [esi + 0xa6], bx
jbe 0x552036
lea ecx, [esp + 0x50]
call fcn.005b3190
push str.Name
lea ecx, [esp + 0x44]
mov dword [esp + 0x130], 2
call fcn.005e5a90
lea eax, [esp + 0x40]
push eax
mov ecx, ebp
mov byte [esp + 0x130], 3
call fcn.00413100
cmp eax, 0xffffffff
jne 0x55172c
push str.Feat
lea ecx, [esp + 0x44]
call fcn.005e5140
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x44]
push edx
push edi
mov ecx, ebp
call fcn.00413660
test eax, eax
je 0x551fec
movzx eax, word [esi + 0xa6]
mov ecx, dword [esi + 0xa0]
mov word [ecx + eax*2], di
mov eax, dword [esi + 0x90]
mov edx, dword [esp + 0x18]
inc word [esi + 0xa6]
add eax, ebx
push str.Description
lea ecx, [esp + 0xf4]
mov dword [eax + 8], edx
call fcn.005e5a90
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xf4]
push ecx
push edi
mov ecx, ebp
mov byte [esp + 0x138], 4
call fcn.00413660
lea ecx, [esp + 0xf0]
mov byte [esp + 0x12c], 3
call fcn.005e5c20
mov eax, dword [esi + 0x90]
mov edx, dword [esp + 0x18]
add eax, ebx
push str.Icon
lea ecx, [esp + 0xbc]
mov dword [eax + 0xc], edx
call fcn.005e5a90
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xbc]
push ecx
push edi
mov ecx, ebp
mov byte [esp + 0x138], 5
call int.00413270
lea ecx, [esp + 0xb8]
mov dword [esp + 0x14], eax
mov byte [esp + 0x12c], 3
call fcn.005e5c20
mov eax, dword [esp + 0x14]
test eax, eax
je 0x551842
lea ecx, [esp + 0x50]
call fcn.005e5670
push eax
lea ecx, [esp + 0x104]
call fcn.00406d80
mov eax, dword [esi + 0x90]
lea edx, [esp + 0x100]
push edx
lea ecx, [esp + 0x114]
add eax, ebx
push ecx
lea ecx, [eax + 0x18]
call fcn.00406120
push str.Category
lea ecx, [esp + 0xcc]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xcc]
push eax
push edi
mov ecx, ebp
mov byte [esp + 0x138], 6
call fcn.00413660
lea ecx, [esp + 0xc8]
mov byte [esp + 0x12c], 3
call fcn.005e5c20
mov eax, dword [esi + 0x90]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [eax + 0x10], ecx
push str.MaxCR
lea ecx, [esp + 0xdc]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xdc]
push eax
push edi
mov ecx, ebp
mov byte [esp + 0x138], 7
call fcn.00413660
lea ecx, [esp + 0xd8]
mov byte [esp + 0x12c], 3
call fcn.005e5c20
mov eax, dword [esi + 0x90]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [eax + 0x14], ecx
push str.MinAttackBonus
lea ecx, [esp + 0xe4]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xe4]
push eax
push edi
mov ecx, ebp
mov byte [esp + 0x138], 8
call fcn.00413660
lea ecx, [esp + 0xe0]
mov byte [esp + 0x12c], 3
call fcn.005e5c20
mov eax, dword [esi + 0x90]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x2c], cl
push str.MinCharLevel
lea ecx, [esp + 0x74]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x74]
push eax
push edi
mov ecx, ebp
mov byte [esp + 0x138], 9
call fcn.00413660
lea ecx, [esp + 0x70]
mov byte [esp + 0x12c], 3
call fcn.005e5c20
mov eax, dword [esi + 0x90]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x2d], cl
push str.MinSTR
lea ecx, [esp + 0xc4]
call fcn.005e5a90
mov byte [esp + 0x12c], 0xa
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc4]
push eax
push edi
mov ecx, ebp
call fcn.00413660
lea ecx, [esp + 0xc0]
mov byte [esp + 0x12c], 3
call fcn.005e5c20
mov eax, dword [esi + 0x90]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x2e], cl
push str.MinDEX
lea ecx, [esp + 0x84]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x84]
push eax
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0xb
call fcn.00413660
lea ecx, [esp + 0x80]
mov byte [esp + 0x12c], 3
call fcn.005e5c20
mov eax, dword [esi + 0x90]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x2f], cl
push str.MinINT
lea ecx, [esp + 0x5c]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x5c]
push eax
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0xc
call fcn.00413660
lea ecx, [esp + 0x58]
mov byte [esp + 0x12c], 3
call fcn.005e5c20
mov eax, dword [esi + 0x90]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x30], cl
push str.MinWIS
lea ecx, [esp + 0x94]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x94]
push eax
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0xd
call fcn.00413660
lea ecx, [esp + 0x90]
mov byte [esp + 0x12c], 3
call fcn.005e5c20
mov eax, dword [esi + 0x90]
mov cl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x31], cl
push str.PrereqFeat1
lea ecx, [esp + 0xd4]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xd4]
push eax
mov byte [esp + 0x134], 0xe
push edi
mov ecx, ebp
call fcn.00413660
lea ecx, [esp + 0xd0]
mov dword [esp + 0x14], eax
mov byte [esp + 0x12c], 3
call fcn.005e5c20
mov eax, dword [esp + 0x14]
test eax, eax
je 0x551b17
mov eax, dword [esi + 0x90]
mov cx, word [esp + 0x10]
add eax, ebx
mov word [eax + 0x38], cx
push str.PrereqFeat2
lea ecx, [esp + 0xa4]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xa4]
push eax
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0xf
call fcn.00413660
lea ecx, [esp + 0xa0]
mov dword [esp + 0x14], eax
mov byte [esp + 0x12c], 3
call fcn.005e5c20
mov eax, dword [esp + 0x14]
test eax, eax
je 0x551b76
mov eax, dword [esi + 0x90]
mov cx, word [esp + 0x10]
add eax, ebx
mov word [eax + 0x3a], cx
lea ecx, [esp + 0x30]
call fcn.005b3190
mov byte [esp + 0x12c], 0x10
mov dword [esp + 0x14], 0
nop
push str.OrReqFeat
lea ecx, [esp + 0x34]
call fcn.005e5140
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0xec]
call fcn.005e5bc0
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0xfc]
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x134], 0x11
call fcn.005e5d10
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x130], 0x12
call fcn.005e5c50
lea ecx, [esp + 0xf8]
mov byte [esp + 0x12c], 0x11
call fcn.005e5c20
lea ecx, [esp + 0xe8]
mov byte [esp + 0x12c], 0x10
call fcn.005e5c20
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push eax
push edi
mov ecx, ebp
call fcn.00413660
test eax, eax
je 0x551c3e
mov eax, dword [esi + 0x90]
mov cl, byte [esp + 0x14]
add eax, ebx
cmp cl, 5
jae 0x551c3e
mov dx, word [esp + 0x10]
movzx ecx, cl
mov word [eax + ecx*2 + 0x3c], dx
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 5
mov dword [esp + 0x14], eax
jl 0x551b90
push str.REQSKILL
lea ecx, [esp + 0xb4]
call fcn.005e5a90
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xb4]
push ecx
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0x13
call fcn.00413660
lea ecx, [esp + 0xb0]
mov dword [esp + 0x14], eax
mov byte [esp + 0x12c], 0x10
call fcn.005e5c20
mov eax, dword [esp + 0x14]
test eax, eax
je 0x551caf
mov eax, dword [esi + 0x90]
mov dx, word [esp + 0x10]
add eax, ebx
mov word [eax + 0x46], dx
push str.SUCCESSOR
lea ecx, [esp + 0x64]
call fcn.005e5a90
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x64]
push ecx
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0x14
call fcn.00413660
lea ecx, [esp + 0x60]
mov dword [esp + 0x14], eax
mov byte [esp + 0x12c], 0x10
call fcn.005e5c20
mov eax, dword [esp + 0x14]
test eax, eax
je 0x551d02
mov eax, dword [esi + 0x90]
mov edx, dword [esp + 0x10]
add eax, ebx
mov dword [eax], edx
push str.GainMultiple
lea ecx, [esp + 0x6c]
call fcn.005e5a90
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0x15
call fcn.00413660
lea ecx, [esp + 0x68]
mov byte [esp + 0x12c], 0x10
call fcn.005e5c20
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 1
mov eax, dword [esi + 0x90]
mov edx, dword [eax + ebx + 0x28]
sete cl
add eax, ebx
push str.MinSpellLvl
xor edx, ecx
mov ecx, dword [eax + 0x28]
and edx, 1
xor ecx, edx
mov dword [eax + 0x28], ecx
lea ecx, [esp + 0x7c]
call fcn.005e5a90
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x7c]
push ecx
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0x16
call fcn.00413660
lea ecx, [esp + 0x78]
mov byte [esp + 0x12c], 0x10
call fcn.005e5c20
mov eax, dword [esi + 0x90]
add eax, ebx
push str.AllClassesCanUse
lea ecx, [esp + 0x8c]
mov byte [eax + 0x32], 0
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x8c]
push eax
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0x17
call fcn.00413660
lea ecx, [esp + 0x88]
mov byte [esp + 0x12c], 0x10
call fcn.005e5c20
mov eax, dword [esi + 0x90]
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx]
mov ecx, dword [eax + ebx + 0x28]
add eax, ebx
xor edx, ecx
and edx, 2
xor ecx, edx
mov dword [eax + 0x28], ecx
push str.SpellId
lea ecx, [esp + 0x9c]
call fcn.005e5a90
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0x18
call fcn.00413660
lea ecx, [esp + 0x98]
mov dword [esp + 0x14], eax
mov byte [esp + 0x12c], 0x10
call fcn.005e5c20
mov eax, dword [esp + 0x14]
test eax, eax
je 0x551e61
mov eax, dword [esi + 0x90]
mov edx, dword [esp + 0x10]
add eax, ebx
mov dword [eax + 4], edx
push str.UsesPerDay
lea ecx, [esp + 0xac]
call fcn.005e5a90
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xac]
push ecx
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0x19
call fcn.00413660
lea ecx, [esp + 0xa8]
mov dword [esp + 0x14], eax
mov byte [esp + 0x12c], 0x10
call fcn.005e5c20
mov eax, dword [esp + 0x14]
test eax, eax
je 0x551ebe
mov eax, dword [esi + 0x90]
mov dl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x33], dl
push str.MASTERFEAT
lea ecx, [esp + 0x3c]
call fcn.005e5a90
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0x1a
call fcn.00413660
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], eax
mov byte [esp + 0x12c], 0x10
call fcn.005e5c20
mov eax, dword [esp + 0x14]
test eax, eax
mov eax, dword [esi + 0x90]
je 0x551f14
mov dl, byte [esp + 0x10]
add eax, ebx
mov byte [eax + 0x34], dl
jmp 0x551f1a
add eax, ebx
mov byte [eax + 0x34], 0xff
push str.TargetSelf
lea ecx, [esp + 0x2c]
call fcn.005e5a90
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0x1b
call fcn.00413660
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], eax
mov byte [esp + 0x12c], 0x10
call fcn.005e5c20
mov eax, dword [esp + 0x14]
test eax, eax
je 0x551f7f
mov eax, dword [esi + 0x90]
mov edx, dword [esp + 0x10]
add eax, ebx
lea ecx, [edx*4]
mov edx, dword [eax + 0x28]
xor ecx, edx
and ecx, 4
xor edx, ecx
mov dword [eax + 0x28], edx
push str.HostileFeat
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0x1c
call fcn.00413660
lea ecx, [esp + 0x20]
mov byte [esp + 0x12c], 0x10
call fcn.005e5c20
mov eax, dword [esi + 0x90]
mov ecx, dword [esp + 0x10]
lea edx, [ecx*8]
mov ecx, dword [eax + ebx + 0x28]
add eax, ebx
xor edx, ecx
and edx, 8
xor ecx, edx
mov dword [eax + 0x28], ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x12c], 3
call fcn.005e5c20
jmp 0x551ffe
mov eax, dword [esi + 0x90]
mov ecx, dword [eax + ebx + 0x28]
add eax, ebx
and ecx, 0xffffffef
mov dword [eax + 0x28], ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x12c], 2
call fcn.005e5c20
lea ecx, [esp + 0x50]
mov dword [esp + 0x12c], 0xffffffff
call fcn.005e5c20
movzx eax, word [esi + 0xa4]
inc edi
add ebx, 0x48
cmp edi, eax
jl 0x5516e3
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
push 0x54
call fcn.006fa7e6
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
mov dword [esp + 0x12c], 0x1d
je 0x55207e
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push str.MasterFeats
call fcn.00406d80
mov ecx, edi
call fcn.00413cc0
mov ebp, eax
jmp 0x552080
xor ebp, ebp
mov ecx, ebp
mov dword [esp + 0x12c], 0xffffffff
call int.004143b0
mov eax, dword [ebp + 0x24]
mov byte [esi + 0xa8], al
movsx eax, al
shl eax, 2
push eax
call fcn.006fa7e6
movsx ecx, byte [esi + 0xa8]
shl ecx, 2
push ecx
mov dword [esi + 0x94], eax
call fcn.006fa7e6
movsx edi, byte [esi + 0xa8]
mov edx, edi
shl edx, 4
push edx
mov dword [esi + 0x98], eax
call fcn.006fa7e6
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x14], ebx
test ebx, ebx
mov dword [esp + 0x12c], 0x1e
je 0x552110
dec edi
test edi, edi
mov dword [esp + 0x18], ebx
jl 0x552112
inc edi
mov ecx, dword [esp + 0x18]
call fcn.00405ed0
mov ecx, dword [esp + 0x18]
add ecx, 0x10
dec edi
mov dword [esp + 0x18], ecx
jne 0x5520f7
jmp 0x552112
xor ebx, ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x12c], 0xffffffff
mov dword [esi + 0x9c], ebx
call fcn.005b3190
mov al, byte [esi + 0xa8]
xor edi, edi
test al, al
mov dword [esp + 0x12c], 0x1f
jle 0x552247
xor ebx, ebx
lea esp, [esp]
push str.STRREF
lea ecx, [esp + 0x24]
call fcn.005e5a90
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0x20
call fcn.00413660
lea ecx, [esp + 0x20]
mov byte [esp + 0x12c], 0x1f
call fcn.005e5c20
mov edx, dword [esi + 0x94]
mov eax, dword [esp + 0x1c]
push str.DESCRIPTION
lea ecx, [esp + 0x2c]
mov dword [edx + edi*4], eax
call fcn.005e5a90
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0x21
call fcn.00413660
lea ecx, [esp + 0x28]
mov byte [esp + 0x12c], 0x1f
call fcn.005e5c20
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x98]
mov dword [eax + edi*4], ecx
push str.ICON
lea ecx, [esp + 0x3c]
call fcn.005e5a90
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
mov ecx, ebp
mov byte [esp + 0x138], 0x22
call int.00413270
lea ecx, [esp + 0x38]
mov byte [esp + 0x12c], 0x1f
call fcn.005e5c20
lea ecx, [esp + 0x48]
call fcn.005e5670
push eax
lea ecx, [esp + 0x114]
push ecx
mov ecx, dword [esi + 0x9c]
add ecx, ebx
call fcn.00406290
movsx edx, byte [esi + 0xa8]
inc edi
add ebx, 0x10
cmp edi, edx
jl 0x552150
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
lea ecx, [esp + 0x48]
mov dword [esp + 0x12c], 0xffffffff
call fcn.005e5c20
mov ecx, dword [esp + 0x124]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret