Function at 0x413a19
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45caea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
push edi
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x270], 0
mov byte [ebp - 0x210], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x200
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x413ace
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSyncEngine::GetRegAsmFilePath__GetWindowsDirectory___Fail__ErrCode___d
push 4
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
mov ecx, dword [0x476a9c]
call fcn.004092d8
push 0x476808
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [ebp - 0x270]
or edx, 1
mov dword [ebp - 0x270], edx
mov eax, dword [ebp + 8]
jmp 0x413e81
lea ecx, [ebp - 0x214]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 1
lea eax, [ebp - 0x210]
push eax
push 0x471564
lea ecx, [ebp - 0x214]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x214]
call fcn.004020a0
test eax, eax
je 0x413b52
push str.CSyncEngine::GetRegAsmFilePath__Windows_directory_is_empty.
push 4
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0xc
push 0x47680c
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x270]
or al, 1
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x214]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x413e81
push 0x4715a4
push 1
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x214]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x278], eax
mov edx, dword [ebp - 0x278]
mov dword [ebp - 0x27c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x27c]
push eax
call fcn.004020d0
mov byte [ebp - 0x260], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x260]
and ecx, 0xff
test ecx, ecx
je 0x413bc2
push 0x4715a8
lea ecx, [ebp - 0x214]
call sub.MFC42.DLL_CString::operator_2
push str.Microsoft.NETFramework_
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x21c]
push eax
call sub.MFC42.DLL_operator_4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
call fcn.0045ab40
mov byte [ebp - 4], 4
push 0
push 0x4715c8
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x268]
push edx
call sub.MFC42.DLL_operator_4
mov dword [ebp - 0x280], eax
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x284]
call fcn.004020c0
push eax
lea ecx, [ebp - 0x238]
call sub.MFC42.DLL_CFileFind::FindFile
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x268]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x10], 0
je 0x413e14
lea ecx, [ebp - 0x238]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [ebp - 0x10], eax
push 0x106
lea ecx, [ebp - 0x238]
call sub.MFC42.DLL_CFileFind::MatchesMask
test eax, eax
je 0x413c74
jmp 0x413c46
lea ecx, [ebp - 0x238]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
je 0x413c85
jmp 0x413c46
lea ecx, [ebp - 0x238]
call fcn.00416070
test eax, eax
je 0x413e0f
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x238]
call sub.MFC42.DLL_CFileFind::GetFileName
mov byte [ebp - 4], 6
push str.v2.0.
lea ecx, [ebp - 0x23c]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jne 0x413e00
push str.RegAsm.exe
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x26c]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x288], eax
mov edx, dword [ebp - 0x288]
mov dword [ebp - 0x28c], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x25c]
push ecx
call sub.MFC42.DLL_operator_4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x26c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x258]
call fcn.0045ab40
mov byte [ebp - 4], 0xa
push 0
lea ecx, [ebp - 0x25c]
call fcn.004020c0
push eax
lea ecx, [ebp - 0x258]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x413dd7
lea ecx, [ebp - 0x258]
call sub.MFC42.DLL_CFileFind::Close
lea edx, [ebp - 0x25c]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp - 0x270]
or al, 1
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x258]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x25c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x23c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x214]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x413e81
lea ecx, [ebp - 0x258]
call sub.MFC42.DLL_CFileFind::Close
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x258]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x25c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x23c]
call sub.MFC42.DLL_CString::CString
jmp 0x413c46
lea ecx, [ebp - 0x238]
call sub.MFC42.DLL_CFileFind::Close
push str.CSyncEngine::GetRegAsmFilePath__RegAsm.exe_file_directory_is_empty.
push 4
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0xc
push 0x476810
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [ebp - 0x270]
or edx, 1
mov dword [ebp - 0x270], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x214]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4