Function at 0x404fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40acc0
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.004097a0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004097c0
mov eax, dword [ebp + 8]
test eax, eax
je 0x405054
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.00409bc0
jmp 0x40527b
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.0040a03e
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x405109
xor edi, edi
jmp 0x405135
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040a290
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.00409bc0
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.0040a03e
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x40516d
xor edi, edi
jmp 0x405199
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040a290
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.00409bc0
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.0040a03e
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x4051d1
xor edi, edi
jmp 0x4051fd
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040a290
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.00409bc0
lea eax, [ebp - 0x118]
lea ecx, [ebp + 8]
push eax
call sub.MFC42.DLL_CString::operator_1
push str._barads.exe
lea ecx, [ebp + 8]
call fcn.0040a03e
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x405235
xor edi, edi
jmp 0x405261
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040a290
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_3
push edi
lea ecx, [ebp - 0x10]
call fcn.00409bc0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
call fcn.004099a0
lea ecx, [ebp - 0x10]
call fcn.004098d0
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004097b0
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