Function at 0x4ebb60
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 0x4fae5b
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.00404ae0
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.004032c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004079a0
mov ecx, dword [ebp - 0x58]
add ecx, 0x288
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call fcn.004d72a0
mov ecx, dword [0x549f7c]
mov dword [ebp - 0x14], ecx
mov ecx, 0x549f78
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ebc20
mov ecx, 0x549f78
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 0x516a68
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 0x4ebe45
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 0x4ebe30
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.00498ef6
mov dword [ebp - 4], 1
push 0x516a74
mov edx, dword [ebp - 0x58]
add edx, 0x288
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00404ae0
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.0049937f
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004079a0
cmp dword [ebp - 0x44], 0
je 0x4ebe00
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
call fcn.00498c2c
lea ecx, [ebp - 0x30]
call fcn.00498d18
lea ecx, [ebp - 0x30]
call fcn.00498e90
lea ecx, [ebp - 0x38]
call fcn.004032e0
mov byte [ebp - 4], 3
push 0x104
lea ecx, [ebp - 0x38]
call fcn.00403a50
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x38]
call fcn.00406880
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.00402580
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 0x516a84
mov edx, dword [ebp - 0x58]
add edx, 0x288
push edx
push ecx
call fcn.00404ae0
add esp, 0xc
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 4
call fcn.004e29b0
add esp, 8
jmp 0x4ebdaa
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.00404ae0
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.004079a0
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.004079a0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x549f7c]
je 0x4ebe1f
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.0049900f
jmp 0x4ebe45
mov edx, dword [ebp - 0x14]
cmp edx, dword [0x549f7c]
je 0x4ebe45
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