Function at 0x4d3220
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1d2d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
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 ebx, ecx
mov eax, dword [ebx + 0x1dc]
mov esi, dword [eax + 0x7d0]
mov dword [ebp - 0x5c], esi
test esi, esi
je 0x4d327d
push esi
push 0
call fcn.004d2f90
test al, al
jne 0x4d327d
mov eax, dword [ebx + 0x1dc]
xor esi, esi
mov dword [ebp - 0x5c], esi
mov dword [eax + 0x7d0], esi
mov eax, dword [ebx + 0x104]
lea edx, [eax + eax]
lea ecx, [edx + 1]
cmp ecx, esi
jg 0x4d3293
cmp ecx, 1
cmovg ecx, edx
test esi, esi
je 0x4d32a2
test eax, eax
jne 0x4d32a2
mov eax, 1
jmp 0x4d32a4
xor eax, eax
mov dword [ebp - 0x60], eax
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x14c]
add eax, ebx
mov dword [ebp - 0x64], eax
cmp ecx, esi
lea edi, [ecx + 1]
lea eax, [ebp - 0x58]
cmovne edi, ecx
push edi
push str.userdata_save_dSaveInfor.ghtr
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 - 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004a2020
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x4d332b
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d3321
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d34ef
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 0x4d3375
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d336b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d34ef
push ecx
push edx
call fcn.0059b718
add esp, 8
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov dword [esi - 4], edi
mov ecx, dword [ebx + 0x1dc]
mov byte [ebp - 0x58], 0
call fcn.00541a00
mov byte [esi], al
test al, al
je 0x4d347f
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push 0x5ddc34
push str.SAVE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0x5dc9d0
push str.SAVE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
lea ecx, [ebp - 0x28]
push ecx
sete al
mov byte [esi + 1], al
mov eax, dword [ebx + 0x1dc]
mov ecx, dword [eax + 0x7dc]
call fcn.004b6370
cmp dword [esi + 0x10], 4
mov eax, dword [ebx + 0x1dc]
mov eax, dword [eax + 0x7dc]
mov eax, dword [eax + 0x14]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x1dc]
mov eax, dword [eax + 0x7dc]
mov eax, dword [eax + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x1dc]
mov eax, dword [eax + 0x7dc]
mov eax, dword [eax + 0x10]
mov dword [esi + 0xc], eax
jne 0x4d346e
mov eax, dword [ebx + 0x1dc]
push edi
mov ecx, dword [eax + 0x7dc]
call fcn.004b7360
test al, al
jne 0x4d346e
mov dword [esi + 0x10], 0xfffffffe
mov eax, dword [ebx + 0x1dc]
push edi
mov ecx, dword [eax + 0x7dc]
call fcn.004b5e40
mov ecx, dword [ebx + 0x1dc]
mov ecx, dword [ecx + 0x7dc]
call fcn.004b6a00
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x4d34b6
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4d34ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d34ef
push ecx
push edx
call fcn.0059b718
add esp, 8
mov eax, dword [ebp - 0x60]
lea ecx, [edi + 1]
inc eax
add esi, 0x18
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], esi
cmp eax, 6
jge 0x4d34d3
mov esi, dword [ebp - 0x5c]
jmp 0x4d32b6
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
call fcn.005a17d1
int3