Function at 0x4eb7d0
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 0x4fa33b
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x544af0]
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.004041e0
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.00402e50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402e70
mov ecx, dword [ebp - 0x58]
add ecx, 0x288
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call fcn.004d6fa0
mov ecx, dword [0x549f64]
mov dword [ebp - 0x14], ecx
mov ecx, 0x549f60
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4eb890
mov ecx, 0x549f60
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 0x516a90
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 0x4ebab5
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 0x4ebaa0
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.00498c64
mov dword [ebp - 4], 1
push 0x516a9c
mov edx, dword [ebp - 0x58]
add edx, 0x288
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.004041e0
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.004990ed
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00402e70
cmp dword [ebp - 0x44], 0
je 0x4eba70
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
call fcn.0049899a
lea ecx, [ebp - 0x30]
call fcn.00498a86
lea ecx, [ebp - 0x30]
call fcn.00498bfe
lea ecx, [ebp - 0x38]
call fcn.00407250
mov byte [ebp - 4], 3
push 0x104
lea ecx, [ebp - 0x38]
call fcn.004035c0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x38]
call fcn.00406060
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.00402130
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 0x516aac
mov edx, dword [ebp - 0x58]
add edx, 0x288
push edx
push ecx
call fcn.004041e0
add esp, 0xc
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 4
call fcn.004e2660
add esp, 8
jmp 0x4eba1a
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.004041e0
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.00402e70
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.00402e70
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x549f64]
je 0x4eba8f
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.00498d7d
jmp 0x4ebab5
mov edx, dword [ebp - 0x14]
cmp edx, dword [0x549f64]
je 0x4ebab5
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