Function at 0x40aaa0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41b752
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
push ebx
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
push 0x200
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x60]
mov dword [esp + 0x20], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40ab2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x42a950]
push eax
push str.CSyncEngine::GetRegAsmFilePath__GetWindowsDirectory___Fail__ErrCode___d
push 4
push ecx
call fcn.00404890
mov ecx, dword [0x42a950]
add esp, 0x10
call fcn.00404d50
mov esi, dword [esp + 0x26c]
push 0x42a5c8
mov ecx, esi
call fcn.0041a252
jmp 0x40add0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x5c]
lea eax, [esp + 0x10]
push edx
mov edi, 1
push 0x424030
push eax
mov dword [esp + 0x270], edi
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ab98
mov edx, dword [0x42a950]
push str.CSyncEngine::GetRegAsmFilePath__Windows_directory_is_empty.
push 4
push edx
call fcn.00404890
mov esi, dword [esp + 0x278]
add esp, 0xc
mov ecx, esi
push 0x42a5c8
call fcn.0041a252
mov dword [esp + 0x1c], edi
jmp 0x40adbf
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x424094
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40abd8
push 0x424094
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
push str.Microsoft.NETFramework_
lea edx, [esp + 0x1c]
push ecx
push edx
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x264], 2
call fcn.0041a2be
lea eax, [esp + 0x18]
push 0x424090
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x270], 3
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x26c], 4
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x264], 3
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x40ad67
mov bl, 8
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::FindNextFileA
push 0x106
lea ecx, [esp + 0x28]
mov esi, eax
call sub.MFC42.DLL_CFileFind::MatchesMask
test eax, eax
jne 0x40ad5f
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40ad5f
mov edx, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0x28]
call dword [edx + 0x40]
test eax, eax
je 0x40ad5f
lea eax, [esp + 0xc]
lea ecx, [esp + 0x24]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
push str.v2.0.
lea ecx, [esp + 0x10]
mov byte [esp + 0x268], 5
call sub.MFC42.DLL_CString::Find
test eax, eax
jne 0x40ad4e
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call sub.MFC42.DLL_operator_1
push str.RegAsm.exe
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x270], 6
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x264], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
call fcn.0041a2be
mov edx, dword [esp + 0x14]
push 0
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x26c], 9
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 0x40]
jne 0x40adec
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x40]
mov byte [esp + 0x264], bl
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x14]
mov byte [esp + 0x264], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x264], 3
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x40ac4c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::Close
mov ecx, dword [0x42a950]
push str.CSyncEngine::GetRegAsmFilePath__RegAsm.exe_file_directory_is_empty.
push 4
push ecx
call fcn.00404890
mov esi, dword [esp + 0x278]
add esp, 0xc
mov ecx, esi
push 0x42a5c8
call fcn.0041a252
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x264], 2
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x18]
mov byte [esp + 0x264], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x264], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x25c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x25c
ret 4
call sub.MFC42.DLL_CFileFind::Close
mov esi, dword [esp + 0x26c]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x264], bl
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x14]
mov byte [esp + 0x264], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x264], 3
call sub.MFC42.DLL_CString::CString
jmp 0x40ad9d