Function at 0x1002d9e0
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 0x10061d60
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x148
mov eax, dword [0x1007c080]
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 - 0x138], esi
mov edi, dword [ebx + 8]
mov dword [ebp - 0x140], edi
call fcn.1002e470
mov eax, dword [esi + 0x60]
cmp eax, dword [esi + 0x64]
je 0x1002da42
mov dword [esi + 0x64], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x134], eax
push 0x1006ea0c
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.100054b0
mov eax, dword [ebp - 0x134]
cmp dword [eax + 0x14], 0xf
jbe 0x1002da7c
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 0x1002da91
mov edx, dword [edi]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x130]
push eax
push 0x1006b0e9
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x134], eax
cmp ecx, 0xf
jbe 0x1002dae5
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002dadb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002dd0f
push ecx
push edx
call fcn.10037ca8
add esp, 8
cmp dword [ebp - 0x134], 0
mov eax, dword [edi + 0x14]
jne 0x1002db0b
cmp eax, 0xf
jbe 0x1002daf8
mov edi, dword [edi]
push edi
push str.The_spellset___s__does_not_exist
call fcn.100187e0
add esp, 8
jmp 0x1002dcef
mov ecx, edi
cmp eax, 0xf
jbe 0x1002db14
mov ecx, dword [edi]
push ecx
push str.Loading_spellset___s_
call fcn.100187e0
add esp, 8
mov dword [ebp - 0x134], 0xb32
xor edi, edi
nop
mov eax, dword [esi]
sub esp, 0x18
mov ecx, edi
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x154], esp
lea esi, [ebp - 0x17]
mov dword [ebp - 0x148], esp
mov dword [ebp - 0x13c], ecx
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x13c]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [esi], al
mov eax, edx
mov dword [ebp - 0x13c], eax
test eax, eax
jne 0x1002db52
push ecx
mov ecx, dword [ebp - 0x148]
lea eax, [ebp - 0x17]
push eax
push esi
call fcn.1000aeb0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push dword [ebp - 0x140]
call fcn.10002f20
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 4], 0xffffffff
call fcn.10030620
movzx esi, ax
test si, si
je 0x1002dc7f
mov eax, dword [0x7f94cc]
mov ecx, dword [ebp - 0x134]
mov eax, dword [eax + 0x88]
movzx eax, word [ecx + eax]
cmp ax, si
je 0x1002dc25
cmp si, 0xffff
je 0x1002dc25
cmp ax, 0xffff
je 0x1002dbfb
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 eax, dword [eax + 0x88]
add eax, 0x732
movzx ecx, word [eax]
cmp ecx, esi
je 0x1002dc48
inc edx
add eax, 2
cmp edx, 0x200
jb 0x1002dc12
mov esi, dword [ebp - 0x138]
mov eax, dword [ebp - 0x134]
inc edi
add eax, 2
mov dword [ebp - 0x134], eax
cmp eax, 0xb42
jb 0x1002db30
jmp 0x1002dc9c
mov esi, dword [ebp - 0x138]
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], edi
mov eax, dword [esi + 0x64]
cmp eax, dword [esi + 0x68]
je 0x1002dc6d
mov dword [eax], edx
mov dword [eax + 4], edi
add dword [esi + 0x64], 8
jmp 0x1002dc2b
lea ecx, [ebp - 0x150]
push ecx
push eax
lea ecx, [esi + 0x60]
call fcn.10010a40
jmp 0x1002dc2b
mov eax, dword [ebp - 0x140]
cmp dword [eax + 0x14], 0xf
jbe 0x1002dc8d
mov eax, dword [eax]
push edi
push eax
push str.Error_loading_spellset___s__spell_id_at_index___i__is_0
call fcn.100187e0
add esp, 0xc
mov ecx, dword [ebp - 0x138]
mov eax, dword [ecx + 0x64]
sub eax, dword [ecx + 0x60]
test eax, 0xfffffff8
je 0x1002dcef
mov eax, dword [0x7f94cc]
movzx eax, byte [eax + 0xb1]
mov dword [ecx + 0x6c], eax
mov eax, dword [ecx + 0x64]
mov ecx, dword [0x63d64c]
mov esi, dword [eax - 4]
mov edi, dword [eax - 8]
test ecx, ecx
je 0x1002dcde
cmp byte [ecx + 0x50], 0
jne 0x1002dcde
mov eax, 0x43441f
call eax
mov ecx, dword [0x63d64c]
mov eax, 0x434a05
push 0
push esi
push edi
call eax
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.10037c60
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.1003ef14
int3