Function at 0x10049440
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ec155
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10120140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x10159894
call fcn.1004ca90
mov ecx, 0x101583a4
call fcn.1004ca90
call fcn.1005e350
movzx edx, al
xor ecx, ecx
call fcn.100482e0
push 1
call fcn.1005e360
movzx edx, ax
mov ecx, 5
call fcn.100482e0
push 2
call fcn.1005e360
movzx edx, ax
mov ecx, 6
call fcn.100482e0
push 3
call fcn.1005e360
movzx edx, ax
mov ecx, 7
call fcn.100482e0
push 4
call fcn.1005e360
movzx edx, ax
mov ecx, 8
call fcn.100482e0
mov ecx, 0x10149b28
call fcn.1004d320
push dword [ebp - 0x18]
mov edi, eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.1004f290
mov ecx, eax
call fcn.10045da0
push dword [ebp - 0x18]
mov esi, eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.1004f1e0
mov ecx, eax
call fcn.10045d20
push eax
lea ecx, [ebp - 0x58]
call fcn.1004d550
mov ecx, eax
call fcn.1004d320
push edi
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [ebp - 0x58]
mov bl, al
call fcn.1004d4a0
xor esi, esi
movsx ebx, bl
mov dword [ebp - 0x1c], esi
test ebx, ebx
jle 0x10049666
nop word [eax + eax]
mov ecx, 0x10149b28
call fcn.1004d320
push esi
sub esp, 0x18
mov edi, eax
mov esi, esp
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.1004f3e0
mov ecx, eax
call fcn.10045ce0
push eax
mov ecx, esi
call fcn.1004d550
lea eax, [ebp - 0x70]
push eax
call fcn.10045c00
add esp, 0x20
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.1004d320
push dword [ebp - 0x18]
mov esi, eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.1004f330
mov ecx, eax
call fcn.10045d20
push eax
lea ecx, [ebp - 0x58]
call fcn.1004d550
mov ecx, eax
call fcn.1004d320
push edi
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x18], esi
call fcn.1004d4a0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
call fcn.1004d4a0
test esi, esi
je 0x10049657
push ecx
lea ecx, [ebp - 0x14]
call fcn.100486f0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.100486e0
mov ecx, 0x10159894
mov esi, dword [eax]
lea eax, [ebp - 0x28]
push eax
call fcn.1004ca50
mov ecx, 0x10159894
mov edx, dword [eax]
lea eax, [ebp - 0x2c]
push eax
call fcn.1004ca70
push esi
push edx
lea ecx, [ebp - 0x14]
push dword [eax]
call fcn.1004f440
add esp, 0xc
lea eax, [ebp - 0x20]
mov ecx, 0x10159894
push eax
call fcn.1004ca50
push eax
lea ecx, [ebp - 0x14]
call fcn.1004c8e0
test al, al
je 0x10049657
lea ecx, [ebp - 0x14]
call fcn.1004c8d0
mov eax, dword [eax]
mov byte [eax + 0x10], 1
mov esi, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, ebx
jl 0x10049550
mov ecx, 0x10149b28
call fcn.1004d320
push dword [ebp - 0x20]
lea ecx, [ebp - 0x40]
mov edi, eax
push str.SkillDataCount
call fcn.1004f570
mov ecx, eax
call fcn.10045da0
push dword [ebp - 0x20]
mov esi, eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.1004f4b0
mov ecx, eax
call fcn.10045de0
push eax
lea ecx, [ebp - 0x70]
call fcn.1004d550
mov ecx, eax
call fcn.1004d320
push edi
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [ebp - 0x70]
mov bl, al
call fcn.1004d4a0
xor esi, esi
movsx ebx, bl
mov dword [ebp - 0x1c], esi
test ebx, ebx
jle 0x100497ec
mov ecx, 0x10149b28
call fcn.1004d320
push esi
sub esp, 0x18
mov edi, eax
mov esi, esp
push dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.1004f700
mov ecx, eax
call fcn.10045ce0
push eax
mov ecx, esi
call fcn.1004d550
lea eax, [ebp - 0x58]
push eax
call fcn.10045c00
add esp, 0x20
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.1004d320
push dword [ebp - 0x20]
mov esi, eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.1004f640
mov ecx, eax
call fcn.10045de0
push eax
lea ecx, [ebp - 0x70]
call fcn.1004d550
mov ecx, eax
call fcn.1004d320
push edi
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x18], esi
call fcn.1004d4a0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.1004d4a0
test esi, esi
je 0x100497dd
push ecx
lea ecx, [ebp - 0x14]
call fcn.100486f0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100486e0
mov ecx, 0x101583a4
mov esi, dword [eax]
lea eax, [ebp - 0x28]
push eax
call fcn.1004ca50
mov ecx, 0x101583a4
mov edx, dword [eax]
lea eax, [ebp - 0x24]
push eax
call fcn.1004ca70
push esi
push edx
lea ecx, [ebp - 0x14]
push dword [eax]
call fcn.1004f440
add esp, 0xc
lea eax, [ebp - 0x30]
mov ecx, 0x101583a4
push eax
call fcn.1004ca50
push eax
lea ecx, [ebp - 0x14]
call fcn.1004c8e0
test al, al
je 0x100497dd
lea ecx, [ebp - 0x14]
call fcn.1004c8d0
mov eax, dword [eax]
mov byte [eax + 0x10], 1
mov esi, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, ebx
jl 0x100496d6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c0cd4
mov esp, ebp
pop ebp
ret