Function at 0x4e21d0
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x54eb90]
xor eax, ebp
mov dword [ebp - 0x4c], eax
call fcn.004038f0
mov dword [ebp - 0x10], eax
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.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e22a7
lea eax, [ebp + 8]
push eax
push str._RedirectScript__File_Not_Exists:
lea ecx, [ebp - 0x48]
push ecx
call fcn.004042e0
add esp, 0xc
mov ecx, eax
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4e2230
mov dword [ebp - 0x74], 0
jmp 0x4e227f
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3fffffff
jle 0x4e2252
mov dword [ebp - 0x78], 0
jmp 0x4e2279
mov eax, dword [ebp - 4]
shl eax, 1
call fcn.004c5300
mov dword [ebp - 0x7c], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
shl ecx, 1
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x7c]
push eax
call fcn.00407890
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x44], edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
call fcn.004bdd7c
push 0x52b83c
lea ecx, [ebp - 0x40]
push ecx
call fcn.004c5561
lea ecx, [ebp - 0x48]
call fcn.00402e80
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_LoadLibraryW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4e24af
push 0x51a300
push 0x320
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4e23ef
push 0x51a224
push 0x553f24
lea eax, [ebp - 0x50]
push eax
call fcn.00404230
add esp, 0xc
mov ecx, eax
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 - 0x50]
call fcn.00402e80
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4e23ea
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x30]
call fcn.004a0f0c
push 0
push 0x1002
push 0x51a294
push 0x553f24
lea eax, [ebp - 0x58]
push eax
call fcn.00404230
add esp, 0xc
mov ecx, eax
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x30]
call fcn.004a1395
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x58]
call fcn.00402e80
cmp dword [ebp - 0x54], 0
je 0x4e23d8
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x30]
call fcn.004a0c42
lea ecx, [ebp - 0x30]
call fcn.004a0d2e
lea ecx, [ebp - 0x30]
call fcn.004a0ea6
push 0x51a308
push 0x553f24
lea eax, [ebp - 0x5c]
push eax
call fcn.00404230
add esp, 0xc
push eax
mov ecx, 0x553f08
call fcn.00402e60
lea ecx, [ebp - 0x5c]
call fcn.00402e80
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x30]
call fcn.004a1025
jmp 0x4e24a3
lea edx, [ebp + 8]
push edx
push str._RedirectScript__Load_Script_Faild_Form_Module:
lea eax, [ebp - 0x70]
push eax
call fcn.004042e0
add esp, 0xc
mov ecx, eax
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4e241d
mov dword [ebp - 0x80], 0
jmp 0x4e247b
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3fffffff
jle 0x4e2442
mov dword [ebp - 0x84], 0
jmp 0x4e2472
mov eax, dword [ebp - 4]
shl eax, 1
call fcn.004c5300
mov dword [ebp - 0x88], esp
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
shl eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x88]
push edx
call fcn.00407890
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x6c], ecx
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x68]
call fcn.004bdd7c
push 0x52b83c
lea eax, [ebp - 0x68]
push eax
call fcn.004c5561
lea ecx, [ebp - 0x70]
call fcn.00402e80
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4e24bd
lea edx, [ebp + 8]
push edx
mov ecx, 0x553f08
call fcn.00402e60
push 0
push 0
push 0x7e8
mov eax, dword [0x553e14]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp + 8]
call fcn.00402e80
lea esp, [ebp - 0x88]
mov ecx, dword [ebp - 0x4c]
xor ecx, ebp
call fcn.004bd72f
mov esp, ebp
pop ebp
ret