Function at 0x4a1960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce7d2
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4f4fa0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 3
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
push 0x4d9470
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
test eax, eax
jne 0x4a19e1
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x40]
test eax, eax
jne 0x4a1fce
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.00476c40
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add esp, 8
test eax, eax
jne 0x4a1d5e
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
push 0x104
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
push 0x104
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
push 0x104
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0047dec0
lea eax, [ebp + 8]
mov byte [ebp - 4], 6
push edi
push eax
call fcn.0047e1f0
add esp, 0x10
push 1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
push 0x4d85ec
mov ecx, eax
mov byte [ebp - 4], 8
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
jne 0x4a1b22
push edi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x18]
push 1
push 0x4d6bf0
mov dword [ebp - 0x14], 1
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004663f0
add esp, 0x20
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00476c40
add esp, 8
test eax, eax
je 0x4a1b98
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x1c]
push 1
push 0x4d6bf0
mov dword [ebp - 0x14], 4
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004663f0
add esp, 0x20
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xe
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.00476c40
add esp, 8
test eax, eax
je 0x4a1c0e
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xf
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x20]
push 1
push 0x4d6bf0
mov dword [ebp - 0x14], 0x10
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004663f0
add esp, 0x20
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x11
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x30]
push 0
push eax
call fcn.00476c40
add esp, 8
test eax, eax
je 0x4a1c84
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x12
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x3c]
push 1
push 0x4d6bf0
mov dword [ebp - 0x14], 0x40
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004663f0
add esp, 0x20
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x14
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.00476c40
add esp, 8
test eax, eax
je 0x4a1cfa
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.00476c40
add esp, 8
test eax, eax
jne 0x4a1ea7
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x16
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
push 0x104
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0x100
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0047dec0
add esp, 8
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 0x18
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [esi]
push 1
push 0x4d6bf0
mov dword [ebp - 0x14], 0x300
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0x3c]
lea ecx, [ebp + 8]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x15
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x3c]
push eax
call fcn.00484ea0
add esp, 4
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x19
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x1a
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov ecx, dword [edi]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0x400
push dword [ecx - 0xc]
push ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x10]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.00476c40
add esp, 8
test eax, eax
jne 0x4a1fc1
push str.c:Program_Files_
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x1b
push 0x26
push eax
call fcn.0049f6d0
add esp, 8
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 0x1d
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [esi]
push 1
push 0x4d6bf0
mov dword [ebp - 0x14], 0x800
push dword [eax - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp + 8]
lea ecx, [ebp - 0x3c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x1b
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x512438]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x510c14]
cmp eax, dword [ecx + 4]
jg 0x4a1ff9
push 0
push str._Search_Program_Files
push 0x4d90fc
mov ecx, 0x510c04
call fcn.00480420
test eax, eax
je 0x4a1fb4
push edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004663f0
push 2
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 0x20
push eax
call fcn.004a25c0
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x21
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x3c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x510c14
call fcn.004bf0ef
add esp, 4
cmp dword [0x510c14], 0xffffffff
jne 0x4a1f59
lea eax, [ebp + 8]
mov byte [ebp - 4], 0x1e
push eax
call fcn.00487fe0
add esp, 4
push dword [eax]
mov ecx, 0x510c04
mov byte [ebp - 4], 0x1f
call fcn.00461f00
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x4d3680
call fcn.004befa7
push 0x510c14
mov byte [ebp - 4], 0x1b
call fcn.004bf0a5
add esp, 8
jmp 0x4a1f59