Function at 0x40922c
Capabilities:
Get common file path

Disassembly:
mov eax, 0x42a350
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x248
push ebx
push esi
push edi
mov esi, ecx
call fcn.00409856
test al, al
jne 0x409264
push 0x442040
push dword [0x44df84]
call fcn.00412a83
pop ecx
pop ecx
push 1
pop eax
jmp 0x40952b
and word [ebp - 0x254], 0
mov ecx, 0x84
xor eax, eax
lea edi, [ebp - 0x252]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov eax, dword [eax - 8]
test eax, eax
jne 0x4092f8
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
call fcn.00409a65
and dword [ebp - 4], 0
lea ebx, [esi + 4]
push eax
mov ecx, ebx
call sub.MFC42u.DLL_CString::operator_1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
push 0x5c
mov ecx, ebx
call sub.MFC42u.DLL_CString::ReverseFind
inc eax
mov ecx, ebx
push eax
lea eax, [ebp + 0xc]
push eax
call sub.MFC42u.DLL_CString::Mid_1
lea ebx, [esi + 0x10]
push eax
mov ecx, ebx
mov dword [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
jmp 0x409383
lea ebx, [esi + 0x10]
push edi
mov ecx, ebx
call sub.MFC42u.DLL_CString::operator_1
push 0x44203c
lea ecx, [ebp - 0x18]
call fcn.004015c5
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [0x44df84]
lea ecx, [eax + 0x68c]
call fcn.00409b90
mov eax, dword [eax]
mov byte [ebp - 4], 3
test eax, eax
je 0x40933d
mov eax, dword [eax]
jmp 0x40933f
xor eax, eax
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42u.DLL_operator_1
lea ecx, [esi + 4]
push eax
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x409373
call fcn.0040172d
and dword [ebp + 0xc], 0
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x409383
call fcn.0040172d
lea eax, [ebp - 0x254]
lea ecx, [esi + 0xc]
push eax
call sub.MFC42u.DLL_CString::operator_2
push 0x44de8c
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_1
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 5
jle 0x4093c0
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x442034
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, dword [ecx]
mov byte [ebp - 4], 6
push ecx
push 0x442024
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x14
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0040988f
mov edi, eax
test edi, edi
jne 0x409418
push dword [ebp - 0x10]
push str.UpdateVersion___Cannot_open_an_internet_session_for_url__s._hSession_is_null_r_n
push dword [0x44df84]
call fcn.00412a83
add esp, 0xc
push 2
pop esi
jmp 0x409511
lea eax, [esi + 0xc]
push ebx
push eax
lea eax, [ebp + 8]
push eax
call sub.MFC42u.DLL_operator_2
lea ebx, [esi + 8]
push eax
mov ecx, ebx
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString
push dword [ebx]
mov ecx, esi
push edi
call fcn.004099b5
push edi
mov byte [ebp + 0x13], al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [ebp + 0x13], 0
jne 0x409464
push dword [ebx]
push str.UpdateVersion___Cannot_perform_DownloadFile_on_file__s_r_n
jmp 0x4094aa
and dword [ebp - 0x40], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
lea ecx, [ebp - 0x40]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x409493
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UpdateVersion___Unable_to_check_the_file_size._GetFileAttributesEx_API_returned__d_r_n
jmp 0x4094aa
cmp dword [ebp - 0x24], 0
jne 0x4094bf
cmp dword [ebp - 0x20], 0x3c00
jae 0x4094bf
push dword [ebp - 0x20]
push str.UpdateVersion___Downloaded_file_is_too_small._its_size_is__d_r_n
push dword [0x44df84]
call fcn.00412a83
add esp, 0xc
push 3
jmp 0x409412
push 0
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push ebx
call sub.MFC42u.DLL_CString::CString_2
push ecx
lea edi, [esi + 4]
mov ecx, esp
mov dword [ebp + 0xc], esp
push edi
mov byte [ebp - 4], 8
call sub.MFC42u.DLL_CString::CString_2
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00409aa3
test eax, eax
jne 0x40950f
mov ebx, dword [ebx]
mov edi, dword [edi]
push ebx
push edi
push str.UpdateVersion___Cannot_switch_the_current_file__s_with_the_updated_file__s_r_n
push dword [0x44df84]
call fcn.00412a83
add esp, 0x10
push 4
jmp 0x409412
xor esi, esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc