Function at 0x10006940
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 0x10055c7d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x178
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 dword [ebp - 0x150], ecx
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0x14c]
push 0x1a
xorps xmm0, xmm0
mov dword [ebp - 0x13c], 0
push str.LeftTurnSpellbookAutostand
movups xmmword [ebp - 0x14c], xmm0
mov dword [ebp - 0x138], 0
call fcn.100054b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x134]
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x124], 0
push 0x100611e8
movups xmmword [ebp - 0x134], xmm0
mov dword [ebp - 0x120], 0
call fcn.100054b0
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x100069fb
mov edx, dword [esi]
cmp dword [ebp - 0x138], 0xf
lea ecx, [ebp - 0x14c]
push edx
cmova ecx, dword [ebp - 0x14c]
lea edx, [ebp - 0x118]
cmp dword [ebp - 0x120], 0xf
lea eax, [ebp - 0x134]
push 0x100
cmova eax, dword [ebp - 0x134]
push edx
push 0x10061029
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x120]
mov edi, eax
cmp ecx, 0xf
jbe 0x10006a79
mov edx, dword [ebp - 0x134]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006a6f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006f70
push ecx
push edx
call fcn.100300c8
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
cmp ecx, 0xf
jbe 0x10006ad5
mov edx, dword [ebp - 0x14c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006acb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006f70
push ecx
push edx
call fcn.100300c8
add esp, 8
test edi, edi
jne 0x10006bf5
push 0x1a
xorps xmm0, xmm0
mov byte [ebp - 0x119], 0
push str.LeftTurnSpellbookAutostand
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x13c], edi
movups xmmword [ebp - 0x14c], xmm0
mov dword [ebp - 0x138], edi
call fcn.100054b0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x134]
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x124], edi
push 0x100611e8
movups xmmword [ebp - 0x134], xmm0
mov dword [ebp - 0x120], edi
call fcn.100054b0
lea eax, [ebp - 0x119]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x14c]
mov ecx, esi
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.10007180
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x120]
cmp ecx, 0xf
jbe 0x10006b99
mov edx, dword [ebp - 0x134]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006b8f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006f75
push ecx
push edx
call fcn.100300c8
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
cmp ecx, 0xf
jbe 0x10006bf5
mov edx, dword [ebp - 0x14c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006beb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006f75
push ecx
push edx
call fcn.100300c8
add esp, 8
push 0x1b
xorps xmm0, xmm0
mov dword [ebp - 0x13c], 0
push str.RightTurnSpellbookAutostand
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x138], 0
movups xmmword [ebp - 0x14c], xmm0
call fcn.100054b0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x134]
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x124], 0
push 0x100611e8
movups xmmword [ebp - 0x134], xmm0
mov dword [ebp - 0x120], 0
call fcn.100054b0
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x10006c66
mov edx, dword [esi]
cmp dword [ebp - 0x138], 0xf
lea ecx, [ebp - 0x14c]
push edx
cmova ecx, dword [ebp - 0x14c]
lea edx, [ebp - 0x118]
cmp dword [ebp - 0x120], 0xf
lea eax, [ebp - 0x134]
push 0x100
cmova eax, dword [ebp - 0x134]
push edx
push 0x10061029
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x120]
mov edi, eax
cmp ecx, 0xf
jbe 0x10006ce4
mov edx, dword [ebp - 0x134]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006cda
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006f7a
push ecx
push edx
call fcn.100300c8
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
cmp ecx, 0xf
jbe 0x10006d40
mov edx, dword [ebp - 0x14c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006d36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006f7a
push ecx
push edx
call fcn.100300c8
add esp, 8
test edi, edi
jne 0x10006e7b
push 0x1b
xorps xmm0, xmm0
mov byte [ebp - 0x119], 0
push str.RightTurnSpellbookAutostand
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x178], edi
movups xmmword [ebp - 0x188], xmm0
mov dword [ebp - 0x174], edi
call fcn.100054b0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x170]
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x160], edi
push 0x100611e8
movups xmmword [ebp - 0x170], xmm0
mov dword [ebp - 0x15c], edi
call fcn.100054b0
lea eax, [ebp - 0x119]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x188]
mov ecx, esi
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.10007180
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x15c]
cmp ecx, 0xf
jbe 0x10006e04
mov edx, dword [ebp - 0x170]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006dfa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006f7f
push ecx
push edx
call fcn.100300c8
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x174]
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0xf
mov byte [ebp - 0x170], 0
cmp ecx, 0xf
jbe 0x10006e60
mov edx, dword [ebp - 0x188]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006e56
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006f7f
push ecx
push edx
call fcn.100300c8
add esp, 8
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0xf
mov byte [ebp - 0x188], 0
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x154], esp
push 0x1a
movups xmmword [ecx], xmm0
push str.LeftTurnSpellbookAutostand
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.100054b0
sub esp, 0x18
mov dword [ebp - 4], 6
mov ecx, esp
xorps xmm0, xmm0
push 4
movups xmmword [ecx], xmm0
push 0x100611e8
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.100054b0
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.10007290
mov edi, dword [ebp - 0x150]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x158], esp
xorps xmm0, xmm0
mov byte [edi], al
push 0x1b
movups xmmword [ecx], xmm0
push str.RightTurnSpellbookAutostand
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.100054b0
sub esp, 0x18
mov dword [ebp - 4], 7
mov ecx, esp
xorps xmm0, xmm0
push 4
movups xmmword [ecx], xmm0
push 0x100611e8
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.100054b0
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.10007290
mov byte [edi + 1], al
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
call fcn.10037284
call fcn.10037284
int3