Function at 0x10028690
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057ca3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1f8
mov eax, dword [0x10070080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1e8], esi
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x1e0]
push 0xb0
push 0
push eax
mov dword [ebp - 0x1f0], edi
call fcn.10031db0
add esp, 8
lea ecx, [ebp - 0x1e0]
call fcn.10012b50
mov edx, 0x10063fec
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1d0]
call fcn.10004f20
mov ecx, dword [0x7f94cc]
lea edx, [ecx + 1]
mov ecx, eax
call fcn.10004f20
mov edx, str._spellsets.ini
mov ecx, eax
call fcn.10004f20
mov esi, dword [esi]
lea ecx, [ebp - 0x1c8]
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x1ec], eax
push eax
call fcn.10003e40
mov ecx, esi
call fcn.10022f70
mov esi, dword [ebp - 0x1e8]
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x50]
je 0x10028767
mov dword [esi + 0x50], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x1e4], eax
push 0x10064008
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.100054b0
mov eax, dword [ebp - 0x1e4]
cmp dword [eax + 0x14], 0xf
jbe 0x100287a1
mov eax, dword [eax]
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
mov edx, edi
cmova ecx, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 0xf
jbe 0x100287b6
mov edx, dword [edi]
push eax
push 0x100
lea eax, [ebp - 0x130]
push eax
push 0x10061029
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1e4], eax
cmp ecx, 0xf
jbe 0x10028810
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10028800
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10028a89
push ecx
push edx
call fcn.100300c8
mov eax, dword [ebp - 0x1e4]
add esp, 8
test eax, eax
jne 0x10028886
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c8]
call fcn.10003e40
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
cmova eax, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 0xf
jbe 0x1002883a
mov edi, dword [edi]
push eax
push edi
push str.The_spellset___s__does_not_exist_in___s_
call fcn.10015000
mov ecx, dword [ebp - 0x18]
add esp, 0xc
cmp ecx, 0xf
jbe 0x10028a5e
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10028877
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10028a8e
push ecx
push edx
call fcn.100300c8
add esp, 8
jmp 0x10028a5e
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x10028890
mov eax, dword [edi]
push eax
push str.Loading_spellset___s_
call fcn.10015000
add esp, 8
mov dword [ebp - 0x1e4], 0xb32
xor edi, edi
nop word [eax + eax]
mov eax, dword [esi]
sub esp, 0x18
mov dword [ebp - 0x1ec], eax
lea esi, [ebp - 0x17]
mov dword [ebp - 0x200], esp
mov ecx, edi
mov dword [ebp - 0x1f4], esp
nop dword [eax]
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
mov ah, dl
shl al, 2
add ah, al
add ah, ah
sub cl, ah
add cl, 0x30
mov byte [esi], cl
mov ecx, edx
test ecx, ecx
jne 0x100288d0
push ecx
mov ecx, dword [ebp - 0x1f4]
lea eax, [ebp - 0x17]
push eax
push esi
call fcn.10007470
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push dword [ebp - 0x1f0]
call fcn.10002f20
mov ecx, dword [ebp - 0x1ec]
mov byte [ebp - 4], 0
call fcn.1002b160
movzx esi, ax
test si, si
je 0x100289ee
mov ecx, dword [ebp - 0x1e4]
mov eax, 0x7f94cc
mov eax, dword [eax]
mov eax, dword [eax + 0x88]
movzx eax, word [ecx + eax]
cmp ax, si
je 0x10028994
cmp si, 0xffff
je 0x10028994
cmp ax, 0xffff
je 0x10028969
mov ecx, dword [0x63d648]
mov eax, 0x40a662
push edi
call eax
mov eax, 0x7f94cc
movsx esi, si
xor edx, edx
mov eax, dword [eax]
mov ecx, dword [eax + 0x88]
add ecx, 0x732
movzx eax, word [ecx]
cmp eax, esi
je 0x100289b7
inc edx
add ecx, 2
cmp edx, 0x200
jb 0x10028981
mov esi, dword [ebp - 0x1e8]
mov eax, dword [ebp - 0x1e4]
inc edi
add eax, 2
mov dword [ebp - 0x1e4], eax
cmp eax, 0xb42
jb 0x100288b0
jmp 0x10028a0b
mov esi, dword [ebp - 0x1e8]
mov dword [ebp - 0x1fc], edx
mov dword [ebp - 0x1f8], edi
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x54]
je 0x100289dc
mov dword [eax], edx
mov dword [eax + 4], edi
add dword [esi + 0x50], 8
jmp 0x1002899a
lea ecx, [ebp - 0x1fc]
push ecx
push eax
lea ecx, [esi + 0x4c]
call fcn.1000d990
jmp 0x1002899a
mov eax, dword [ebp - 0x1f0]
cmp dword [eax + 0x14], 0xf
jbe 0x100289fc
mov eax, dword [eax]
push edi
push eax
push str.Error_loading_spellset___s__spell_id_at_index___i__is_0
call fcn.10015000
add esp, 0xc
mov esi, dword [ebp - 0x1e8]
mov eax, dword [esi + 0x50]
sub eax, dword [esi + 0x4c]
test eax, 0xfffffff8
je 0x10028a5e
mov eax, dword [0x7f94cc]
movzx eax, byte [eax + 0xb1]
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x50]
mov ecx, dword [0x63d64c]
mov esi, dword [eax - 4]
mov edi, dword [eax - 8]
test ecx, ecx
je 0x10028a4d
cmp byte [ecx + 0x50], 0
jne 0x10028a4d
mov eax, 0x43441f
call eax
mov ecx, dword [0x63d64c]
mov eax, 0x434a05
push 0
push esi
push edi
call eax
lea ecx, [ebp - 0x1e0]
call fcn.10010e80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10030080
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.10037284
call fcn.10037284
int3