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

Disassembly:
mov eax, 0x1060
call fcn.0051d7f0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1070]
test esi, esi
push edi
mov ebp, ecx
je 0x4885e0
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x4885e0
cmp word [esi], 0
je 0x4885e0
mov ax, word [0x56e1d0]
mov ecx, 0x411
mov word [esp + 0x28], ax
xor eax, eax
lea edi, [esp + 0x2a]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48831d
push 0x53cc98
push esi
call fcn.0043fb20
add esp, 8
test eax, eax
je 0x488357
push esi
lea ecx, [esp + 0x2c]
push 0x823
push ecx
push 0x56e1d0
push 0x5624bc
push 0x562880
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x488357
push esi
call fcn.004e02a0
add esp, 4
test eax, eax
je 0x488357
mov edi, dword [0x59f7b4]
call fcn.004a4f70
mov edx, dword [esp + 0x107c]
lea eax, [esp + 0x28]
push edx
push 1
push 0x823
push eax
push esi
push edi
call fcn.004a4f70
mov ecx, eax
call fcn.004a5450
cmp word [esp + 0x28], 0
jne 0x488378
push esi
push 0x53a4a4
lea ecx, [esp + 0x30]
push 0x823
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea edx, [esp + 0x28]
push edx
call fcn.004bf470
lea eax, [esp + 0x2c]
push eax
call fcn.004720e0
add esp, 8
test eax, eax
je 0x488397
xor ebx, ebx
jmp 0x48839e
mov ebx, dword [esp + 0x1084]
mov eax, dword [esp + 0x1088]
xor edi, edi
cmp eax, edi
je 0x488440
lea ecx, [esp + 0x28]
push edi
push ecx
mov ecx, ebp
call fcn.0048b770
mov esi, eax
cmp esi, edi
je 0x488440
cmp dword [esi + 0x3148], edi
jne 0x488440
mov edi, dword [esi + 0x560c]
mov ecx, dword [ebp + 0x58]
push 0
push edi
call fcn.00510cb0
cmp word [esi + 0x3150], 0
lea eax, [esi + 0x3150]
jne 0x488405
cmp word [esi + 0x70], 0
lea ecx, [esi + 0x70]
jne 0x488407
cmp word [esi + 0x2100], 0
lea ecx, [esi + 0x2100]
jne 0x488407
mov ecx, eax
lea edx, [esp + 0x28]
push edx
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x488431
mov eax, dword [esp + 0x107c]
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, esi
call fcn.00417310
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret 0x20
mov ecx, dword [ebp + 0x58]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
call fcn.0050db40
mov ecx, dword [ebp + 0x58]
push eax
call fcn.0050dc40
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x1078]
xor edx, edx
cmp ecx, edi
je 0x488563
cmp dword [ecx + 0x30], edi
je 0x488492
mov eax, dword [esp + 0x107c]
test al, 0xb
jne 0x48848d
test ah, 1
je 0x488492
mov edx, 1
xor edi, edi
test esi, esi
je 0x4884c4
cmp word [esi + 0x3150], 0
lea edi, [esi + 0x3150]
jne 0x4884c4
cmp word [esi + 0x70], 0
lea eax, [esi + 0x70]
jne 0x4884c2
cmp word [esi + 0x2100], 0
lea eax, [esi + 0x2100]
je 0x4884c4
mov edi, eax
test ebx, ebx
je 0x4884da
mov eax, dword [ecx + 0x5648]
test eax, eax
jne 0x4884da
test edx, edx
je 0x488563
mov ecx, ebp
call fcn.0048ee00
mov ecx, dword [esp + 0x107c]
push 0
push edi
push 0
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x20]
push edx
call fcn.00417310
test eax, eax
je 0x48855c
mov ecx, dword [ebp + 0x5c]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
test ecx, ecx
mov dword [esp + 0x24], eax
je 0x48853a
lea edx, [esp + 0x18]
push edx
call fcn.004d19a0
test eax, eax
je 0x48853a
mov ecx, dword [ebp + 0x64]
lea eax, [esp + 0x18]
push eax
push 1
call fcn.00417160
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x560c]
mov ecx, dword [ebp + 0x58]
push esi
call fcn.00510d70
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret 0x20
mov edi, 1
jmp 0x48856a
mov edi, dword [esp + 0x1080]
test esi, esi
je 0x4885ab
cmp word [esi + 0x3150], 0
lea ecx, [esi + 0x3150]
jne 0x488598
cmp word [esi + 0x70], 0
lea eax, [esi + 0x70]
jne 0x48859a
cmp word [esi + 0x2100], 0
lea eax, [esi + 0x2100]
jne 0x48859a
mov eax, ecx
push eax
mov ecx, 0x588f8c
call fcn.004d90e0
test eax, eax
je 0x4885ab
xor esi, esi
mov edx, dword [esp + 0x108c]
mov eax, dword [esp + 0x107c]
mov ecx, dword [esp + 0x1090]
push 0
push edx
push esi
push eax
push ecx
lea edx, [esp + 0x3c]
push edi
push edx
mov ecx, ebp
call fcn.00485290
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret 0x20
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1060
ret 0x20