Function at 0x4c1baa
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x290
mov eax, 0x4c9f03
call fcn.004c5467
mov dword [ebp - 0x280], edx
mov dword [ebp - 0x278], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x27c], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x254]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
xor eax, eax
mov word [ebp - 0x254], ax
or dword [ebp - 4], 0xffffffff
mov ebx, 0x100
mov byte [ebp - 0x219], cl
mov edi, ebx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
xor eax, eax
mov word [ebp - 0x234], ax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
push 0xf
push 0x4747c0
call fcn.004adf88
test al, al
je 0x4c1d12
push ecx
push ebx
jmp 0x4c1d85
push dword [ebp - 0x23c]
push edi
push dword [ebp - 0x25c]
push 0
push 0x474810
push 0x4747ec
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x274], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x4c1d72
cmp byte [ebp - 0x219], 0
jne 0x4c1d15
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 0x219], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x270], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x4c1d72
cmp eax, 0x104
je 0x4c1d72
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x29c]
call fcn.004ae0e5
mov eax, dword [ebp - 0x29c]
mov ecx, dword [ebp - 0x294]
sub ecx, eax
mov dword [ebp - 0x288], eax
sar ecx, 1
lea eax, [ebp - 0x288]
push ecx
push ecx
mov dword [ebp - 0x284], ecx
lea ecx, [ebp - 0x23c]
push eax
call fcn.004c26bb
test eax, eax
jns 0x4c1d83
push 0xe
pop esi
mov dword [ebp - 4], 0x14
lea eax, [ebp - 0x234]
mov edi, 0x40af50
cmp dword [ebp - 0x23c], eax
je 0x4c1d3d
push edi
push dword [ebp - 0x23c]
call fcn.004c51f0
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0x51
lea eax, [ebp - 0x254]
cmp dword [ebp - 0x25c], eax
je 0x4c1d64
push edi
push dword [ebp - 0x25c]
call fcn.004c51f0
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004c5416
ret 4
test esi, esi
jne 0x4c1d15
lea eax, [edi - 1]
cmp dword [ebp - 0x274], eax
jne 0x4c1d9d
add edi, edi
push ecx
push edi
lea ecx, [ebp - 0x25c]
call fcn.004addc3
test al, al
jne 0x4c1c46
jmp 0x4c1d12
mov esi, dword [0x4f5a84]
test esi, esi
je 0x4c1dbe
push dword [ebp - 0x23c]
mov ecx, esi
push 0x474914
call dword [0x4f6d6c]
call esi
pop ecx
pop ecx
mov dword [ebp - 4], 0x1a
lea eax, [ebp - 0x234]
mov edi, 0x40af50
cmp dword [ebp - 0x23c], eax
je 0x4c1de6
push edi
push dword [ebp - 0x23c]
call fcn.004c51f0
pop ecx
pop ecx
mov dword [ebp - 4], 0x1d
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
xor eax, eax
mov word [ebp - 0x224], ax
or dword [ebp - 4], 0xffffffff
push ecx
push ebx
lea ecx, [ebp - 0x22c]
call fcn.004addc3
test al, al
je 0x4c1fbb
mov eax, dword [ebp - 0x278]
push dword [eax + 0x30]
push dword [eax + 0x20]
push dword [eax + 0x10]
push dword [eax]
push dword [ebp - 0x25c]
push 0x474828
push ebx
push dword [ebp - 0x22c]
call fcn.004b54c3
add esp, 0x20
add ebx, ebx
cmp eax, 0x8007007a
je 0x4c1e0c
test eax, eax
je 0x4c1e60
push 0x57
jmp 0x4c1fbd
mov ecx, dword [ebp - 0x22c]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4c1e6b
sub ecx, edx
sar ecx, 1
push ecx
push ecx
lea ecx, [ebp - 0x22c]
call fcn.004addc3
lea eax, [ebp - 0x264]
mov byte [ebp - 0x264], bl
mov dword [ebp - 0x26c], eax
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x228]
sub eax, dword [ebp - 0x22c]
sar eax, 1
push eax
push dword [ebp - 0x22c]
call fcn.004c18ca
mov esi, eax
test esi, esi
jne 0x4c1f9d
mov edx, dword [ebp - 0x26c]
lea eax, [ebp - 0x244]
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], bl
call fcn.004c1b42
lea ecx, [ebp - 0x24c]
push dword [eax + 4]
push dword [eax]
call fcn.004c1312
test al, al
mov eax, dword [ebp - 0x24c]
jne 0x4c1f10
push 0xe
jmp 0x4c1f5c
mov ecx, dword [ebp - 0x248]
cmp eax, ecx
jne 0x4c1f21
mov esi, 0x5b9
jmp 0x4c1f8a
mov esi, dword [0x4f5a84]
test esi, esi
je 0x4c1f49
push eax
push 0x474940
mov ecx, esi
call dword [0x4f6d6c]
call esi
mov eax, dword [ebp - 0x24c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x248]
mov ebx, dword [ebp - 0x27c]
sub ecx, eax
lea esi, [ecx + 0xd]
cmp esi, dword [ebx]
jbe 0x4c1f5f
mov dword [ebx], esi
push 0x7a
pop esi
jmp 0x4c1f8a
push eax
push 0x474930
push dword [ebx]
push dword [ebp - 0x280]
call fcn.004bb39f
add esp, 0x10
test eax, eax
je 0x4c1f7e
push 0xd
pop esi
jmp 0x4c1f84
xor eax, eax
mov dword [ebx], esi
mov esi, eax
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x244]
cmp eax, ecx
je 0x4c1f9d
push edi
push eax
call fcn.004c51f0
pop ecx
pop ecx
lea eax, [ebp - 0x264]
cmp dword [ebp - 0x26c], eax
je 0x4c1fbe
push edi
push dword [ebp - 0x26c]
call fcn.004c51f0
pop ecx
pop ecx
jmp 0x4c1fbe
push 0xe
pop esi
mov dword [ebp - 4], 0x4e
lea eax, [ebp - 0x224]
cmp dword [ebp - 0x22c], eax
je 0x4c1fe1
push edi
push dword [ebp - 0x22c]
call fcn.004c51f0
pop ecx
pop ecx
jmp 0x4c1d3d