Function at 0x4ea030
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x54eb90]
xor eax, ebp
mov dword [ebp - 0x8c], eax
push esi
call fcn.004038f0
mov dword [ebp - 0x40], eax
push 0xa
lea ecx, [ebp - 0x34]
call fcn.004a0846
lea eax, [ebp - 0x34]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x74], esp
lea edx, [ebp + 8]
push edx
call fcn.00402120
call fcn.004e1bd0
add esp, 8
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 3
jg 0x4ea14a
lea eax, [ebp + 8]
push eax
push str._CreateShortCut__Invalid_arguments__nArg_5_:
lea ecx, [ebp - 0x88]
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 - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4ea0b5
mov dword [ebp - 0xac], 0
jmp 0x4ea116
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3fffffff
jle 0x4ea0da
mov dword [ebp - 0xb0], 0
jmp 0x4ea10a
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.004c5300
mov dword [ebp - 0xb4], esp
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xb4]
push eax
call fcn.00407890
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x80]
call fcn.004bdd7c
push 0x52b83c
lea ecx, [ebp - 0x80]
push ecx
call fcn.004c5561
lea ecx, [ebp - 0x88]
call fcn.00402e80
push 0
lea ecx, [ebp - 0x34]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x34]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x10]
call fcn.00402120
push 1
lea ecx, [ebp - 0x34]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x34]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0xc]
call fcn.00402120
push 2
lea ecx, [ebp - 0x34]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x34]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x44]
call fcn.00402120
push 3
lea ecx, [ebp - 0x34]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x34]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x38]
call fcn.00402120
push 0x517e48
lea ecx, [ebp - 4]
call fcn.00403820
cmp dword [ebp - 0x50], 5
jne 0x4ea1e9
push 4
lea ecx, [ebp - 0x34]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x34]
call fcn.00408bc0
push eax
lea ecx, [ebp - 4]
call fcn.00402e60
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00404020
add eax, 1
push eax
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0xc]
call fcn.004041b0
lea ecx, [ebp - 0xc]
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 0x4ea319
push 0
push 0x517e4c
lea ecx, [ebp - 0xc]
call fcn.00403fa0
cmp eax, 0xffffffff
jne 0x4ea319
push 0
push 0x517e5c
lea ecx, [ebp - 0xc]
call fcn.00403fa0
cmp eax, 0xffffffff
jne 0x4ea319
lea eax, [ebp + 8]
push eax
push 0x517e60
lea ecx, [ebp - 0xa0]
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 - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4ea27e
mov dword [ebp - 0xb8], 0
jmp 0x4ea2df
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3fffffff
jle 0x4ea2a3
mov dword [ebp - 0xbc], 0
jmp 0x4ea2d3
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.004c5300
mov dword [ebp - 0xc0], esp
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc0]
push eax
call fcn.00407890
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0x9c], edx
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x98]
call fcn.004bdd7c
push 0x52b83c
lea ecx, [ebp - 0x98]
push ecx
call fcn.004c5561
lea ecx, [ebp - 0xa0]
call fcn.00402e80
lea ecx, [ebp - 0x10]
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 0x4ea33b
lea ecx, [ebp - 0x10]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x15], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [ebp - 0x3c]
push edx
push 0x515678
push 1
push 0
push 0x515688
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4ea578
lea ecx, [ebp - 0x58]
call fcn.00407130
push 0
push 0x517ec4
lea ecx, [ebp - 0xc]
call fcn.00403fa0
cmp eax, 0xffffffff
je 0x4ea42d
lea ecx, [ebp - 0xc]
call fcn.004032e0
mov esi, eax
push 0
push 0x517ec8
lea ecx, [ebp - 0xc]
call fcn.00403fa0
sub esi, eax
push esi
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00404120
push eax
lea ecx, [ebp - 0x58]
call fcn.00402e60
lea ecx, [ebp - 0xa4]
call fcn.00402e80
lea ecx, [ebp - 0x58]
call fcn.004070f0
lea ecx, [ebp - 0x58]
call fcn.004032e0
cmp eax, 1
jle 0x4ea3f2
lea ecx, [ebp - 0x58]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [edx + 0x2c]
call ecx
push 0
push 0x517ecc
lea ecx, [ebp - 0xc]
call fcn.00403fa0
push eax
lea edx, [ebp - 0xa8]
push edx
lea ecx, [ebp - 0xc]
call fcn.004041b0
push eax
lea ecx, [ebp - 0xc]
call fcn.00402e60
lea ecx, [ebp - 0xa8]
call fcn.00402e80
lea ecx, [ebp - 0xc]
call fcn.004070f0
lea ecx, [ebp - 0xc]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ecx + 0x50]
call eax
lea ecx, [ebp - 0x38]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
push 0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [eax + 0x3c]
call edx
push 0
lea ecx, [ebp - 0x44]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ecx + 0x44]
call eax
lea ecx, [ebp - 0x48]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [edx + 0x24]
call ecx
lea ecx, [ebp - 4]
call fcn.00404430
movzx edx, al
test edx, edx
jne 0x4ea521
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
push 0x51dbac
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [edx]
call ecx
test eax, eax
jl 0x4ea521
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 4]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.00407e30
add esp, 8
test eax, eax
jl 0x4ea513
lea eax, [ebp - 0x70]
push eax
push 0x51db98
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [edx + 0x18]
call ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [eax + 0x1c]
call edx
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [edx + 8]
call ecx
lea edx, [ebp - 0x54]
push edx
push 0x5156b8
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x4ea562
push 1
lea ecx, [ebp - 0x10]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [edx + 0x18]
call ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ecx + 8]
call eax
lea ecx, [ebp - 0x58]
call fcn.00402e80
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x48]
call fcn.00402e80
lea ecx, [ebp - 4]
call fcn.00402e80
lea ecx, [ebp - 0x38]
call fcn.00402e80
lea ecx, [ebp - 0x44]
call fcn.00402e80
lea ecx, [ebp - 0xc]
call fcn.00402e80
lea ecx, [ebp - 0x10]
call fcn.00402e80
lea ecx, [ebp - 0x34]
call fcn.004a0970
lea ecx, [ebp + 8]
call fcn.00402e80
lea esp, [ebp - 0xc4]
pop esi
mov ecx, dword [ebp - 0x8c]
xor ecx, ebp
call fcn.004bd72f
mov esp, ebp
pop ebp
ret