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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c1e07
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x105c
call fcn.005a41d0
mov eax, dword [0x61dc40]
xor eax, esp
mov dword [esp + 0x1058], eax
push ebx
push esi
push edi
mov eax, dword [0x61dc40]
xor eax, esp
push eax
lea eax, [esp + 0x1070]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
mov dword [esp + 0x10], eax
mov eax, dword [0x6394f8]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x4ba692
cmp dword [edi + 0x30], ebx
je 0x4ba692
xor eax, eax
cmp ax, word [esi]
je 0x4ba692
push 0x1046
mov word [esp + 0x20], ax
lea eax, [esp + 0x22]
push ebx
push eax
call fcn.00596530
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ba4dc
push 0x5e9544
push esi
call fcn.00476562
pop ecx
pop ecx
test eax, eax
je 0x4ba545
push esi
push 0x823
lea eax, [esp + 0x24]
push eax
push 0x5d0be4
push 0x5ec2f0
push 0x5ec2f8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x4ba545
call fcn.0048134a
test eax, eax
je 0x4ba545
mov eax, dword [0x63696c]
mov ecx, 0x63696c
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x6bae08
push 0x5e3d3c
lea eax, [esp + 0x1c]
mov dword [esp + 0x1080], ebx
call fcn.00404f66
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
call fcn.0045c3b3
mov ebx, dword [esp + 0x18]
mov edx, eax
mov eax, ebx
mov ecx, esi
call fcn.0045c3ef
or dword [esp + 0x1078], 0xffffffff
lea eax, [ebx - 0x10]
mov dword [ebp + 0xc], 8
call fcn.00407b6b
xor eax, eax
cmp ax, word [esp + 0x1c]
jne 0x4ba566
push esi
push 0x5db9e0
lea eax, [esp + 0x24]
push 0x823
push eax
call fcn.0058f42f
add esp, 0x10
lea ebx, [esp + 0x1c]
call fcn.00516045
mov eax, ebx
push eax
call fcn.0047750b
pop ecx
test eax, eax
je 0x4ba580
and dword [ebp + 0x14], 0
cmp dword [ebp + 0x18], 0
je 0x4ba5df
lea eax, [esp + 0x1c]
push eax
call fcn.004ba86c
mov esi, eax
test esi, esi
je 0x4ba5df
cmp dword [esi + 0x312c], 0
jne 0x4ba5df
mov ebx, dword [esi + 0x6638]
push dword [edi + 0x30]
mov eax, ebx
call fcn.00536474
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004410b2
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4ba5d8
push 0
push 0
push dword [ebp + 0xc]
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.00499ec2
mov eax, ebx
jmp 0x4ba695
mov ecx, dword [edi + 0x30]
call fcn.00536545
mov ecx, dword [edi + 0x30]
mov ebx, eax
call fcn.00536514
push eax
call fcn.004983d6
mov esi, eax
xor ebx, ebx
pop ecx
test esi, esi
je 0x4ba66f
call fcn.00497f1d
test eax, eax
je 0x4ba610
test byte [ebp + 0xc], 0xb
je 0x4ba610
inc ebx
cmp dword [ebp + 0x14], 0
je 0x4ba625
mov eax, esi
call fcn.00497f1d
test eax, eax
jne 0x4ba625
test ebx, ebx
je 0x4ba66f
mov ecx, esi
call fcn.004410b2
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.0058f69a
pop ecx
pop ecx
test eax, eax
je 0x4ba647
push 1
push dword [edi + 0x2c]
call fcn.004d91e1
push dword [ebp + 0x1c]
lea edx, [esp + 0x20]
push dword [esp + 0x14]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00499ec2
test eax, eax
je 0x4ba668
mov eax, dword [esi + 0x6638]
jmp 0x4ba695
mov dword [ebp + 0x10], 1
push dword [ebp + 0x20]
lea eax, [esp + 0x20]
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0xc]
push dword [esp + 0x28]
push dword [ebp + 0x10]
push dword [esp + 0x28]
push eax
push edi
call fcn.004ba6bb
jmp 0x4ba695
or eax, 0xffffffff
mov ecx, dword [esp + 0x1070]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1058]
xor ecx, esp
call fcn.0058f3cf
mov esp, ebp
pop ebp
ret 0x1c