Function at 0x48c600
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4673
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x204], ecx
mov dword [ebp - 0x208], ebx
cmp eax, edi
je 0x48c649
mov edx, eax
jmp 0x48c668
lea edx, [ebp - 0x200]
push edx
call fcn.0048bb60
add esp, 4
mov dword [ebp - 4], edi
mov edx, dword [eax]
mov ebx, 1
mov dword [ebp - 0x208], ebx
xor eax, eax
mov word [ebp - 0x188], ax
mov eax, edx
mov dword [ebp - 0x174], 7
mov dword [ebp - 0x178], edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x48c686
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [ebp - 0x18c]
call fcn.00403020
mov dword [ebp - 4], 2
test bl, 1
je 0x48c6d0
mov eax, dword [ebp - 0x200]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c6d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x18c]
push ecx
mov ecx, 0x4b7c60
call fcn.0040adc0
test eax, eax
jne 0x48c704
cmp dword [ebp - 0x174], 8
jb 0x48c6fd
mov edx, dword [ebp - 0x188]
push edx
call fcn.0044556f
add esp, 4
mov al, 1
jmp 0x48cb94
mov ecx, dword [ebp - 0x188]
mov esi, 8
cmp dword [ebp - 0x174], esi
jae 0x48c71d
lea ecx, [ebp - 0x188]
lea edi, [ebp - 0x1a8]
call fcn.0048cd90
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1a4]
cmp dword [ebp - 0x190], esi
jae 0x48c740
lea eax, [ebp - 0x1a4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48c79f
cmp dword [ebp - 0x190], esi
jb 0x48c762
mov eax, dword [ebp - 0x1a4]
push eax
call fcn.0044556f
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x190], 7
mov dword [ebp - 0x194], 0
mov word [ebp - 0x1a4], cx
cmp dword [ebp - 0x174], esi
jb 0x48cb92
mov edx, dword [ebp - 0x188]
push edx
call fcn.0044556f
add esp, 4
jmp 0x48cb92
mov eax, dword [ebp - 0x1a4]
cmp dword [ebp - 0x190], esi
jae 0x48c7b3
lea eax, [ebp - 0x1a4]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x48cb7c
push 0x103
lea eax, [ebp - 0x16f]
push 0
push eax
mov byte [ebp - 0x170], 0
call fcn.0044b7d0
add esp, 0xc
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0x103
lea edx, [ebp - 0x170]
push edx
push esi
mov dword [ebp - 0x20c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x48cb7c
cmp dword [ebp - 0x20c], 0
je 0x48cb7c
xor eax, eax
cmp byte [ebp - 0x170], 0xef
jne 0x48c85a
cmp byte [ebp - 0x16f], 0xbb
jne 0x48c85a
cmp byte [ebp - 0x16e], 0xbf
jne 0x48c85a
mov eax, 3
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str._themes_version_
lea eax, [ebp + eax - 0x170]
push eax
xor bl, bl
call edi
mov dword [ebp - 0x200], eax
test eax, eax
je 0x48cb62
push str._themes_version_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, dword [ebp - 0x200]
push 0x4b7c70
push esi
mov dword [ebp - 0x210], esi
call edi
mov dword [ebp - 0x208], eax
test eax, eax
je 0x48cb62
cmp dword [ebp - 0x204], 0
je 0x48c984
push str._ext_
push eax
call edi
mov dword [ebp - 0x200], eax
test eax, eax
je 0x48cb62
push str._ext_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, dword [ebp - 0x200]
push 0x4b7c7c
push esi
call edi
test eax, eax
je 0x48cb62
mov byte [eax], bl
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], bl
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x204]
lea eax, [ebp - 0x1e0]
call fcn.00402f00
lea ecx, [ebp - 0x1c4]
push ecx
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 5
call fcn.004909e0
add esp, 4
cmp dword [eax + 0x18], 0x10
jb 0x48c949
mov eax, dword [eax + 4]
jmp 0x48c94c
add eax, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
lea ecx, [ebp - 0x1e0]
sete bl
call fcn.00402f70
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 3
call fcn.004107d0
cmp bl, 1
jne 0x48c9a4
mov eax, dword [ebp - 0x208]
mov esi, dword [ebp - 0x210]
cmp dword [ebp + 0xc], 0
mov byte [eax], 0
mov eax, 0x4b7c80
je 0x48c997
mov eax, 0x4b7c84
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
sete bl
test bl, bl
je 0x48cb62
mov edx, dword [ebp - 0x188]
mov edi, 8
cmp dword [ebp - 0x174], edi
jae 0x48c9c5
lea edx, [ebp - 0x188]
lea ecx, [ebp - 0x1c4]
call fcn.0048ccf0
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x18c]
push edx
lea esi, [ebp - 0x1c4]
mov byte [ebp - 4], 6
call fcn.00407c40
push eax
mov edx, 0x4b7c88
call fcn.00402ff0
mov eax, dword [ebp - 0x1a4]
cmp dword [ebp - 0x190], edi
jae 0x48ca09
lea eax, [ebp - 0x1a4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48ca48
mov eax, dword [ebp - 0x1c0]
cmp dword [ebp - 0x1ac], edi
jae 0x48ca28
lea eax, [ebp - 0x1c0]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48ca4f
xor bl, bl
jmp 0x48cb57
xor esi, esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x50
jb 0x48cb4e
push 2
push esi
push 0xffffffffffffffb0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x48cb4e
push 0x50
lea eax, [ebp - 0x67]
push esi
push eax
mov byte [ebp - 0x68], 0
call fcn.0044b7d0
add esp, 0xc
push esi
lea ecx, [ebp - 0x204]
push ecx
push 0x50
lea edx, [ebp - 0x68]
push edx
push edi
mov dword [ebp - 0x204], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x48cb4e
cmp dword [ebp - 0x204], esi
je 0x48cb4e
push 0x4b7c90
lea ecx, [ebp - 0x1fc]
call fcn.004101f0
mov dword [ebp - 0x1c8], 0xf
mov dword [ebp - 0x1cc], esi
mov byte [ebp - 0x1dc], 0
lea eax, [ebp - 0x1e0]
push eax
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 8
call fcn.004909e0
add esp, 4
push 0xffffffffffffffff
push esi
push eax
lea esi, [ebp - 0x1fc]
call fcn.004092a0
cmp dword [ebp - 0x1e4], 0x10
mov eax, dword [ebp - 0x1f8]
jae 0x48cb1d
lea eax, [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1e8]
push ecx
push eax
lea edx, [ebp - 0x68]
push edx
call fcn.0048bac0
add esp, 0xc
test eax, eax
lea ecx, [ebp - 0x1e0]
setne bl
call fcn.004107d0
lea ecx, [ebp - 0x1fc]
call fcn.004107d0
jmp 0x48cb50
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c4]
call fcn.00402f70
lea ecx, [ebp - 0x1a8]
call fcn.00402f70
lea ecx, [ebp - 0x18c]
call fcn.00402f70
mov al, bl
jmp 0x48cb94
lea ecx, [ebp - 0x1a8]
call fcn.00402f70
lea ecx, [ebp - 0x18c]
call fcn.00402f70
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044557a
mov esp, ebp
pop ebp
ret