Function at 0x4a1890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da067
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x501fc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x25c], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 3
lea eax, [ebp - 0x278]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
lea ecx, [ebp - 0x278]
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 0x4e54b8
lea ecx, [ebp - 0x278]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
test eax, eax
jne 0x4a1926
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x40]
test eax, eax
jne 0x4a21b4
push 2
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
push 0x4e2de0
mov ecx, eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0
lea eax, [ebp - 0x240]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x24c]
movlpd qword [ebp - 0x240], xmm0
movlpd qword [ebp - 0x238], xmm0
movlpd qword [ebp - 0x230], xmm0
call sub.mfc140u.dll_CFile::GetStatus
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4a19ac
test byte [ebp - 0x220], 0x10
jne 0x4a1dec
mov eax, dword [ebp - 0x228]
or eax, dword [ebp - 0x224]
jne 0x4a1dec
lea ecx, [ebp - 0x250]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
push 0x104
lea ecx, [ebp - 0x250]
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 - 0x250]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea ecx, [ebp - 0x26c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
push 0x104
lea ecx, [ebp - 0x26c]
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 - 0x26c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea ecx, [ebp - 0x268]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
lea ecx, [ebp - 0x268]
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 - 0x268]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea ecx, [ebp - 0x254]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
push 0x104
lea ecx, [ebp - 0x254]
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 - 0x254]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0047e2c0
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 6
push edi
push eax
call fcn.0047e5f0
add esp, 0x10
push 1
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x260]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
push 0x4e4634
mov ecx, eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x248]
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
jne 0x4a1b02
push edi
lea ecx, [ebp - 0x260]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x248]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x268]
push 1
push 0x4e2c40
mov dword [ebp - 0x25c], 8
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.004669b0
add esp, 0x20
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xa
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.004771e0
add esp, 8
test eax, eax
je 0x4a1b9c
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0xb
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x248]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x26c]
push 1
push 0x4e2c40
mov dword [ebp - 0x25c], 0x20
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004669b0
add esp, 0x20
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xd
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.004771e0
add esp, 8
test eax, eax
je 0x4a1c36
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0xe
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x248]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x250]
push 1
push 0x4e2c40
mov dword [ebp - 0x25c], 0x80
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.004669b0
add esp, 0x20
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x10
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x274]
push 0
push eax
call fcn.004771e0
add esp, 8
test eax, eax
je 0x4a1cd0
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0x11
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x248]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x244]
push 1
push 0x4e2c40
mov dword [ebp - 0x25c], 0x200
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.004669b0
add esp, 0x20
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x13
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x270]
push 0
push eax
call fcn.004771e0
add esp, 8
test eax, eax
je 0x4a1d6a
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x270]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x274]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x264]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x258]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x260]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x254]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x268]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x26c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 2
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
push 0x4e2de0
mov ecx, eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0
lea eax, [ebp - 0x240]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x24c]
movlpd qword [ebp - 0x240], xmm0
movlpd qword [ebp - 0x238], xmm0
movlpd qword [ebp - 0x230], xmm0
call sub.mfc140u.dll_CFile::GetStatus
test eax, eax
je 0x4a1e6c
test byte [ebp - 0x220], 0x10
jne 0x4a1ff0
mov eax, dword [ebp - 0x228]
or eax, dword [ebp - 0x224]
jne 0x4a1ff0
lea ecx, [ebp - 0x250]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x15
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
push 0x104
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x25c], 0x800
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x254]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.0047e2c0
add esp, 8
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 0x17
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [esi]
push 1
push 0x4e2c40
mov dword [ebp - 0x25c], 0x1800
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0x244]
lea ecx, [ebp - 0x250]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x258]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x14
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x244]
push eax
call fcn.00484e40
add esp, 4
push eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x18
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x19
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [edi]
mov dword [ebp - 0x25c], 0x2000
push dword [eax - 0xc]
push eax
mov eax, dword [ebp - 0x250]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0x244]
lea ecx, [ebp - 0x24c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 2
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
push 0x4e2de0
mov ecx, eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0
lea eax, [ebp - 0x240]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x24c]
movlpd qword [ebp - 0x240], xmm0
movlpd qword [ebp - 0x238], xmm0
movlpd qword [ebp - 0x230], xmm0
call sub.mfc140u.dll_CFile::GetStatus
test eax, eax
je 0x4a2070
test byte [ebp - 0x220], 0x10
jne 0x4a21a4
mov eax, dword [ebp - 0x228]
or eax, dword [ebp - 0x224]
jne 0x4a21a4
push str.c:Program_Files_
lea ecx, [ebp - 0x258]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 0x1a
push 0x26
push eax
call fcn.0049f6d0
add esp, 8
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 0x1c
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [esi]
push 1
push 0x4e2c40
mov dword [ebp - 0x25c], 0x4000
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0x244]
lea ecx, [ebp - 0x258]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0x1a
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x51f4b8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x51dcb4]
cmp eax, dword [ecx + 4]
jg 0x4a21ef
push 0
push str._Search_Program_Files
push 0x4e5144
mov ecx, 0x51dca4
call fcn.004807a0
test eax, eax
je 0x4a2194
push edi
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004669b0
push 2
push eax
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0x1f
push eax
call fcn.004a29e0
add esp, 0x18
push eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0x20
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x264]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x24c]
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 - 0x278]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x24c]
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bf563
mov esp, ebp
pop ebp
ret 4
push 0x51dcb4
call fcn.004bf4db
add esp, 4
cmp dword [0x51dcb4], 0xffffffff
jne 0x4a2127
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0x1d
push eax
call fcn.00487e70
add esp, 4
push dword [eax]
mov ecx, 0x51dca4
mov byte [ebp - 4], 0x1e
call fcn.00462320
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x4def00
call fcn.004bf44a
push 0x51dcb4
mov byte [ebp - 4], 0x1a
call fcn.004bf48a
add esp, 8
jmp 0x4a2127