Function at 0x407480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push esi
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x10]
call fcn.0040ac00
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0040ac20
mov eax, dword [ebp + 8]
test eax, eax
je 0x4074f4
lea eax, [ebp - 0x424]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x424]
push str.yqs_installer
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040b020
jmp 0x4076b7
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_3
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x21c]
lea edx, [ebp - 0x21c]
push 0x104
push edx
rep stosd dword es:[edi], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x118]
push 3
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x118]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, str.Program_Files_barclient
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x118]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::operator_1
push str._barclient.exe
lea ecx, [ebp + 8]
call fcn.0040b49e
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x4075a9
xor edi, edi
jmp 0x4075d5
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040b6f0
mov ecx, dword [ebp - 0x14]
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str.yqs_main_application
push edi
lea ecx, [ebp - 0x10]
call fcn.0040b020
lea edx, [ebp - 0x118]
lea ecx, [ebp + 8]
push edx
call sub.MFC42.DLL_CString::operator_1
push str._barrms.exe
lea ecx, [ebp + 8]
call fcn.0040b49e
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x40760d
xor edi, edi
jmp 0x407639
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040b6f0
mov eax, dword [ebp - 0x14]
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str.yqs_aux_application_1
push edi
lea ecx, [ebp - 0x10]
call fcn.0040b020
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::operator_1
push str._bargames.exe
lea ecx, [ebp + 8]
call fcn.0040b49e
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x407671
xor edi, edi
jmp 0x40769d
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040b6f0
mov edx, dword [ebp - 0x14]
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str.yqs_aux_application_2
push edi
lea ecx, [ebp - 0x10]
call fcn.0040b020
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
call fcn.0040ad30
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ac10
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x430]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret