Function at 0x48e950
Capabilities:
Check if file exists
Get file size
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov ebx, ecx
jne 0x48e969
xor esi, esi
jmp 0x48e99c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp + 8], eax
add eax, 3
and al, 0xfc
call fcn.004d3780
mov eax, dword [ebp + 8]
mov esi, esp
push 0
push 0
push eax
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push str.ublist.dat
lea ecx, [ebp - 0x11c]
push esi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x48ea11
mov esi, 0x400
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
je 0x48ea11
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x11c]
push eax
push esi
push ecx
push str.sites
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea edx, [esi - 1]
mov dword [ebx + 4], eax
cmp eax, edx
jne 0x48ea11
mov eax, dword [ebx + 0xc]
push eax
call fcn.004d3765
add esi, esi
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 8
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x48e9d5
xor esi, esi
cmp edi, esi
mov dword [ebp - 4], esi
je 0x48ea4d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp + 8], eax
add eax, 3
and al, 0xfc
call fcn.004d3780
mov ecx, dword [ebp + 8]
mov esi, esp
push 0
push 0
push ecx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push str.siterule.dat
lea edx, [ebp - 0x11c]
push esi
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x48eb0a
mov cx, word [0x4ffec0]
lea edi, [ebp - 0x322]
mov word [ebp - 0x324], cx
mov ecx, 0x81
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x6dcf84]
push 0
lea edx, [ebp - 0x324]
push 0x104
push edx
push eax
call fcn.004a7ac0
lea ecx, [ebp - 0x324]
add esp, 0x10
test ecx, ecx
jne 0x48eabc
xor esi, esi
jmp 0x48eaf7
lea edx, [ebp - 0x324]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004d3780
mov esi, esp
push 0
push 0
push edi
push esi
lea eax, [ebp - 0x324]
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push str.siterule.dat
lea ecx, [ebp - 0x11c]
push esi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x48ec09
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp - 0x11c]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x48ec09
push 0
push edi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [ebp + 8]
push 0
push ecx
lea edx, [ebp - 0x18]
push 0x14
push edx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48ec02
cmp dword [ebp + 8], 0x14
jne 0x48ec02
cmp dword [ebp - 0x18], 0x52533351
jne 0x48ec02
cmp dword [ebp - 0x10], 1
ja 0x48ec02
cmp dword [ebp - 8], esi
jne 0x48ec02
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebx + 8], eax
test eax, eax
je 0x48ec02
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebx + 8]
lea eax, [ebp + 8]
push 0
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48ebef
cmp dword [ebp + 8], esi
jne 0x48ebef
mov edx, dword [ebx + 8]
mov dword [ebx], esi
add esi, 0xffffffec
add edx, 0x14
push esi
push 0x4f484951
push edx
call fcn.0048ec20
add esp, 0xc
mov dword [ebp - 4], 1
jmp 0x48ec02
mov eax, dword [ebx + 8]
push eax
call fcn.004d3765
add esp, 4
mov dword [ebx + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x330]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4