Function at 0x4054e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b2c0
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.00409d20
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00409d40
mov eax, dword [ebp + 8]
test eax, eax
je 0x405554
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.0040a140
jmp 0x40577b
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.0040a5be
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x405609
xor edi, edi
jmp 0x405635
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040a810
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.0040a140
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.0040a5be
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x40566d
xor edi, edi
jmp 0x405699
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040a810
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.0040a140
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.0040a5be
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x4056d1
xor edi, edi
jmp 0x4056fd
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040a810
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.0040a140
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.0040a5be
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x405735
xor edi, edi
jmp 0x405761
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040a810
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.0040a140
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
call fcn.00409f20
lea ecx, [ebp - 0x10]
call fcn.00409e50
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00409d30
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