Function at 0x4858f0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9268
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x564610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x290]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push str.SOFTWARETencentQDesk
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2a0], edi
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x2a4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x485997
push str.CQDeskLinkHelper::GetQDeskInstallPath_open_QDesk_reg_failed_
push 0x11
push str..Logical2UIFunctionListPageQDeskLinkHelper.cpp
call fcn.004f3a00
add esp, 0xc
mov word [edi], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f019a
mov esp, ebp
pop ebp
ret
push 0x206
lea edx, [ebp - 0x216]
push esi
push edx
mov word [ebp - 0x218], si
call sub.MSVCR80.dll_memset
mov edx, dword [ebp - 0x290]
add esp, 0xc
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x218]
push ecx
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x5233dc
push edx
mov dword [ebp - 0x29c], 0x208
call esi
test eax, eax
je 0x4859ef
push str.CQDeskLinkHelper::GetQDeskInstallPath_RegQueryValueEx_failed_
jmp 0x485965
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
push ebx
push edi
call dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x5231c0
push ebx
push edi
call dword [sym.imp.MSVCR80.dll_wcscat_s]
push str.QDesk.exe
push ebx
push edi
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x24
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x485974
mov edx, dword [ebp - 0x290]
lea ecx, [ebp - 0x28c]
push ecx
push 0
push 0
push 0
push str.Version
push edx
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x294], 1
call esi
mov eax, dword [ebp - 0x28c]
push eax
call sub.MFC80U.DLL_Ordinal_265
mov ecx, dword [ebp - 0x28c]
push ecx
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x298], ebx
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0x290]
add esp, 0x10
lea edx, [ebp - 0x28c]
push edx
push ebx
push 0
push 0
push str.Version
push eax
call esi
test eax, eax
jne 0x485c12
push str.2.3.1180.202
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
xor edi, edi
push ebx
lea ecx, [ebp - 0x288]
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
xor esi, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [ebp - 4], 3
lea ecx, [ecx]
push esi
push 0x2e
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t__unsigned_int_const]
mov ebx, eax
mov ecx, ebx
sub ecx, esi
push ecx
push esi
lea edx, [ebp - 0x2c0]
push edx
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 4
call dword [0x5096b8]
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push edi
push 0x2e
lea ecx, [ebp - 0x288]
mov esi, ebx
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t__unsigned_int_const]
mov ebx, eax
sub eax, edi
push eax
push edi
lea ecx, [ebp - 0x2c0]
push ecx
lea ecx, [ebp - 0x288]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 5
call dword [0x5096b8]
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov eax, dword [edx]
cmp eax, esi
jne 0x485b96
cmp eax, ebx
je 0x485bb9
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
add esi, 1
lea edi, [ebx + 1]
call dword [sym.imp.MSVCP80.dll_public:_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::compare_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__const]
test eax, eax
je 0x485af0
jle 0x485bc3
mov dword [ebp - 0x294], 0
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x26c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edi, dword [ebp - 0x2a0]
mov ebx, dword [ebp - 0x298]
push ebx
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
cmp dword [ebp - 0x294], 0
jne 0x485974
mov eax, 1
jmp 0x48597b