Function at 0x4ea500
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8ded
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x541af0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x58], ecx
push str.QYanti_
mov eax, dword [ebp - 0x58]
add eax, 0xdc
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00404490
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x288
call fcn.004030c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004030e0
mov ecx, dword [ebp - 0x58]
add ecx, 0x288
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call fcn.004d7010
mov ecx, dword [0x546f6c]
mov dword [ebp - 0x14], ecx
mov ecx, 0x546f68
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ea5c0
mov ecx, 0x546f68
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x14], eax
push 0x513d40
push 0x258
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4ea7e5
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4ea7d0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x30]
call fcn.00498cdc
mov dword [ebp - 4], 1
push 0x513d4c
mov edx, dword [ebp - 0x58]
add edx, 0x288
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00404490
add esp, 0xc
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 2
push 0
push 0x1002
mov ecx, dword [ebp - 0x68]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
lea ecx, [ebp - 0x30]
call fcn.00499165
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004030e0
cmp dword [ebp - 0x44], 0
je 0x4ea7a0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
call fcn.00498a12
lea ecx, [ebp - 0x30]
call fcn.00498afe
lea ecx, [ebp - 0x30]
call fcn.00498c76
lea ecx, [ebp - 0x38]
call fcn.00407160
mov byte [ebp - 4], 3
push 0x104
lea ecx, [ebp - 0x38]
call fcn.004037f0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x38]
call fcn.00405f50
mov ecx, dword [ebp - 0x58]
add ecx, 0x288
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x58]
add ecx, 0x288
push ecx
mov edx, esp
mov dword [ebp - 0x4c], esp
push ecx
mov ecx, edx
call fcn.00402350
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0x513d5c
mov edx, dword [ebp - 0x58]
add edx, 0x288
push edx
push ecx
call fcn.00404490
add esp, 0xc
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 4
call fcn.004e2280
add esp, 8
jmp 0x4ea74a
mov dword [ebp - 4], 3
push str.anti.7z
mov eax, dword [ebp - 0x58]
add eax, 0x288
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.00404490
add esp, 0xc
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x54]
call fcn.004030e0
lea ecx, [ebp - 0x38]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.004030e0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x546f6c]
je 0x4ea7bf
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00498df5
jmp 0x4ea7e5
mov edx, dword [ebp - 0x14]
cmp edx, dword [0x546f6c]
je 0x4ea7e5
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret