Function at 0x4ed2b0
Capabilities:
Check if file exists
Get geographical location
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50122e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x116c
call fcn.004c4a60
mov eax, dword [0x54eb90]
xor eax, ebp
mov dword [ebp - 0x74], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
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 0x4ed314
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402e80
jmp 0x4edd2f
call fcn.004038f0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
push 0x5197d0
push 0x553f24
lea eax, [ebp - 0x40]
push eax
call fcn.00404230
add esp, 0xc
mov dword [ebp - 0x1108], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
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 0x4ed4e4
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x54]
call fcn.004ab77c
mov dword [ebp - 0x110c], eax
mov byte [ebp - 4], 3
push 0
push 0
push 1
push 1
push str.http:__static.qiyi.com_client_city.xml
lea ecx, [ebp - 0x54]
call fcn.004ac0de
mov dword [ebp - 0x1110], eax
mov ecx, dword [ebp - 0x1110]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x58], 0
je 0x4ed482
lea ecx, [ebp - 0x70]
call fcn.004a0f0c
mov dword [ebp - 0x1114], eax
mov byte [ebp - 4], 4
push 0x519848
push 0x553f24
lea edx, [ebp - 0x10d4]
push edx
call fcn.00404230
add esp, 0xc
mov dword [ebp - 0x1118], eax
mov eax, dword [ebp - 0x1118]
mov dword [ebp - 0x111c], eax
mov byte [ebp - 4], 5
push 0
push 0x9001
mov ecx, dword [ebp - 0x111c]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x70]
call fcn.004a1395
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10d4]
call fcn.00402e80
push 0x800
lea ecx, [ebp - 0x878]
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x58]
mov edx, dword [eax + 0x34]
call edx
mov dword [ebp - 0x1120], eax
mov eax, dword [ebp - 0x1120]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jle 0x4ed461
mov ecx, dword [ebp - 0x60]
push ecx
lea edx, [ebp - 0x878]
push edx
lea ecx, [ebp - 0x70]
call fcn.004a0c42
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
jmp 0x4ed415
lea ecx, [ebp - 0x70]
call fcn.004a0ea6
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0x4c]
call eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.004a1025
cmp dword [ebp - 0x5c], 0x800
jl 0x4ed4d0
push str.qiyi_judge_area.xml.tmp
push 0x553f24
lea ecx, [ebp - 0x10d8]
push ecx
call fcn.00404230
add esp, 0xc
mov dword [ebp - 0x1124], eax
lea ecx, [ebp - 0x40]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x1124]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x10d8]
call fcn.00402e80
lea ecx, [ebp - 0x54]
call fcn.004abd53
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.004abe36
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x34]
call fcn.004ab77c
mov dword [ebp - 0x1128], eax
mov byte [ebp - 4], 6
push 0
push 0
push 1
push 1
push str.http:__iplocation.geo.qiyi.com_cityjson
lea ecx, [ebp - 0x34]
call fcn.004ac0de
mov dword [ebp - 0x112c], eax
mov edx, dword [ebp - 0x112c]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x38], 0
je 0x4edcf2
mov byte [ebp - 0x1098], 0
push 0x7ff
push 0
lea eax, [ebp - 0x1097]
push eax
call fcn.004bd840
add esp, 0xc
push 0x800
lea ecx, [ebp - 0x1098]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax + 0x34]
call edx
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
call eax
lea ecx, [ebp - 0x1098]
push ecx
lea edx, [ebp - 0x884]
push edx
call fcn.004eb650
add esp, 8
mov dword [ebp - 0x1130], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x898]
call fcn.00407130
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x88c]
call fcn.00407130
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x87c]
call fcn.00407130
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x894]
call fcn.00407130
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x890]
call fcn.00407130
mov byte [ebp - 4], 0xc
push 0x5198f8
lea ecx, [ebp - 0x894]
call fcn.00403800
push 0
push str._code_:_A00000_
lea ecx, [ebp - 0x884]
call fcn.00403fa0
cmp eax, 0xffffffff
je 0x4ed8d1
push 0
push str._ip_:_
lea ecx, [ebp - 0x884]
call fcn.00403fa0
add eax, 6
push eax
push 0
lea ecx, [ebp - 0x884]
call fcn.00407030
push 0
push 0x519930
lea ecx, [ebp - 0x884]
call fcn.00403fa0
push eax
lea eax, [ebp - 0x10dc]
push eax
lea ecx, [ebp - 0x884]
call fcn.004041b0
mov dword [ebp - 0x1134], eax
mov ecx, dword [ebp - 0x1134]
mov dword [ebp - 0x1138], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x1138]
push edx
lea ecx, [ebp - 0x898]
call fcn.00402e60
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x10dc]
call fcn.00402e80
push 0
push 0x519934
lea ecx, [ebp - 0x884]
call fcn.00403fa0
add eax, 7
push eax
push 0
lea ecx, [ebp - 0x884]
call fcn.00407030
push 0
push 0x519944
lea ecx, [ebp - 0x884]
call fcn.00403fa0
push eax
lea eax, [ebp - 0x10e0]
push eax
lea ecx, [ebp - 0x884]
call fcn.004041b0
mov dword [ebp - 0x113c], eax
mov ecx, dword [ebp - 0x113c]
mov dword [ebp - 0x1140], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x1140]
push edx
lea ecx, [ebp - 0x88c]
call fcn.00402e60
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x10e0]
call fcn.00402e80
push 0
push 0x519948
lea ecx, [ebp - 0x884]
call fcn.00403fa0
add eax, 0xb
push eax
push 0
lea ecx, [ebp - 0x884]
call fcn.00407030
push 0
push 0x519960
lea ecx, [ebp - 0x884]
call fcn.00403fa0
push eax
lea eax, [ebp - 0x10e4]
push eax
lea ecx, [ebp - 0x884]
call fcn.004041b0
mov dword [ebp - 0x1144], eax
mov ecx, dword [ebp - 0x1144]
mov dword [ebp - 0x1148], ecx
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x1148]
push edx
lea ecx, [ebp - 0x87c]
call fcn.00402e60
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x10e4]
call fcn.00402e80
push 0
push 0x519964
lea ecx, [ebp - 0x884]
call fcn.00403fa0
add eax, 0xd
push eax
push 0
lea ecx, [ebp - 0x884]
call fcn.00407030
push 0
push 0x519980
lea ecx, [ebp - 0x884]
call fcn.00403fa0
sub eax, 1
push eax
lea eax, [ebp - 0x10e8]
push eax
lea ecx, [ebp - 0x884]
call fcn.004041b0
mov dword [ebp - 0x114c], eax
mov ecx, dword [ebp - 0x114c]
mov dword [ebp - 0x1150], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x1150]
push edx
lea ecx, [ebp - 0x894]
call fcn.00402e60
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x10e8]
call fcn.00402e80
push 0x519984
push 0x519988
lea ecx, [ebp - 0x894]
call fcn.00403dc0
lea ecx, [ebp - 0x894]
call fcn.004070f0
push 0
push 0x51998c
lea ecx, [ebp - 0x884]
call fcn.00403fa0
add eax, 0xa
push eax
push 0
lea ecx, [ebp - 0x884]
call fcn.00407030
push 0
push 0x5199a4
lea ecx, [ebp - 0x884]
call fcn.00403fa0
sub eax, 1
push eax
lea eax, [ebp - 0x10ec]
push eax
lea ecx, [ebp - 0x884]
call fcn.004041b0
mov dword [ebp - 0x1154], eax
mov ecx, dword [ebp - 0x1154]
mov dword [ebp - 0x1158], ecx
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x1158]
push edx
lea ecx, [ebp - 0x890]
call fcn.00402e60
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x10ec]
call fcn.00402e80
push 0x5199a8
push 0x5199ac
lea ecx, [ebp - 0x890]
call fcn.00403dc0
lea ecx, [ebp - 0x890]
call fcn.004070f0
lea ecx, [ebp - 0x888]
call fcn.00407130
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x890]
push eax
mov ecx, dword [ebp - 0x894]
push ecx
mov edx, dword [ebp - 0x87c]
push edx
mov eax, dword [ebp - 0x88c]
push eax
mov ecx, dword [ebp - 0x898]
push ecx
push 0x5199b0
lea edx, [ebp - 0x888]
push edx
call fcn.00406020
add esp, 0x1c
push ecx
mov ecx, esp
mov dword [ebp - 0x10f0], esp
lea eax, [ebp - 0x888]
push eax
call fcn.00402120
mov dword [ebp - 0x115c], eax
mov ecx, 0x553e48
call fcn.004f2090
lea ecx, [ebp - 0x894]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.004bfdd2
add esp, 4
test eax, eax
jle 0x4ed9ad
lea ecx, [ebp - 0x894]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.004bfdd2
add esp, 4
cmp eax, 0x91
je 0x4ed9ad
lea ecx, [ebp + 8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x519a4c
push 0x519a50
push 0x519a5c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp + 8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x519a6c
push 0x519a70
push 0x519a88
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4ed9e9
lea ecx, [ebp + 8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x519a98
push 0x519a9c
push 0x519aa8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp + 8]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x519ab8
push 0x519abc
push str.IpLimit
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x10b0]
call fcn.00410c70
mov dword [ebp - 0x1160], eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x40]
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 0x4edad2
mov dword [ebp - 0x10b4], 0
push str.r_ccsUTF_8
lea ecx, [ebp - 0x40]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x10b4]
push ecx
call fcn.004c02f9
add esp, 0xc
cmp dword [ebp - 0x10b4], 0
je 0x4edad2
mov edx, dword [ebp - 0x10b4]
push edx
lea ecx, [ebp - 0x10c8]
call fcn.004ac936
mov dword [ebp - 0x1164], eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x10cc]
call fcn.00407130
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x10cc]
push eax
lea ecx, [ebp - 0x10c8]
call fcn.004ace84
mov dword [ebp - 0x1168], eax
cmp dword [ebp - 0x1168], 0
je 0x4edaa9
lea ecx, [ebp - 0x10cc]
push ecx
lea ecx, [ebp - 0x10b0]
call fcn.004010d0
jmp 0x4eda74
lea ecx, [ebp - 0x10c8]
call fcn.004acd2b
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x10cc]
call fcn.00402e80
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x10c8]
call fcn.004acd69
lea ecx, [ebp - 0x880]
call fcn.00407130
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x890]
push edx
push str.cityId__s_
lea eax, [ebp - 0x880]
push eax
call fcn.00406020
add esp, 0xc
mov dword [ebp - 0x10d0], 0
jmp 0x4edb17
mov ecx, dword [ebp - 0x10d0]
add ecx, 1
mov dword [ebp - 0x10d0], ecx
lea ecx, [ebp - 0x10b0]
call fcn.0049df30
cmp dword [ebp - 0x10d0], eax
jge 0x4edc6b
push 0
lea ecx, [ebp - 0x880]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov edx, dword [ebp - 0x10d0]
push edx
lea ecx, [ebp - 0x10b0]
call fcn.0048bf60
mov ecx, eax
call fcn.00403fa0
cmp eax, 0xffffffff
je 0x4edc66
push 0
push str.autostart_
mov eax, dword [ebp - 0x10d0]
push eax
lea ecx, [ebp - 0x10b0]
call fcn.0048bf60
mov ecx, eax
call fcn.00403fa0
add eax, 0xb
push eax
push 0
mov ecx, dword [ebp - 0x10d0]
push ecx
lea ecx, [ebp - 0x10b0]
call fcn.0048bf60
mov ecx, eax
call fcn.00407030
push 1
lea edx, [ebp - 0x10f8]
push edx
mov eax, dword [ebp - 0x10d0]
push eax
lea ecx, [ebp - 0x10b0]
call fcn.0048bf60
mov ecx, eax
call fcn.004041b0
mov dword [ebp - 0x116c], eax
push 0x519b2c
mov ecx, dword [ebp - 0x116c]
push ecx
call fcn.004043b0
add esp, 8
mov byte [ebp - 0x10f1], al
lea ecx, [ebp - 0x10f8]
call fcn.00402e80
movzx edx, byte [ebp - 0x10f1]
test edx, edx
je 0x4edc66
push ecx
mov ecx, esp
mov dword [ebp - 0x10fc], esp
push 0x519b30
call fcn.00403820
mov dword [ebp - 0x1170], eax
mov eax, dword [ebp - 0x1170]
mov dword [ebp - 0x1174], eax
mov byte [ebp - 4], 0x17
push ecx
mov ecx, esp
mov dword [ebp - 0x1100], esp
push 0x519b34
call fcn.00403820
mov dword [ebp - 0x1178], eax
mov byte [ebp - 4], 0x16
call fcn.004e1580
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp - 0x1104], esp
push str.QiyiInstaller_DynamicConfig:_set_autostart0
call fcn.00403820
mov dword [ebp - 0x117c], eax
mov ecx, 0x553e48
call fcn.004f2090
jmp 0x4edb08
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x880]
call fcn.00402e80
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x10b0]
call fcn.004010b0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x888]
call fcn.00402e80
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x890]
call fcn.00402e80
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x894]
call fcn.00402e80
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x87c]
call fcn.00402e80
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x88c]
call fcn.00402e80
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x898]
call fcn.00402e80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x884]
call fcn.00402e80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004abe36
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402e80
jmp 0x4edd19
mov dword [ebp - 4], 0
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 ecx, dword [ebp - 0x74]
xor ecx, ebp
call fcn.004bd72f
mov esp, ebp
pop ebp
ret