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

Disassembly:
mov eax, 0x1060
call fcn.0051e250
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1070]
test esi, esi
push edi
mov ebp, ecx
je 0x488980
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x488980
cmp word [esi], 0
je 0x488980
mov ax, word [0x5711d0]
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 0x4886bd
push 0x53fc98
push esi
call fcn.0043fc00
add esp, 8
test eax, eax
je 0x4886f7
push esi
lea ecx, [esp + 0x2c]
push 0x823
push ecx
push 0x5711d0
push 0x5654bc
push 0x565880
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x4886f7
push esi
call fcn.004e0a00
add esp, 4
test eax, eax
je 0x4886f7
mov edi, dword [0x5a27b4]
call fcn.004a5400
mov edx, dword [esp + 0x107c]
lea eax, [esp + 0x28]
push edx
push 1
push 0x823
push eax
push esi
push edi
call fcn.004a5400
mov ecx, eax
call fcn.004a58e0
cmp word [esp + 0x28], 0
jne 0x488718
push esi
push 0x53d4a4
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.004bfa80
lea eax, [esp + 0x2c]
push eax
call fcn.00472450
add esp, 8
test eax, eax
je 0x488737
xor ebx, ebx
jmp 0x48873e
mov ebx, dword [esp + 0x1084]
mov eax, dword [esp + 0x1088]
xor edi, edi
cmp eax, edi
je 0x4887e0
lea ecx, [esp + 0x28]
push edi
push ecx
mov ecx, ebp
call fcn.0048baf0
mov esi, eax
cmp esi, edi
je 0x4887e0
cmp dword [esi + 0x3148], edi
jne 0x4887e0
mov edi, dword [esi + 0x560c]
mov ecx, dword [ebp + 0x58]
push 0
push edi
call fcn.005115d0
cmp word [esi + 0x3150], 0
lea eax, [esi + 0x3150]
jne 0x4887a5
cmp word [esi + 0x70], 0
lea ecx, [esi + 0x70]
jne 0x4887a7
cmp word [esi + 0x2100], 0
lea ecx, [esi + 0x2100]
jne 0x4887a7
mov ecx, eax
lea edx, [esp + 0x28]
push edx
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4887d1
mov eax, dword [esp + 0x107c]
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, esi
call fcn.00417390
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.0050e420
mov ecx, dword [ebp + 0x58]
push eax
call fcn.0050e520
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x1078]
xor edx, edx
cmp ecx, edi
je 0x488903
cmp dword [ecx + 0x30], edi
je 0x488832
mov eax, dword [esp + 0x107c]
test al, 0xb
jne 0x48882d
test ah, 1
je 0x488832
mov edx, 1
xor edi, edi
test esi, esi
je 0x488864
cmp word [esi + 0x3150], 0
lea edi, [esi + 0x3150]
jne 0x488864
cmp word [esi + 0x70], 0
lea eax, [esi + 0x70]
jne 0x488862
cmp word [esi + 0x2100], 0
lea eax, [esi + 0x2100]
je 0x488864
mov edi, eax
test ebx, ebx
je 0x48887a
mov eax, dword [ecx + 0x5648]
test eax, eax
jne 0x48887a
test edx, edx
je 0x488903
mov ecx, ebp
call fcn.0048f180
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.00417390
test eax, eax
je 0x4888fc
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 0x4888da
lea edx, [esp + 0x18]
push edx
call fcn.004d1fb0
test eax, eax
je 0x4888da
mov ecx, dword [ebp + 0x64]
lea eax, [esp + 0x18]
push eax
push 1
call fcn.004171e0
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x560c]
mov ecx, dword [ebp + 0x58]
push esi
call fcn.00511690
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret 0x20
mov edi, 1
jmp 0x48890a
mov edi, dword [esp + 0x1080]
test esi, esi
je 0x48894b
cmp word [esi + 0x3150], 0
lea ecx, [esi + 0x3150]
jne 0x488938
cmp word [esi + 0x70], 0
lea eax, [esi + 0x70]
jne 0x48893a
cmp word [esi + 0x2100], 0
lea eax, [esi + 0x2100]
jne 0x48893a
mov eax, ecx
push eax
mov ecx, 0x58bf8c
call fcn.004d98b0
test eax, eax
je 0x48894b
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.00485630
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