Function at 0x405710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c1d0
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 0x405784
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 0x405989
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]
lea edx, [ebp - 0x118]
rep stosd dword es:[edi], eax
mov edi, dword [0x411e78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x118]
push ecx
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 0x405817
xor edi, edi
jmp 0x405843
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_main_application
push edi
lea ecx, [ebp - 0x10]
call fcn.0040b020
lea eax, [ebp - 0x118]
lea ecx, [ebp + 8]
push eax
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 0x40587b
xor edi, edi
jmp 0x4058a7
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_aux_application_1
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._bargames.exe
lea ecx, [ebp + 8]
call fcn.0040b49e
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x4058df
xor edi, edi
jmp 0x40590b
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_2
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._barads.exe
lea ecx, [ebp + 8]
call fcn.0040b49e
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x405943
xor edi, edi
jmp 0x40596f
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_3
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.0040ae00
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 4