Function at 0x5459e9
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x604e33
call fcn.0059d590
sub esp, 0x5bc
and byte [ebp - 0xb8], 0
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0xb7]
and byte [ebp - 0x5c8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5c7]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, str.ini_Questinfo.ini
xor edi, edi
push esi
mov eax, str.TotalMission
push edi
push eax
push eax
call ebx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1a]
push edi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call fcn.004ece61
push esi
push edi
push str.RecommendInterval
push str.Option
mov byte [ebp - 4], 2
call ebx
mov ecx, dword [ebp - 0x14]
push esi
push edi
mov dword [ecx + 8], eax
mov eax, str.ActionBase
push eax
push eax
call ebx
mov ecx, dword [ebp - 0x14]
push 1
mov dword [ecx + 4], eax
pop eax
cmp dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], eax
jl 0x54606f
jmp 0x545a9c
xor edi, edi
push dword [ebp - 0x18]
lea eax, [ebp - 0xb8]
push 0x676adc
push 0x7f
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [ebp - 0x188]
call fcn.005453a8
push esi
push edi
lea eax, [ebp - 0xb8]
push str.TypeId
push eax
mov byte [ebp - 4], 3
call ebx
mov dword [ebp - 0x184], eax
push esi
push edi
lea eax, [ebp - 0xb8]
push str.CompleteFlag
push eax
call ebx
mov word [ebp - 0x152], ax
push esi
push edi
lea eax, [ebp - 0xb8]
push str.TaskNameColor
push eax
call ebx
mov dword [ebp - 0x178], eax
push esi
push edi
lea eax, [ebp - 0xb8]
push str.MissionId
push eax
call ebx
mov dword [ebp - 0x188], eax
push esi
push edi
lea eax, [ebp - 0xb8]
push str.Lv_min
push eax
call ebx
mov dword [ebp - 0x180], eax
push esi
push edi
lea eax, [ebp - 0xb8]
push str.Lv_max
push eax
call ebx
mov dword [ebp - 0x17c], eax
push esi
push edi
lea eax, [ebp - 0xb8]
push str.First
push eax
call ebx
mov dword [ebp - 0x170], eax
push esi
push edi
lea eax, [ebp - 0xb8]
push 0x682798
push eax
call ebx
mov dword [ebp - 0x16c], eax
push esi
push edi
lea eax, [ebp - 0xb8]
push str.Auto
push eax
call ebx
mov dword [ebp - 0x168], eax
push esi
push edi
lea eax, [ebp - 0xb8]
push 0x68278c
push eax
call ebx
mov dword [ebp - 0x164], eax
push esi
push edi
lea eax, [ebp - 0xb8]
push str.ActivityType
push eax
call ebx
mov dword [ebp - 0x174], eax
push esi
push edi
lea eax, [ebp - 0xb8]
push str.FinishTime
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x150], eax
push esi
lea eax, [ebp - 0x5c8]
push 0x400
push eax
push 0x68f370
lea eax, [ebp - 0xb8]
push 0x68212c
push eax
call edi
and byte [ebp - 0x1c9], 0
lea eax, [ebp - 0x5c8]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x5c8]
push eax
lea eax, [ebp - 0x5c8]
push eax
lea ecx, [ebp - 0x148]
call fcn.004029af
push esi
lea eax, [ebp - 0x5c8]
push 0x400
push eax
push 0x68f370
lea eax, [ebp - 0xb8]
push str.ActivityBeginTime
push eax
call edi
and byte [ebp - 0x1c9], 0
lea eax, [ebp - 0x5c8]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x5c8]
push eax
lea eax, [ebp - 0x5c8]
push eax
lea ecx, [ebp - 0xe8]
call fcn.004029af
push esi
lea eax, [ebp - 0x5c8]
push 0x400
push eax
push 0x68f370
lea eax, [ebp - 0xb8]
push str.ActivityEndTime
push eax
call edi
and byte [ebp - 0x1c9], 0
lea eax, [ebp - 0x5c8]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x5c8]
push eax
lea eax, [ebp - 0x5c8]
push eax
lea ecx, [ebp - 0xdc]
call fcn.004029af
push esi
lea eax, [ebp - 0x5c8]
push 0x400
push eax
push 0x68f370
push str.IntentionDesp
lea eax, [ebp - 0xb8]
push eax
call edi
and byte [ebp - 0x1c9], 0
lea eax, [ebp - 0x5c8]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x5c8]
push eax
lea eax, [ebp - 0x5c8]
push eax
lea ecx, [ebp - 0x13c]
call fcn.004029af
push esi
lea eax, [ebp - 0x5c8]
push 0x400
push eax
push 0x68f370
lea eax, [ebp - 0xb8]
push 0x682734
push eax
call edi
and byte [ebp - 0x1c9], 0
lea eax, [ebp - 0x5c8]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x5c8]
push eax
lea eax, [ebp - 0x5c8]
push eax
lea ecx, [ebp - 0x130]
call fcn.004029af
push esi
lea eax, [ebp - 0x5c8]
push 0x400
push eax
push 0x68f370
lea eax, [ebp - 0xb8]
push str.Prequest
push eax
call edi
and byte [ebp - 0x1c9], 0
lea eax, [ebp - 0x5c8]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x5c8]
push eax
lea eax, [ebp - 0x5c8]
push eax
lea ecx, [ebp - 0x124]
call fcn.004029af
push esi
lea eax, [ebp - 0x5c8]
push 0x400
push eax
push 0x68f370
lea eax, [ebp - 0xb8]
push str.BeginNpcId
push eax
call edi
and byte [ebp - 0x1c9], 0
lea eax, [ebp - 0x5c8]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x5c8]
push eax
lea eax, [ebp - 0x5c8]
push eax
lea ecx, [ebp - 0x118]
call fcn.004029af
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push 0x2c
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.005458a5
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
je 0x545e22
push dword [eax]
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov dword [ebp - 0x15c], eax
push esi
lea eax, [ebp - 0x5c8]
push 0x400
push eax
push 0x68f370
lea eax, [ebp - 0xb8]
push str.FinishNpcId
push eax
call edi
and byte [ebp - 0x1c9], 0
lea eax, [ebp - 0x5c8]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x5c8]
push eax
lea eax, [ebp - 0x5c8]
push eax
lea ecx, [ebp - 0x10c]
call fcn.004029af
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push 0x2c
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.005458a5
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
je 0x545e9c
push dword [eax]
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov dword [ebp - 0x158], eax
push esi
lea eax, [ebp - 0x5c8]
push 0x400
push eax
push 0x68f370
lea eax, [ebp - 0xb8]
push str.Prize
push eax
call edi
and byte [ebp - 0x1c9], 0
lea eax, [ebp - 0x5c8]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x5c8]
push eax
lea eax, [ebp - 0x5c8]
push eax
lea ecx, [ebp - 0x100]
call fcn.004029af
push esi
lea eax, [ebp - 0x5c8]
push 0x400
push eax
push 0x68f370
lea eax, [ebp - 0xb8]
push 0x6826fc
push eax
call edi
and byte [ebp - 0x1c9], 0
lea eax, [ebp - 0x5c8]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x5c8]
push eax
lea eax, [ebp - 0x5c8]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004029af
push esi
push 0
lea eax, [ebp - 0xb8]
push str.IntentAmount
push eax
call ebx
and byte [ebp - 0x1c8], 0
push 0xf
mov dword [ebp - 0x160], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
stosb byte es:[edi], al
pop eax
cmp dword [ebp - 0x160], eax
mov dword [ebp - 0x10], eax
jl 0x546012
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c8]
push str.Intention_d
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x5c8]
and byte [ebp - 0x189], 0
push esi
push 0x400
push eax
lea eax, [ebp - 0x1c8]
push 0x68f370
push eax
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
and byte [ebp - 0x1c9], 0
lea eax, [ebp - 0x19]
lea ecx, [ebp - 0x38]
push eax
lea eax, [ebp - 0x5c8]
push eax
mov byte [ebp - 4], 4
call fcn.00402bfa
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 5
call fcn.0040deae
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.00402b84
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x160]
mov byte [ebp - 4], 3
jle 0x545f78
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0xd0]
push eax
call fcn.004606e8
and dword [eax], 0
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 7
jle 0x546016
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x188]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0xc]
call fcn.00546e17
mov ecx, eax
call fcn.00546175
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 2
call fcn.0054608a
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jle 0x545a9a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405ff9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret