Function at 0x421180
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4dab5c
mov eax, dword fs:[0]
push eax
sub esp, 0x858
mov eax, dword [0x528f34]
xor eax, esp
mov dword [esp + 0x850], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x528f34]
xor eax, esp
push eax
lea eax, [esp + 0x86c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x87c]
xor edi, edi
push 0x7fe
lea eax, [esp + 0x6a]
push edi
push eax
mov word [esp + 0x70], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x48]
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 esi, [ebp + 0x1c]
push esi
push str.DownloadProxy.Downloader.1
mov dword [esp + 0x87c], edi
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
mov edx, dword [esi]
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esi + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.004214e0
test eax, eax
lea ecx, [esp + 0x48]
je 0x421499
lea edx, [esp + 0x64]
push edx
call dword [0x4dc3a4]
push edi
push 0x4dcde4
lea ecx, [esp + 0x50]
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_first_not_of_wchar_t_const___unsigned_int_const]
push eax
push edi
lea ecx, [esp + 0x50]
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__::erase_unsigned_int__unsigned_int_]
mov eax, 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 [eax]
push eax
push eax
push 0x4dcde4
lea ecx, [esp + 0x54]
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_last_not_of_wchar_t_const___unsigned_int_const]
add eax, 1
push eax
lea ecx, [esp + 0x50]
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__::erase_unsigned_int__unsigned_int_]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_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__::begin_void_]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_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__::end_void_]
mov ecx, dword [eax]
mov edi, dword [eax + 4]
lea edx, [esp + 0x30]
mov dword [esp + 0x18], ecx
push edx
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_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__::begin_void_]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_tolower]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
push esi
push edx
push ecx
lea edx, [esp + 0x28]
push ebx
push edx
call fcn.00424170
add esp, 0x18
cmp dword [ebp + 0x1230], 0
jne 0x42138c
push 0x400
lea eax, [esp + 0x68]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
push 0x2b
lea ecx, [esp + 0x6c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42138c
lea edx, [esp + 0x64]
lea esi, [ebp + 0x121c]
push edx
mov ecx, esi
call dword [0x4dc3a4]
push str.TencentQQDownload
mov ecx, esi
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__::operator_wchar_t_const__]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_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__::begin_void_]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov edi, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_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__::end_void_]
lea edx, [esp + 0x20]
push edx
mov ecx, esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_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__::begin_void_]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
push ebx
lea esi, [esp + 0x34]
call fcn.00424080
add esp, 0x1c
cmp dword [ebp + 0x1214], 0
jne 0x421422
cmp dword [ebp + 0x44], 0
je 0x4213af
lea ecx, [ebp + 0x30]
push ecx
lea ecx, [ebp + 0x1200]
call dword [0x4dc394]
lea edx, [esp + 0x30]
lea esi, [ebp + 0x1200]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_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__::begin_void_]
mov edi, dword [eax]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + 0x30], eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_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__::end_void_]
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_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__::begin_void_]
mov edx, dword [eax]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + 4]
push ecx
mov dword [esp + 0x1c], edx
push edi
mov edi, dword [esp + 0x2c]
mov byte [esp + 0x20], 0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
push edx
push ecx
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.00424170
add esp, 0x18
cmp dword [ebp + 0x1230], 0
je 0x421464
push 0
lea eax, [ebp + 0x121c]
push eax
lea ecx, [esp + 0x50]
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int_const]
mov ecx, 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]
cmp dword [ecx], eax
je 0x421464
lea ecx, [esp + 0x48]
mov dword [esp + 0x874], 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 eax, 1
jmp 0x4214ac
add ebp, 0x1200
lea edx, [esp + 0x48]
push ebp
push edx
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
test al, al
lea ecx, [esp + 0x48]
je 0x421499
mov dword [esp + 0x874], 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 eax, 1
jmp 0x4214ac
mov dword [esp + 0x874], 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_]
xor eax, eax
mov ecx, dword [esp + 0x86c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x850]
xor ecx, esp
call fcn.004cb642
add esp, 0x864
ret 4