Function at 0x457220
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [ecx + 0x108]
sub esp, 0x180
test eax, eax
je 0x457503
mov eax, dword [0x68c568]
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_sprintf]
push esi
mov ecx, dword [eax + 4]
lea edx, [esp + 8]
push ecx
push 0x680528
push 0x5fa588
push edx
call ebx
mov eax, dword [0x680b34]
add esp, 0x10
test eax, eax
jne 0x45747a
mov eax, dword [0x68c568]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [eax + 0x1c]
cmp ecx, 5
ja case.0x45727e.3
jmp dword [ecx*4 + 0x45750c]
lea eax, [esp + 0xc]
mov esi, 0xff
push eax
push esi
push 0x5fcc64
push 0x5fcc58
call edi
lea ecx, [esp + 0xc]
mov dword [0x69530c], eax
push ecx
push esi
push 0x5fcc50
push 0x5fcc58
call edi
lea edx, [esp + 0xc]
mov dword [0x695310], eax
push edx
push esi
push 0x5fcc48
push 0x5fcc58
call edi
mov dword [0x695314], eax
jmp case.0x45727e.3
cmp dword [eax + 0x20], 2
je 0x4572ea
mov ecx, dword [eax + 0xa8]
cmp ecx, 0x1a
je 0x4572ea
cmp ecx, 0x1c
jne 0x4572fb
mov eax, dword [eax + 4]
push eax
push 0x6805ac
call fcn.0041df80
add esp, 8
lea ecx, [esp + 0xc]
mov esi, 0xff
push ecx
push esi
push 0x5fcc64
push 0x5fcc58
call edi
lea edx, [esp + 0xc]
mov dword [0x69530c], eax
push edx
push esi
push 0x5fcc50
push 0x5fcc58
call edi
mov dword [0x695310], eax
lea eax, [esp + 0xc]
push eax
push esi
push 0x5fcc48
push 0x5fcc58
call edi
lea ecx, [esp + 0xc]
mov dword [0x695314], eax
push ecx
jmp 0x457362
mov edx, dword [eax + 4]
push edx
push 0x6805ac
call fcn.0041df80
add esp, 8
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
push 0x5fcc40
push 0x5fcc58
call edi
mov dword [0x5fa54c], eax
jmp case.0x45727e.3
mov ecx, dword [eax + 4]
push ebp
push ecx
push 0x6805ac
lea edx, [esp + 0x98]
push 0x5fcc34
push edx
call ebx
mov ebp, dword [sym.imp.msvcrt.dll_fopen]
lea eax, [esp + 0xa0]
push 0x536d9c
push eax
call ebp
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4573cd
mov ecx, dword [0x71b8ec]
push esi
push 0x10000
push ecx
call fcn.0041c600
push esi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 0x10
mov eax, dword [0x71b894]
test eax, eax
je 0x457420
push 0x5fa594
push 0x680528
lea edx, [esp + 0x118]
push 0x5fa588
push edx
call ebx
lea eax, [esp + 0x120]
push 0x536d9c
push eax
call ebp
mov esi, eax
add esp, 0x18
test esi, esi
je 0x457420
mov ecx, dword [0x71b8ec]
push esi
push 0x10
push ecx
call fcn.0041c600
push esi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push 0xff
push 0x5fcc30
push 0x5fcc58
call edi
mov ecx, dword [0x680a0c]
pop ebp
test ecx, ecx
je 0x457445
and al, 0xbf
jmp 0x457447
or al, 0x40
mov byte [0x537a5c], al
mov ecx, dword [0x695324]
lea eax, [esp + 0xc]
push eax
push ecx
push 0x5fcc20
push 0x5fcc58
call edi
mov edx, dword [0x68c568]
mov dword [0x695324], eax
mov dword [edx + 0x28], eax
call fcn.0043dd70
pop edi
jmp case.0x457488.3
mov ecx, dword [0x68c568]
mov eax, dword [ecx + 0x1c]
cmp eax, 5
ja case.0x457488.3
jmp dword [eax*4 + 0x457524]
mov esi, 0xff
mov dword [0x69530c], esi
mov dword [0x695310], esi
mov dword [0x695314], esi
jmp case.0x457488.3
mov esi, 0xff
mov dword [0x69530c], esi
mov eax, dword [ecx + 0xa8]
sub eax, 0x2d
mov dword [0x695314], esi
neg eax
sbb eax, eax
and eax, 0xc0
add eax, 0x3f
mov dword [0x695310], eax
mov dword [0x5fa54c], 0xffffffff
jmp case.0x457488.3
mov byte [0x537a5c], 0xff
mov esi, dword [0x71b874]
mov ecx, esi
call fcn.0043b220
lea ecx, [esp + 8]
push 0
push ecx
mov ecx, esi
call fcn.00439f20
pop esi
pop ebx
add esp, 0x180
ret