Function at 0x4b6540
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce875
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x6229a0]
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 edi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x74], ebx
call fcn.004b6ac0
mov ecx, edi
call fcn.004b6a00
push ebx
lea eax, [ebp - 0x58]
push str.userdata_save_d_
push eax
call fcn.004f8210
mov esi, eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.004e5800
add esp, 0x10
push esi
push eax
push dword [ebp - 0x78]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.004a2020
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x4b65ec
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b65e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b69f2
push ecx
push edx
call fcn.0059b718
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x4b6636
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b662c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b69f2
push ecx
push edx
call fcn.0059b718
add esp, 8
push str.SaveInfor.ghtr
lea eax, [ebp - 0x70]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], 0xf
push eax
mov byte [ebp - 0x58], 0
call fcn.004a1f40
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
call fcn.004e5300
add esp, 0x10
test al, al
je 0x4b66d7
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0x5dc9d0
push str.SAVE
call esi
cmp eax, 1
sete al
cmp dword [ebp - 0x14], 0x10
mov byte [edi + 4], al
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push 0x5ddc34
push str.SAVE
call esi
mov dword [edi + 8], eax
cmp eax, 4
jne 0x4b66c5
push ebx
mov ecx, edi
call fcn.004b7360
test al, al
je 0x4b66d7
cmp dword [edi + 8], 4
jle 0x4b6756
push ebx
mov ecx, edi
call fcn.004b5e40
xor bl, bl
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4b670d
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b6703
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b69f7
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x4b69d2
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b69c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b69f7
jmp 0x4b69c8
mov dword [edi], ebx
mov esi, 1
mov dword [edi + 0x14], 0
lea ebx, [edi + 0x18]
push 0
push esi
lea eax, [ebp - 0x28]
push str.LevelScore
push eax
call fcn.004b6220
mov dword [ebx], eax
lea ebx, [ebx + 4]
add dword [edi + 0x14], eax
inc esi
add esp, 0x10
cmp esi, 0x96
jle 0x4b6767
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push str.GameLevel
push str.SAVE
call ebx
cmp dword [ebp - 0x14], 0x10
mov dword [edi + 0x270], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push str.MaxLevel
push str.SAVE
call ebx
cmp dword [ebp - 0x14], 0x10
mov dword [edi + 0x274], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push str.DoTutorialFinal
push str.SAVE
call ebx
cmp eax, 1
sete al
cmp dword [edi + 0x270], 0
mov byte [edi + 0x317], al
je 0x4b6828
mov byte [edi + 0x317], 0
mov ecx, dword [edi + 0x274]
cmp ecx, 9
jge 0x4b684a
mov dword [edi + 0xc], 1
cmp ecx, 4
jge 0x4b683c
mov dword [edi + 0x10], 0
jmp 0x4b6851
test al, al
je 0x4b6808
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
jmp 0x4b6851
xor eax, eax
cmp ecx, 6
setge al
inc eax
mov dword [edi + 0x10], eax
jmp 0x4b6851
mov dword [edi + 0xc], 2
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push str.MajoristOK
push str.SAVE
call ebx
cmp eax, 1
sete al
cmp dword [ebp - 0x14], 0x10
mov byte [edi + 0x318], al
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push str.SwampStep
push str.SAVE
call ebx
mov dword [edi + 0x278], eax
xor esi, esi
nop dword [eax]
push 0
push esi
lea eax, [ebp - 0x28]
push str.ModeB
push eax
call fcn.004b6220
cmp eax, 1
push 0
sete al
push esi
mov byte [edi + esi + 0x2b1], al
lea eax, [ebp - 0x28]
push str.ModeC
push eax
call fcn.004b6220
add esp, 0x20
cmp eax, 1
sete al
mov byte [edi + esi + 0x2e4], al
inc esi
cmp esi, 0x33
jl 0x4b68a0
xor esi, esi
lea ebx, [edi + 0x27c]
nop dword [eax]
push 0
push esi
lea eax, [ebp - 0x28]
push 0x5ddc60
push eax
call fcn.004b6220
inc esi
mov dword [ebx], eax
add esp, 0x10
lea ebx, [ebx + 4]
cmp esi, 5
jl 0x4b68f0
xor esi, esi
lea ebx, [edi + 0x290]
push 0
push esi
lea eax, [ebp - 0x28]
push str.Point
push eax
call fcn.004b6220
inc esi
mov dword [ebx], eax
add esp, 0x10
lea ebx, [ebx + 4]
cmp esi, 5
jl 0x4b6917
xor esi, esi
push 0
push esi
lea eax, [ebp - 0x28]
push str.Hidden
push eax
call fcn.004b6220
add esp, 0x10
cmp eax, 1
sete al
mov byte [edi + esi + 0x2a8], al
inc esi
cmp esi, 9
jl 0x4b6938
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmovae eax, dword [ebp - 0x28]
push eax
push 0xffffffffffffffff
push str.PotatoMine
push str.SAVE
call esi
cmp dword [ebp - 0x14], 0x10
mov dword [edi + 0x2a4], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push str.PlayingTime
push str.EXTRA
call esi
mov ecx, dword [ebp - 0x74]
mov bl, 1
mov dword [edi + 0x31c], eax
mov eax, dword [0x66577c]
mov dword [eax + 0x7d0], ecx
mov eax, dword [0x66577c]
mov cl, byte [edi + 4]
mov byte [eax + 0x7c2], cl
jmp 0x4b66d9
push ecx
push edx
call fcn.0059b718
add esp, 8
mov al, bl
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.0059b734
mov esp, ebp
pop ebp
ret 4
call fcn.005a17d1
call fcn.005a17d1
int3