Function at 0x420db0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4dab9c
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x528f34]
xor eax, esp
mov dword [esp + 0x878], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x528f34]
xor eax, esp
push eax
lea eax, [esp + 0x890]
mov dword fs:[0], eax
push 0x800
lea eax, [esp + 0x8a]
push 0
push eax
mov esi, ecx
mov word [esp + 0x90], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esi + 0x30]
lea ebx, [esi + 0x1200]
push ecx
mov ecx, ebx
call dword [0x4dc394]
lea edx, [esp + 0x30]
push edx
mov ecx, ebx
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 ebp, dword [eax]
mov edi, dword [eax + 4]
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
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 edx, dword [eax + 4]
lea eax, [esp + 0x38]
mov dword [esp + 0x18], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x20], edx
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 edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
push ebp
mov byte [esp + 0x28], 0
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [sym.imp.MSVCR80.dll_tolower]
push ecx
push edx
lea ecx, [esp + 0x2c]
push ecx
call fcn.00424170
add esp, 0x18
cmp dword [ebx + 0x18], 8
jb 0x420e96
mov eax, dword [ebx + 4]
jmp 0x420e99
lea eax, [ebx + 4]
test eax, eax
je 0x420eb3
cmp word [eax], 0
je 0x420eb3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420eb3
test al, 0x10
je 0x420eba
xor eax, eax
jmp 0x421154
push 0x401
lea edx, [esp + 0x88]
push 0
push edx
mov dword [esp + 0x2c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
push 0x2b
lea eax, [esp + 0x8c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42111c
lea ecx, [esp + 0x84]
lea ebp, [esi + 0x121c]
push ecx
mov ecx, ebp
call dword [0x4dc3a4]
push str.TencentQQDownload
mov ecx, ebp
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 edx, [esp + 0x38]
push edx
mov ecx, ebp
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 + 0x48]
push ecx
mov ecx, ebp
mov dword [esp + 0x38], 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 + 0x40]
push ecx
mov ecx, ebp
mov dword [esp + 0x2c], edx
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__::begin_void_]
mov edx, dword [eax]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + 4]
push ecx
mov dword [esp + 0x1c], edx
push edi
mov edi, dword [esp + 0x34]
mov byte [esp + 0x20], 0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [sym.imp.MSVCR80.dll_tolower]
push ecx
push edx
lea ecx, [esp + 0x44]
push ecx
call fcn.00424170
add esp, 0x18
lea ecx, [esp + 0x68]
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_]
push 0x401
lea edx, [esp + 0x88]
push 0
push edx
mov dword [esp + 0x8a4], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
add esi, 0x1c
push esi
push str.DownloadProxy.Downloader.1
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
lea eax, [esp + 0x84]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.004214e0
test eax, eax
je 0x4210f8
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x6c]
call dword [0x4dc3a4]
push 0
push 0x4dcde4
lea ecx, [esp + 0x70]
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 0
lea ecx, [esp + 0x70]
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 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]
mov eax, dword [ecx]
push eax
push eax
push 0x4dcde4
lea ecx, [esp + 0x74]
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 + 0x70]
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 edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x6c]
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, eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x6c]
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 ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x6c]
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__::begin_void_]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push edx
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
mov ecx, dword [sym.imp.MSVCR80.dll_tolower]
push edx
push eax
push ecx
lea esi, [esp + 0x5c]
call fcn.00424080
add esp, 0x1c
cmp dword [esp + 0x80], 8
jb 0x421127
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4210f8
cmp word [eax], 0
je 0x4210f8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4210f8
test al, 0x10
jne 0x4210f8
push 0
push ebp
lea ecx, [esp + 0x70]
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 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]
cmp dword [edx], eax
jne 0x421100
lea eax, [esp + 0x68]
push ebx
push eax
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
je 0x421100
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x68]
mov dword [esp + 0x898], 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_]
cmp dword [esp + 0x20], 0
je 0x42114f
cmp dword [ebx + 0x18], 8
jb 0x42112d
mov ebx, dword [ebx + 4]
jmp 0x421130
lea eax, [esp + 0x6c]
jmp 0x4210b8
add ebx, 4
push 0
push 0
push str.__install
push ebx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov ecx, dword [esp + 0x890]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x878]
xor ecx, esp
call fcn.004cb642
add esp, 0x888
ret