Function at 0x10049010
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e88c5
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1011b140]
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, 0x10154880
call fcn.1004b600
mov ecx, 0x10153390
call fcn.1004b600
call fcn.1005b410
movzx edx, al
xor ecx, ecx
call fcn.10047eb0
push 1
call fcn.1005b420
movzx edx, ax
mov ecx, 5
call fcn.10047eb0
push 2
call fcn.1005b420
movzx edx, ax
mov ecx, 6
call fcn.10047eb0
push 3
call fcn.1005b420
movzx edx, ax
mov ecx, 7
call fcn.10047eb0
push 4
call fcn.1005b420
movzx edx, ax
mov ecx, 8
call fcn.10047eb0
mov ecx, 0x10144b08
call fcn.1004be20
push dword [ebp - 0x18]
mov edi, eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.1004daf0
mov ecx, eax
call fcn.10045da0
push dword [ebp - 0x18]
mov esi, eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.1004da40
mov ecx, eax
call fcn.10045d20
push eax
lea ecx, [ebp - 0x58]
call fcn.1004c050
mov ecx, eax
call fcn.1004be20
push edi
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [ebp - 0x58]
mov bl, al
call fcn.1004bfa0
xor esi, esi
movsx ebx, bl
mov dword [ebp - 0x1c], esi
test ebx, ebx
jle 0x10049236
nop word [eax + eax]
mov ecx, 0x10144b08
call fcn.1004be20
push esi
sub esp, 0x18
mov edi, eax
mov esi, esp
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.1004dc40
mov ecx, eax
call fcn.10045ce0
push eax
mov ecx, esi
call fcn.1004c050
lea eax, [ebp - 0x70]
push eax
call fcn.10045c00
add esp, 0x20
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.1004be20
push dword [ebp - 0x18]
mov esi, eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.1004db90
mov ecx, eax
call fcn.10045d20
push eax
lea ecx, [ebp - 0x58]
call fcn.1004c050
mov ecx, eax
call fcn.1004be20
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.1004bfa0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
call fcn.1004bfa0
test esi, esi
je 0x10049227
push ecx
lea ecx, [ebp - 0x14]
call fcn.100482c0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.100482b0
mov ecx, 0x10154880
mov esi, dword [eax]
lea eax, [ebp - 0x28]
push eax
call fcn.1004b5c0
mov ecx, 0x10154880
mov edx, dword [eax]
lea eax, [ebp - 0x2c]
push eax
call fcn.1004b5e0
push esi
push edx
lea ecx, [ebp - 0x14]
push dword [eax]
call fcn.1004dca0
add esp, 0xc
lea eax, [ebp - 0x20]
mov ecx, 0x10154880
push eax
call fcn.1004b5c0
push eax
lea ecx, [ebp - 0x14]
call fcn.1004b450
test al, al
je 0x10049227
lea ecx, [ebp - 0x14]
call fcn.1004b440
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 0x10049120
mov ecx, 0x10144b08
call fcn.1004be20
push dword [ebp - 0x20]
lea ecx, [ebp - 0x40]
mov edi, eax
push str.SkillDataCount
call fcn.1004ddd0
mov ecx, eax
call fcn.10045da0
push dword [ebp - 0x20]
mov esi, eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.1004dd10
mov ecx, eax
call fcn.10045de0
push eax
lea ecx, [ebp - 0x70]
call fcn.1004c050
mov ecx, eax
call fcn.1004be20
push edi
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [ebp - 0x70]
mov bl, al
call fcn.1004bfa0
xor esi, esi
movsx ebx, bl
mov dword [ebp - 0x1c], esi
test ebx, ebx
jle 0x100493bc
mov ecx, 0x10144b08
call fcn.1004be20
push esi
sub esp, 0x18
mov edi, eax
mov esi, esp
push dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.1004df60
mov ecx, eax
call fcn.10045ce0
push eax
mov ecx, esi
call fcn.1004c050
lea eax, [ebp - 0x58]
push eax
call fcn.10045c00
add esp, 0x20
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.1004be20
push dword [ebp - 0x20]
mov esi, eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.1004dea0
mov ecx, eax
call fcn.10045de0
push eax
lea ecx, [ebp - 0x70]
call fcn.1004c050
mov ecx, eax
call fcn.1004be20
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.1004bfa0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.1004bfa0
test esi, esi
je 0x100493ad
push ecx
lea ecx, [ebp - 0x14]
call fcn.100482c0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100482b0
mov ecx, 0x10153390
mov esi, dword [eax]
lea eax, [ebp - 0x28]
push eax
call fcn.1004b5c0
mov ecx, 0x10153390
mov edx, dword [eax]
lea eax, [ebp - 0x24]
push eax
call fcn.1004b5e0
push esi
push edx
lea ecx, [ebp - 0x14]
push dword [eax]
call fcn.1004dca0
add esp, 0xc
lea eax, [ebp - 0x30]
mov ecx, 0x10153390
push eax
call fcn.1004b5c0
push eax
lea ecx, [ebp - 0x14]
call fcn.1004b450
test al, al
je 0x100493ad
lea ecx, [ebp - 0x14]
call fcn.1004b440
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 0x100492a6
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.100bd374
mov esp, ebp
pop ebp
ret