Function at 0x4581ea
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x5f17bc
call fcn.0059d590
sub esp, 0x1a0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x458a8b
push ebx
lea edi, [esi + 0x110]
call sub.MSVCRT.dll_strlen
pop ecx
add eax, ebx
push eax
push ebx
mov ecx, edi
call fcn.004029af
call fcn.0051bd44
push dword [eax + 0x10c]
lea eax, [ebp - 0x58]
push str._sRecord
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [ebp - 0x58]
push 0x5b
push eax
call ebx
add esp, 0x14
test eax, eax
je 0x458262
push 1
push 0x67a54c
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [ebp - 0x58]
push 0x5d
push eax
call ebx
pop ecx
test eax, eax
pop ecx
je 0x458281
push 1
push 0x67a548
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push 1
lea ecx, [esi + 0x8c250]
call fcn.004a8f44
push dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [ebp - 0x58]
push 0xffffffffffffffff
push str.RecordAmount
push eax
call ebx
cmp eax, 0xffffffff
je 0x458a27
push dword [edi]
lea eax, [ebp - 0x58]
push 0xffffffffffffffff
push str.MusicRecord
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4582dd
push eax
lea ecx, [esi + 0x23fdc]
call fcn.004df1ac
push dword [ebp + 8]
call dword [sym.imp.NDSound.dll__DXSetMusicVolume_4]
push dword [ebp + 8]
jmp 0x4582f4
push 0x32
lea ecx, [esi + 0x23fdc]
call fcn.004df1ac
push 0x32
call dword [sym.imp.NDSound.dll__DXSetMusicVolume_4]
push 0x32
call fcn.004ecdc8
pop ecx
lea eax, [ebp - 0x58]
push dword [edi]
push 0xffffffffffffffff
push str.EffectRecord
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x458322
push eax
lea ecx, [esi + 0x2405c]
call fcn.004df1ac
push dword [ebp + 8]
jmp 0x458331
push 0x50
lea ecx, [esi + 0x2405c]
call fcn.004df1ac
push 0x50
call dword [sym.imp.NDSound.dll__DXSetSoundVolume_4]
push dword [edi]
lea eax, [ebp - 0x58]
push 1
push str.MusicSwitch
push eax
call ebx
cmp eax, 1
mov dword [ebp + 8], eax
je 0x458352
and dword [ebp + 8], 0
push dword [ebp + 8]
lea ecx, [esi + 0x23b74]
call fcn.004a8f44
cmp dword [ebp + 8], 1
sete al
push eax
call fcn.004ecdb8
pop ecx
lea eax, [ebp - 0x58]
push dword [edi]
push 0xffffffffffffffff
push str.ShadowRecord
push eax
call ebx
cmp eax, 0xffffffff
je 0x458387
mov dword [0x680b44], eax
push dword [edi]
lea eax, [ebp - 0x58]
push 0xffffffffffffffff
push str.MapModeRecord
push eax
call ebx
cmp eax, 1
jne 0x4583ae
push eax
lea ecx, [esi + 0x8c1dc]
call fcn.004a8f44
mov ecx, esi
call fcn.004571e5
push dword [edi]
lea eax, [ebp - 0x58]
push 0xffffffffffffffff
push str.TalkModeRecord
push eax
call ebx
test eax, eax
jne 0x4583d4
push eax
lea ecx, [esi + 0x8c168]
call fcn.004a8f44
mov ecx, esi
call fcn.00485e19
push dword [edi]
lea eax, [ebp - 0x58]
push 0xffffffffffffffff
push str.PkModeRecord
push eax
call ebx
push 1
push 3
cmp eax, 0xffffffff
call fcn.0051bd44
mov ecx, eax
call fcn.0051a226
push dword [edi]
lea eax, [ebp - 0x58]
push 0xffffffffffffffff
push str.ShiftRecord
push eax
call ebx
cmp eax, 0xffffffff
je 0x458426
test eax, eax
je 0x458426
push 1
lea ecx, [esi + 0x23be8]
call fcn.004a8f44
lea ecx, [esi + 0x23920]
call fcn.00492767
push dword [edi]
lea eax, [ebp - 0x58]
push 0xffffffffffffffff
push str.KoShowRecord
push eax
call ebx
cmp eax, 0xffffffff
je 0x458443
test eax, eax
mov dword [0x680c80], eax
je 0x45845b
push 1
lea ecx, [esi + 0x23c5c]
call fcn.004a8f44
lea ecx, [esi + 0x23920]
call fcn.0049279e
push dword [edi]
lea eax, [ebp - 0x58]
push 0xffffffffffffffff
push str.ChatColorRecord
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x45878d
and byte [ebp - 0x24], 0
xor eax, eax
lea edi, [ebp - 0x23]
mov ecx, 0x989680
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
cdq
idiv ecx
mov ebx, str.Image36_d
test eax, eax
jle 0x4584f5
mov ecx, eax
imul ecx, ecx, 0xff676980
add dword [ebp - 0x10], ecx
dec eax
mov dword [ebp + 8], eax
mov dword [esi + 0x4e550], eax
call fcn.0040311a
mov ecx, dword [ebp + 8]
push dword [esi + ecx*4 + 0x4e574]
mov ecx, eax
push 0x7d6
call fcn.004db135
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push ebx
push 0xf
push eax
call edi
and byte [ebp - 0x15], 0
add esp, 0x10
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x4f16c]
push 0
push 0
push eax
call fcn.004b2a66
mov eax, dword [ebp - 0x10]
mov ecx, 0xf4240
cdq
idiv ecx
test eax, eax
jle 0x45855a
mov ecx, eax
imul ecx, ecx, 0xfff0bdc0
add dword [ebp - 0x10], ecx
dec eax
mov dword [ebp + 8], eax
mov dword [esi + 0x4e554], eax
call fcn.0040311a
mov ecx, dword [ebp + 8]
push dword [esi + ecx*4 + 0x4e574]
mov ecx, eax
push 0x7e5
call fcn.004db135
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push ebx
push 0xf
push eax
call edi
and byte [ebp - 0x15], 0
add esp, 0x10
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x4f0b0]
push 0
push 0
push eax
call fcn.004b2a66
mov eax, dword [ebp - 0x10]
mov ecx, 0x186a0
cdq
idiv ecx
test eax, eax
jle 0x4585bf
mov ecx, eax
imul ecx, ecx, 0xfffe7960
add dword [ebp - 0x10], ecx
dec eax
mov dword [ebp + 8], eax
mov dword [esi + 0x4e558], eax
call fcn.0040311a
mov ecx, dword [ebp + 8]
push dword [esi + ecx*4 + 0x4e574]
mov ecx, eax
push 0x7d7
call fcn.004db135
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push ebx
push 0xf
push eax
call edi
and byte [ebp - 0x15], 0
add esp, 0x10
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x4ed04]
push 0
push 0
push eax
call fcn.004b2a66
mov eax, dword [ebp - 0x10]
mov ecx, 0x2710
cdq
idiv ecx
mov ecx, eax
imul ecx, ecx, 0xffffd8f0
add dword [ebp - 0x10], ecx
dec eax
mov dword [ebp + 8], eax
mov dword [esi + 0x4e55c], eax
call fcn.0040311a
mov ecx, dword [ebp + 8]
push dword [esi + ecx*4 + 0x4e574]
mov ecx, eax
push 0x7d9
call fcn.004db135
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push ebx
push 0xf
push eax
call edi
and byte [ebp - 0x15], 0
add esp, 0x10
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x4ee7c]
push 0
push 0
push eax
call fcn.004b2a66
mov eax, dword [ebp - 0x10]
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, eax
imul ecx, ecx, 0xfffffc18
add dword [ebp - 0x10], ecx
dec eax
mov dword [ebp + 8], eax
mov dword [esi + 0x4e560], eax
call fcn.0040311a
mov ecx, dword [ebp + 8]
push dword [esi + ecx*4 + 0x4e574]
mov ecx, eax
push 0x7d4
call fcn.004db135
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push ebx
push 0xf
push eax
call edi
and byte [ebp - 0x15], 0
add esp, 0x10
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x4eb8c]
push 0
push 0
push eax
call fcn.004b2a66
mov eax, dword [ebp - 0x10]
push 0x64
cdq
pop ecx
idiv ecx
mov ecx, eax
imul ecx, ecx, 0xffffff9c
add dword [ebp - 0x10], ecx
dec eax
mov dword [ebp + 8], eax
mov dword [esi + 0x4e564], eax
call fcn.0040311a
mov ecx, dword [ebp + 8]
push dword [esi + ecx*4 + 0x4e574]
mov ecx, eax
push 0x7d3
call fcn.004db135
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push ebx
push 0xf
push eax
call edi
and byte [ebp - 0x15], 0
add esp, 0x10
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x4ec48]
push 0
push 0
push eax
call fcn.004b2a66
mov eax, dword [ebp - 0x10]
push 0xa
cdq
pop ecx
idiv ecx
mov ecx, eax
imul ecx, ecx, 0xfffffff6
add dword [ebp - 0x10], ecx
dec eax
mov dword [ebp + 8], eax
mov dword [esi + 0x4e568], eax
call fcn.0040311a
mov ecx, dword [ebp + 8]
push dword [esi + ecx*4 + 0x4e574]
mov ecx, eax
push 0x7d1
call fcn.004db135
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push ebx
push 0xf
push eax
call edi
and byte [ebp - 0x15], 0
add esp, 0x10
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x4edc0]
push 0
push 0
push eax
call fcn.004b2a66
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp + 8], eax
mov dword [esi + 0x4e56c], eax
call fcn.0040311a
mov ecx, dword [ebp + 8]
push dword [esi + ecx*4 + 0x4e574]
mov ecx, eax
push 0x7d2
call fcn.004db135
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push ebx
push 0xf
push eax
call edi
and byte [ebp - 0x15], 0
add esp, 0x10
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x4ef38]
push 0
push 0
push eax
call fcn.004b2a66
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x617450
push 0xffffffffffffffff
push str.InterfaceRecord
push str.Interface
call ebx
cmp eax, 0xffffffff
je 0x4587d9
mov dword [esi + 0x23984], eax
inc eax
push eax
lea eax, [ebp - 0x34]
push str.Button101_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x34]
lea ecx, [esi + 0x23a3c]
push eax
call fcn.004a8b7d
lea ecx, [esi + 0x23920]
call fcn.004927d5
mov dword [ebp + 8], 1
push 1
lea ecx, [esi + 0x89f84]
pop eax
push eax
push dword [ebp + 8]
call fcn.004b1e2f
test eax, eax
jne 0x45892e
push dword [ebp + 8]
lea eax, [ebp - 0x78]
push str.QItem_dRecord
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x78]
push dword [esi + 0x110]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x58]
push eax
call ebx
mov ecx, eax
cmp ecx, 0xffffffff
mov dword [ebp - 0x14], ecx
je 0x458921
push 0xa
cdq
pop edi
idiv edi
xor edi, edi
sub edx, edi
je 0x458879
dec edx
je 0x458873
dec edx
je 0x45886d
dec edx
jne 0x458921
push edi
push edi
push 3
push 3
push edi
mov eax, ecx
push 0xa
cdq
pop ecx
idiv ecx
lea ecx, [esi + 0x89f84]
push eax
push dword [ebp + 8]
push 1
call fcn.004b1e59
jmp 0x458921
push edi
push edi
push 2
jmp 0x45884c
push edi
push edi
push 1
jmp 0x45884c
mov dword [ebp - 0x10], edi
call fcn.0051bd44
lea ecx, [eax + 0xa44]
call fcn.00416f8f
test eax, eax
jle 0x458921
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0051bd44
mov ecx, eax
call fcn.0052d545
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
je 0x4588c0
mov eax, dword [ebp - 0x14]
push 0xa
cdq
pop ecx
idiv ecx
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0xc], eax
je 0x4588ea
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp ecx, edi
je 0x4588d0
call fcn.004039fd
inc dword [ebp - 0x10]
call fcn.0051bd44
lea ecx, [eax + 0xa44]
call fcn.00416f8f
cmp dword [ebp - 0x10], eax
jl 0x458894
jmp 0x458921
push 1
push edi
push edi
call fcn.005315d7
push eax
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x10]
cdq
push 0xa
pop ecx
idiv ecx
lea ecx, [esi + 0x89f84]
push eax
push dword [ebp + 8]
push 1
call fcn.004b1e59
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp ecx, edi
je 0x458921
call fcn.004039fd
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xa
jle 0x4587e0
push dword [esi + 0x110]
lea eax, [ebp - 0x1ac]
push 0x132
push eax
push 0x68f370
lea eax, [ebp - 0x58]
push str.TalkListRecord
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x1ac], 0
je 0x458a8b
push 0
push 0
push 0x18b
push dword [esi + 0x312a0]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x458a8b
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [ebp - 0x1ac]
push 0x7c
push eax
call edi
lea ecx, [ebp - 0x1ac]
mov dword [ebp - 0x10], eax
sub eax, ecx
mov ebx, dword [sym.imp.MSVCRT.dll_strncpy]
mov dword [ebp + 8], eax
push eax
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x68]
push eax
call ebx
mov eax, dword [ebp + 8]
and byte [ebp + eax - 0x68], 0
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x18
and dword [ebp + 8], 0
mov dword [ebp - 0x14], eax
push 0x10
pop eax
cmp dword [ebp - 0x14], eax
jg 0x4589d8
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 8], eax
jge 0x458a8b
mov eax, dword [ebp - 0x10]
push 0x7c
inc eax
push eax
mov dword [ebp - 0x38], eax
call edi
mov dword [ebp - 0x10], eax
sub eax, dword [ebp - 0x38]
push eax
mov dword [ebp - 0x18], eax
push dword [ebp - 0x38]
lea eax, [ebp - 0x68]
push eax
call ebx
mov eax, dword [ebp - 0x18]
add esp, 0x14
and byte [ebp + eax - 0x68], 0
lea eax, [ebp - 0x68]
push eax
push 0
push 0x180
push dword [esi + 0x312a0]
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [ebp + 8]
jmp 0x4589cd
push dword [edi]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
push dword [edi]
lea eax, [ebp - 0x58]
push str._RecordAmount1
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
push 0x32
lea ecx, [esi + 0x23fdc]
call fcn.004df1ac
push 0x32
call dword [sym.imp.NDSound.dll__DXSetMusicVolume_4]
push 0x32
call fcn.004ecdc8
pop ecx
push 0x50
lea ecx, [esi + 0x2405c]
call fcn.004df1ac
push 0x50
call dword [sym.imp.NDSound.dll__DXSetSoundVolume_4]
push 1
push 3
call fcn.0051bd44
mov ecx, eax
call fcn.0051a226
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4