Function at 0x4ef1a0
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 0x50137a
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x54eb90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push ecx
mov eax, esp
mov dword [ebp - 0x50], esp
lea ecx, [ebp + 8]
push ecx
push 0x517614
push eax
call fcn.004042e0
add esp, 0xc
mov dword [ebp - 0xa4], eax
mov ecx, 0x553e48
call fcn.004f2090
call fcn.004038f0
mov dword [ebp - 0x20], eax
push 1
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp + 8]
call fcn.00404120
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 1
push 0x51762c
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.004081a0
add esp, 8
mov byte [ebp - 0x51], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00402e80
movzx edx, byte [ebp - 0x51]
test edx, edx
je 0x4ef262
push 0x517630
lea ecx, [ebp + 8]
call fcn.00403d40
lea ecx, [ebp + 8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.004e0ff0
mov eax, dword [0x5540c8]
mov dword [ebp - 0x1c], eax
mov ecx, 0x5540c4
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ef2a1
mov ecx, 0x5540c4
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x1c], eax
push 0x517634
push 0x384
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4ef2df
mov dword [ebp - 0x68], str._Out__DATA_resource_not_found_in_current_executable
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x64]
call fcn.004bdd7c
push 0x52b83c
lea eax, [ebp - 0x64]
push eax
call fcn.004c5561
cmp dword [ebp - 0x24], 0
je 0x4ef596
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4ef554
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x40]
call fcn.004a0f0c
mov byte [ebp - 4], 2
push 0x517678
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.00404230
add esp, 0xc
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], edx
mov byte [ebp - 4], 3
push 0
push 0x1002
mov ecx, dword [ebp - 0xb4]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x40]
call fcn.004a1395
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00402e80
cmp dword [ebp - 0x6c], 0
je 0x4ef527
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004a0c42
lea ecx, [ebp - 0x40]
call fcn.004a0d2e
lea ecx, [ebp - 0x40]
call fcn.004a0ea6
lea ecx, [ebp - 0x48]
call fcn.00407130
mov byte [ebp - 4], 4
push 0x104
lea ecx, [ebp - 0x48]
call fcn.004035b0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x48]
call fcn.00405f20
lea ecx, [ebp + 8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x74], esp
lea edx, [ebp + 8]
push edx
call fcn.00402120
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x78], esp
push 0x517688
lea edx, [ebp + 8]
push edx
push ecx
call fcn.00404230
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 5
call fcn.004eb790
add esp, 8
jmp 0x4ef4ca
mov dword [ebp - 4], 4
push str.data.7z
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x90]
push eax
call fcn.00404230
add esp, 0xc
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x90]
call fcn.00402e80
lea ecx, [ebp - 0x48]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00402e80
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [0x5540c8]
je 0x4ef546
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004a1025
jmp 0x4ef596
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [0x5540c8]
je 0x4ef569
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0xa0], str.Unable_to_extract_install_resource_
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x9c]
call fcn.004bdd7c
push 0x52b83c
lea ecx, [ebp - 0x9c]
push ecx
call fcn.004c5561
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402e80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret