Function at 0x4e89f0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78c
mov eax, dword [0x54eb90]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004038f0
mov dword [ebp - 0x4a4], eax
push 0xa
lea ecx, [ebp - 0x24c]
call fcn.004a0846
lea eax, [ebp - 0x24c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x728], esp
lea edx, [ebp + 8]
push edx
call fcn.00402120
call fcn.004e1bd0
add esp, 8
mov dword [ebp - 0x4b4], eax
cmp dword [ebp - 0x4b4], 4
je 0x4e8b39
lea eax, [ebp + 8]
push eax
push 0x519758
lea ecx, [ebp - 0x73c]
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 - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x4e8a89
mov dword [ebp - 0x744], 0
jmp 0x4e8aff
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0x3fffffff
jle 0x4e8ab7
mov dword [ebp - 0x748], 0
jmp 0x4e8af3
mov eax, dword [ebp - 0x21c]
shl eax, 1
call fcn.004c5300
mov dword [ebp - 0x74c], esp
mov eax, dword [ebp - 0x4a4]
push eax
mov ecx, dword [ebp - 0x21c]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x74c]
push eax
call fcn.00407890
mov dword [ebp - 0x748], eax
mov ecx, dword [ebp - 0x748]
mov dword [ebp - 0x744], ecx
mov edx, dword [ebp - 0x744]
mov dword [ebp - 0x738], edx
lea eax, [ebp - 0x738]
push eax
lea ecx, [ebp - 0x734]
call fcn.004bdd7c
push 0x52b83c
lea ecx, [ebp - 0x734]
push ecx
call fcn.004c5561
lea ecx, [ebp - 0x73c]
call fcn.00402e80
push 0
lea ecx, [ebp - 0x24c]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x24c]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x228]
call fcn.00402120
lea ecx, [ebp - 0x228]
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 0x4e8b84
lea ecx, [ebp - 0x228]
call fcn.004032e0
cmp eax, 5
jge 0x4e8ba7
lea ecx, [ebp - 0x228]
call fcn.00402e80
lea ecx, [ebp - 0x24c]
call fcn.004a0970
lea ecx, [ebp + 8]
call fcn.00402e80
jmp 0x4e92da
push 1
lea ecx, [ebp - 0x24c]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x24c]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x218]
call fcn.00402120
push 2
lea ecx, [ebp - 0x24c]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x24c]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x214]
call fcn.00402120
push 3
lea ecx, [ebp - 0x24c]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x24c]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x230]
call fcn.00402120
push 0x5c
lea ecx, [ebp - 0x218]
call fcn.00404020
add eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x218]
call fcn.004041b0
push str..lnk
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00404230
add esp, 0xc
lea edx, [ebp - 0x4a0]
push edx
lea ecx, [ebp - 0x22c]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4b0], eax
cmp dword [ebp - 0x4b0], 0xffffffff
jne 0x4e8cd6
lea ecx, [ebp - 0x22c]
call fcn.00402e80
lea ecx, [ebp - 0x220]
call fcn.00402e80
lea ecx, [ebp - 0x230]
call fcn.00402e80
lea ecx, [ebp - 0x214]
call fcn.00402e80
lea ecx, [ebp - 0x218]
call fcn.00402e80
lea ecx, [ebp - 0x228]
call fcn.00402e80
lea ecx, [ebp - 0x24c]
call fcn.004a0970
lea ecx, [ebp + 8]
call fcn.00402e80
jmp 0x4e92da
push 0x5197c8
lea ecx, [ebp - 0x4a8]
call fcn.00403820
mov eax, 1
test eax, eax
je 0x4e9263
mov ecx, dword [ebp - 0x4a0]
and ecx, 0x10
jne 0x4e9244
lea ecx, [ebp - 0x4b8]
call fcn.004089e0
lea edx, [ebp - 0x474]
push edx
push 0x5197cc
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x740]
push ecx
call fcn.00404230
add esp, 0xc
push eax
lea edx, [ebp - 0x4bc]
push edx
call fcn.00404230
add esp, 0xc
lea ecx, [ebp - 0x740]
call fcn.00402e80
push 1
push 0
push 0x515688
lea ecx, [ebp - 0x4b8]
call fcn.00408300
test eax, eax
jl 0x4e922e
lea ecx, [ebp - 0x4b8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x4c0]
call fcn.00408330
lea ecx, [ebp - 0x4c0]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x750], eax
push 0x12
lea ecx, [ebp - 0x4bc]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov eax, dword [ebp - 0x750]
push eax
mov ecx, dword [ebp - 0x750]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
test eax, eax
jl 0x4e9223
lea ecx, [ebp - 0x4b8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x754], eax
push 4
lea ecx, [ebp - 0x710]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x754]
push eax
mov ecx, dword [ebp - 0x754]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jl 0x4e90a0
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x714]
call fcn.00403820
lea ecx, [ebp - 0x714]
call fcn.004032e0
test eax, eax
jne 0x4e8fa7
lea ecx, [ebp - 0x4b8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x758], eax
push 1
lea edx, [ebp - 0x710]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x758]
push ecx
mov edx, dword [ebp - 0x758]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
test eax, eax
jl 0x4e8fa2
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x71c]
call fcn.00403820
push 0x104
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x71c]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x718]
call fcn.00403820
push 0
lea ecx, [ebp - 0x230]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x718]
call fcn.00403fa0
test eax, eax
jl 0x4e8f8c
lea ecx, [ebp - 0x4b8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x75c], eax
lea ecx, [ebp - 0x218]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov edx, dword [ebp - 0x75c]
push edx
mov eax, dword [ebp - 0x75c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
call edx
lea ecx, [ebp - 0x4b8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x760], eax
push 0
lea ecx, [ebp - 0x214]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov eax, dword [ebp - 0x760]
push eax
mov ecx, dword [ebp - 0x760]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
lea ecx, [ebp - 0x4b8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x764], eax
lea ecx, [ebp - 0x220]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x764]
push ecx
mov edx, dword [ebp - 0x764]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
call ecx
lea ecx, [ebp - 0x4c0]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x768], eax
push 1
lea ecx, [ebp - 0x4bc]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov edx, dword [ebp - 0x768]
push edx
mov eax, dword [ebp - 0x768]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
call edx
lea ecx, [ebp - 0x718]
call fcn.00402e80
lea ecx, [ebp - 0x71c]
call fcn.00402e80
jmp 0x4e9090
push 0
lea ecx, [ebp - 0x230]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x714]
call fcn.00403fa0
test eax, eax
jl 0x4e9090
lea ecx, [ebp - 0x4b8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x76c], eax
lea ecx, [ebp - 0x218]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov eax, dword [ebp - 0x76c]
push eax
mov ecx, dword [ebp - 0x76c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
lea ecx, [ebp - 0x4b8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x770], eax
push 0
lea ecx, [ebp - 0x214]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x770]
push ecx
mov edx, dword [ebp - 0x770]
mov eax, dword [edx]
mov ecx, dword [eax + 0x44]
call ecx
lea ecx, [ebp - 0x4b8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x774], eax
lea ecx, [ebp - 0x220]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov edx, dword [ebp - 0x774]
push edx
mov eax, dword [ebp - 0x774]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
call edx
lea ecx, [ebp - 0x4c0]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x778], eax
push 1
lea ecx, [ebp - 0x4bc]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov eax, dword [ebp - 0x778]
push eax
mov ecx, dword [ebp - 0x778]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
lea ecx, [ebp - 0x714]
call fcn.00402e80
jmp 0x4e9223
lea ecx, [ebp - 0x4b8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x77c], eax
push 1
lea ecx, [ebp - 0x710]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x77c]
push eax
mov ecx, dword [ebp - 0x77c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jl 0x4e9223
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x724]
call fcn.00403820
push 0x104
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x724]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x720]
call fcn.00403820
push 0
lea ecx, [ebp - 0x230]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x720]
call fcn.00403fa0
test eax, eax
jl 0x4e920d
lea ecx, [ebp - 0x4b8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x780], eax
lea ecx, [ebp - 0x218]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x780]
push ecx
mov edx, dword [ebp - 0x780]
mov eax, dword [edx]
mov ecx, dword [eax + 0x50]
call ecx
lea ecx, [ebp - 0x4b8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x784], eax
push 0
lea ecx, [ebp - 0x214]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov edx, dword [ebp - 0x784]
push edx
mov eax, dword [ebp - 0x784]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
call edx
lea ecx, [ebp - 0x4b8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x788], eax
lea ecx, [ebp - 0x220]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov eax, dword [ebp - 0x788]
push eax
mov ecx, dword [ebp - 0x788]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
lea ecx, [ebp - 0x4c0]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x78c], eax
push 1
lea ecx, [ebp - 0x4bc]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x78c]
push ecx
mov edx, dword [ebp - 0x78c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
call ecx
lea ecx, [ebp - 0x720]
call fcn.00402e80
lea ecx, [ebp - 0x724]
call fcn.00402e80
lea ecx, [ebp - 0x4c0]
call fcn.00407f30
lea ecx, [ebp - 0x4bc]
call fcn.00402e80
lea ecx, [ebp - 0x4b8]
call fcn.00407f10
lea edx, [ebp - 0x4a0]
push edx
mov eax, dword [ebp - 0x4b0]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4e925e
jmp 0x4e9263
jmp 0x4e8ce6
mov ecx, dword [ebp - 0x4b0]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x4a8]
call fcn.00402e80
lea ecx, [ebp - 0x22c]
call fcn.00402e80
lea ecx, [ebp - 0x220]
call fcn.00402e80
lea ecx, [ebp - 0x230]
call fcn.00402e80
lea ecx, [ebp - 0x214]
call fcn.00402e80
lea ecx, [ebp - 0x218]
call fcn.00402e80
lea ecx, [ebp - 0x228]
call fcn.00402e80
lea ecx, [ebp - 0x24c]
call fcn.004a0970
lea ecx, [ebp + 8]
call fcn.00402e80
jmp 0x4e92da
lea esp, [ebp - 0x78c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd72f
mov esp, ebp
pop ebp
ret