Function at 0x4a1470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d31a2
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4fafc0]
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__7]
push 0x4de4c0
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 0x4a14f1
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x40]
test eax, eax
jne 0x4a1ade
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.00477000
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add esp, 8
test eax, eax
jne 0x4a186e
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.0047df30
lea eax, [ebp + 8]
mov byte [ebp - 4], 6
push edi
push eax
call fcn.0047e260
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 0x4dd63c
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 0x4a1632
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 0x4dbc48
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.00466800
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.00477000
add esp, 8
test eax, eax
je 0x4a16a8
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 0x4dbc48
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.00466800
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.00477000
add esp, 8
test eax, eax
je 0x4a171e
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 0x4dbc48
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.00466800
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.00477000
add esp, 8
test eax, eax
je 0x4a1794
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 0x4dbc48
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.00466800
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.00477000
add esp, 8
test eax, eax
je 0x4a180a
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.00477000
add esp, 8
test eax, eax
jne 0x4a19b7
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.0047df30
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 0x4dbc48
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.00484ab0
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.00477000
add esp, 8
test eax, eax
jne 0x4a1ad1
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.0049f280
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 0x4dbc48
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 [0x518498]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x516c94]
cmp eax, dword [ecx + 4]
jg 0x4a1b09
push 0
push str._Search_Program_Files
push 0x4de14c
mov ecx, 0x516c84
call fcn.00480400
test eax, eax
je 0x4a1ac4
push edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00466800
push 2
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 0x20
push eax
call fcn.004a20d0
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 0x516c94
call fcn.004bea9b
add esp, 4
cmp dword [0x516c94], 0xffffffff
jne 0x4a1a69
lea eax, [ebp + 8]
mov byte [ebp - 4], 0x1e
push eax
call fcn.00487ae0
add esp, 4
push dword [eax]
mov ecx, 0x516c84
mov byte [ebp - 4], 0x1f
call fcn.004623a0
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x4d8020
call fcn.004bea0a
push 0x516c94
mov byte [ebp - 4], 0x1b
call fcn.004bea4a
add esp, 8
jmp 0x4a1a69