Function at 0x4ebbb0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee564
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x522464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x240], 0
push str.cache
push 0x500520
mov eax, dword [ebp - 0x268]
push eax
mov eax, 0x500510
call fcn.0043aed2
push eax
lea eax, [ebp - 0x230]
call fcn.004019c5
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], 0x23
push str.CSIDL_COMMON_APPDATA
lea ecx, [ebp - 0x230]
push ecx
call fcn.004120f7
add esp, 8
movzx edx, al
test edx, edx
je 0x4ebc4c
mov dword [ebp - 0x22c], 0x23
jmp 0x4ebc98
push str.CSIDL_LOCAL_APPDATA
lea eax, [ebp - 0x230]
push eax
call fcn.004120f7
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4ebc73
mov dword [ebp - 0x22c], 0x1c
jmp 0x4ebc98
push str.CSIDL_APPDATA
lea edx, [ebp - 0x230]
push edx
call fcn.004120f7
add esp, 8
movzx eax, al
test eax, eax
je 0x4ebc98
mov dword [ebp - 0x22c], 0x1a
lea ecx, [ebp - 0x228]
call fcn.00401b87
mov byte [ebp - 4], 1
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.00497490
add esp, 0xc
push 1
mov edx, dword [ebp - 0x22c]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.00401b43
lea eax, [ebp - 0x228]
call fcn.0041e176
movzx eax, al
test eax, eax
je 0x4ebd4f
push 0x400000
lea ecx, [ebp - 0x23c]
push ecx
call fcn.004ddb70
add esp, 8
mov dword [ebp - 0x26c], eax
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x270], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x270]
lea edi, [ebp - 0x228]
call fcn.00402073
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x23c]
call fcn.00401b7d
jmp 0x4ebd5e
lea eax, [ebp - 0x228]
push eax
call fcn.004ddf60
add esp, 4
push str.Kingsoftkis_
lea ecx, [ebp - 0x228]
push ecx
call fcn.004051f5
lea ecx, [ebp - 0x234]
call fcn.00401b87
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x268]
call fcn.004ebb90
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 1
jne 0x4ebdab
push str.kich_
lea edx, [ebp - 0x234]
push edx
call fcn.00401b43
jmp 0x4ebdc6
mov eax, dword [ebp - 0x224]
push eax
push str.kich_d_
lea ecx, [ebp - 0x234]
push ecx
call fcn.0041e84b
add esp, 0xc
mov ecx, dword [ebp - 0x268]
call fcn.004ebb70
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4ebe2b
lea ecx, [ebp - 0x238]
call fcn.00401b87
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x220]
push edx
push 0x5005d8
lea eax, [ebp - 0x238]
push eax
call fcn.0041e84b
add esp, 0xc
lea ecx, [ebp - 0x234]
push ecx
lea eax, [ebp - 0x238]
call fcn.0043859b
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
call fcn.00401b7d
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x234]
call fcn.0043859b
lea eax, [ebp - 0x228]
call fcn.004391a5
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ebe68
lea eax, [ebp - 0x228]
call fcn.004391a5
push eax
call fcn.004dddf0
add esp, 4
lea eax, [ebp - 0x228]
mov esi, dword [ebp + 8]
call fcn.004016eb
mov eax, dword [ebp - 0x240]
or eax, 1
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00401b7d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00401b7d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00401b7d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a079b
mov esp, ebp
pop ebp
ret 4