Function at 0x4eaff0
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 0x4f98e5
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x542af0]
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.00404270
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.00402e60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402ea0
mov ecx, dword [ebp - 0x58]
add ecx, 0x288
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call fcn.004d6f70
mov ecx, dword [0x547f64]
mov dword [ebp - 0x14], ecx
mov ecx, 0x547f60
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4eb0b0
mov ecx, 0x547f60
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 0x514fc8
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 0x4eb2d5
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 0x4eb2c0
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.00498c66
mov dword [ebp - 4], 1
push 0x514fd4
mov edx, dword [ebp - 0x58]
add edx, 0x288
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00404270
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.004990ef
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00402ea0
cmp dword [ebp - 0x44], 0
je 0x4eb290
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
call fcn.0049899c
lea ecx, [ebp - 0x30]
call fcn.00498a88
lea ecx, [ebp - 0x30]
call fcn.00498c00
lea ecx, [ebp - 0x38]
call fcn.00402e80
mov byte [ebp - 4], 3
push 0x104
lea ecx, [ebp - 0x38]
call fcn.00403630
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x38]
call fcn.004060c0
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.004020d0
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 0x514fe4
mov edx, dword [ebp - 0x58]
add edx, 0x288
push edx
push ecx
call fcn.00404270
add esp, 0xc
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 4
call fcn.004e2530
add esp, 8
jmp 0x4eb23a
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.00404270
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.00402ea0
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.00402ea0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x547f64]
je 0x4eb2af
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.00498d7f
jmp 0x4eb2d5
mov edx, dword [ebp - 0x14]
cmp edx, dword [0x547f64]
je 0x4eb2d5
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