Function at 0x4f52f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d4d7
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x584f80]
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__18]
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__21]
push 0x539de0
lea ecx, [ebp - 0x278]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__25]
test eax, eax
jne 0x4f5386
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x40]
test eax, eax
jne 0x4f5c14
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__17]
push 0x533140
mov ecx, eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__25]
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 0x4f540c
test byte [ebp - 0x220], 0x10
jne 0x4f584c
mov eax, dword [ebp - 0x228]
or eax, dword [ebp - 0x224]
jne 0x4f584c
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.004a4030
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 6
push edi
push eax
call fcn.004634a0
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__17]
push 0x539de8
mov ecx, eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__25]
lea ecx, [ebp - 0x248]
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
jne 0x4f5562
push edi
lea ecx, [ebp - 0x260]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
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 0x532e9c
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.0045edd0
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.00462c50
add esp, 8
test eax, eax
je 0x4f55fc
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__26]
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 0x532e9c
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.0045edd0
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.00462c50
add esp, 8
test eax, eax
je 0x4f5696
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__26]
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 0x532e9c
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.0045edd0
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.00462c50
add esp, 8
test eax, eax
je 0x4f5730
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__26]
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 0x532e9c
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.0045edd0
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.00462c50
add esp, 8
test eax, eax
je 0x4f57ca
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__26]
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__17]
push 0x533140
mov ecx, eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__25]
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 0x4f58cc
test byte [ebp - 0x220], 0x10
jne 0x4f5a50
mov eax, dword [ebp - 0x228]
or eax, dword [ebp - 0x224]
jne 0x4f5a50
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.004a4030
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 0x532e9c
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__26]
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.004ac540
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__26]
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__26]
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__17]
push 0x533140
mov ecx, eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__25]
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 0x4f5ad0
test byte [ebp - 0x220], 0x10
jne 0x4f5c04
mov eax, dword [ebp - 0x228]
or eax, dword [ebp - 0x224]
jne 0x4f5c04
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__27]
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 0x1a
push 0x26
push eax
call fcn.004c7e90
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 0x532e9c
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__26]
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 [0x5e2e08]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x58c058]
cmp eax, dword [ecx + 4]
jg 0x4f5c4f
push 0
push str._Search_Program_Files
push 0x539a6c
mov ecx, 0x58c048
call fcn.004e8f20
test eax, eax
je 0x4f5bf4
push edi
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0045edd0
push 2
push eax
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0x1f
push eax
call fcn.004f60c0
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__26]
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__26]
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.00506d06
mov esp, ebp
pop ebp
ret 4
push 0x58c058
call fcn.00506c7e
add esp, 4
cmp dword [0x58c058], 0xffffffff
jne 0x4f5b87
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0x1d
push eax
call fcn.004ea930
add esp, 4
push dword [eax]
mov ecx, 0x58c048
mov byte [ebp - 4], 0x1e
call fcn.004dcd10
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x530210
call fcn.00506bed
push 0x58c058
mov byte [ebp - 4], 0x1a
call fcn.00506c2d
add esp, 8
jmp 0x4f5b87