Function at 0x1001f790
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b333
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x10061080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1e0], esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1d8]
push 0xb0
push 0
push eax
mov dword [ebp - 0x1e8], edi
call fcn.10025bf0
add esp, 8
lea ecx, [ebp - 0x1d8]
call fcn.1000ff40
mov edx, 0x100562cc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.100087b0
mov ecx, dword [0x7f94cc]
lea edx, [ecx + 1]
mov ecx, eax
call fcn.100087b0
mov edx, str._spellsets.ini
mov ecx, eax
call fcn.100087b0
mov esi, dword [esi]
lea ecx, [ebp - 0x1c0]
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x1e4], eax
push eax
call fcn.10007740
mov ecx, esi
call fcn.1001f490
mov esi, dword [ebp - 0x1e0]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x1001f853
mov dword [esi + 0x10], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x1dc], eax
push 0x10056130
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.100033f0
mov eax, dword [ebp - 0x1dc]
cmp dword [eax + 0x14], 0xf
jbe 0x1001f88d
mov eax, dword [eax]
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov edx, edi
cmova ecx, dword [ebp - 0x28]
cmp dword [edi + 0x14], 0xf
jbe 0x1001f8a2
mov edx, dword [edi]
push eax
push 0x100
lea eax, [ebp - 0x128]
push eax
push 0x100554d5
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1dc], eax
cmp ecx, 0xf
jbe 0x1001f8fc
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001f8ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001fb77
push ecx
push edx
call fcn.10023e4d
mov eax, dword [ebp - 0x1dc]
add esp, 8
test eax, eax
jne 0x1001f972
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.10007740
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
cmova eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 0xf
jbe 0x1001f926
mov edi, dword [edi]
push eax
push edi
push str.The_spellset___s__does_not_exist_in___s_
call fcn.10012420
mov ecx, dword [ebp - 0x14]
add esp, 0xc
cmp ecx, 0xf
jbe 0x1001fb4f
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001f963
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001fb7c
push ecx
push edx
call fcn.10023e4d
add esp, 8
jmp 0x1001fb4f
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x1001f97c
mov eax, dword [edi]
push eax
push str.Loading_spellset___s_
call fcn.10012420
add esp, 8
mov dword [ebp - 0x1dc], 0xb32
xor edi, edi
nop word [eax + eax]
mov eax, dword [esi]
sub esp, 0x18
mov dword [ebp - 0x1e4], eax
lea esi, [ebp - 0x13]
mov dword [ebp - 0x1f8], esp
mov ecx, edi
mov dword [ebp - 0x1ec], 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 0x1001f9c0
push ecx
mov ecx, dword [ebp - 0x1ec]
lea eax, [ebp - 0x13]
push eax
push esi
call fcn.1000e760
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push dword [ebp - 0x1e8]
call fcn.10002c20
mov ecx, dword [ebp - 0x1e4]
mov byte [ebp - 4], 0
call fcn.10020230
movzx esi, ax
test si, si
je 0x1001fadf
mov ecx, dword [ebp - 0x1dc]
mov eax, 0x7f94cc
mov eax, dword [eax]
mov eax, dword [eax + 0x88]
movzx eax, word [ecx + eax]
cmp ax, si
je 0x1001fa85
cmp si, 0xffff
je 0x1001fa85
cmp ax, 0xffff
je 0x1001fa5a
mov ecx, dword [0x63d648]
xor edx, edx
push edi
call dword [0x10061bb4]
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 0x1001faa8
inc edx
add ecx, 2
cmp edx, 0xfa
jb 0x1001fa72
mov esi, dword [ebp - 0x1e0]
mov eax, dword [ebp - 0x1dc]
inc edi
add eax, 2
mov dword [ebp - 0x1dc], eax
cmp eax, 0xb42
jb 0x1001f9a0
jmp 0x1001fafc
mov esi, dword [ebp - 0x1e0]
mov dword [ebp - 0x1f4], edx
mov dword [ebp - 0x1f0], edi
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
je 0x1001facd
mov dword [eax], edx
mov dword [eax + 4], edi
add dword [esi + 0x10], 8
jmp 0x1001fa8b
lea ecx, [ebp - 0x1f4]
push ecx
push eax
lea ecx, [esi + 0xc]
call fcn.10003bc0
jmp 0x1001fa8b
mov eax, dword [ebp - 0x1e8]
cmp dword [eax + 0x14], 0xf
jbe 0x1001faed
mov eax, dword [eax]
push edi
push eax
push str.Error_loading_spellset___s__spell_id_at_index___i__is_0
call fcn.10012420
add esp, 0xc
mov esi, dword [ebp - 0x1e0]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
test eax, 0xfffffff8
je 0x1001fb4f
mov eax, dword [0x7f94cc]
movzx eax, byte [eax + 0xb1]
mov dword [esi + 8], eax
mov ecx, dword [0x63d64c]
test ecx, ecx
je 0x1001fb36
cmp byte [ecx + 0x50], 0
jne 0x1001fb36
xor edx, edx
call dword [0x10061b8c]
mov eax, dword [esi + 0x10]
xor edx, edx
mov ecx, dword [0x63d64c]
push 0
push dword [eax - 4]
push dword [eax - 8]
call dword [0x10061bbc]
lea ecx, [ebp - 0x1d8]
call fcn.1000ea30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10023e0a
mov esp, ebp
pop ebp
ret 4
call fcn.10028d39
call fcn.10028d39
int3