Function at 0x405f90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41b2f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebp
mov ebp, ecx
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov byte [esp + 0x90], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x91]
push 0x80
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x406071
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x42a950]
push eax
push str.CSyncEngine::GetAndDisplaySystemInfo__GetWindowsDirectory___Fail__ErrCode___d
push 4
push ecx
call fcn.00404890
mov ecx, dword [0x42a950]
add esp, 0x10
call fcn.00404d50
push 0x424ed8
lea ecx, [esp + 0x10]
call fcn.0041a252
mov ecx, dword [ebp + 0x2c]
lea edx, [esp + 0xc]
push edx
push 1
mov dword [esp + 0x120], 0
call fcn.00411d50
lea ecx, [esp + 0xc]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
lea eax, [esp + 0x90]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40610c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x42a950]
push eax
push str.CSyncEngine::GetAndDisplaySystemInfo__GetSystemDirectory___Fail__ErrCode___d
push 4
push ecx
call fcn.00404890
mov ecx, dword [0x42a950]
add esp, 0x10
call fcn.00404d50
push 0x424e68
lea ecx, [esp + 0xc]
call fcn.0041a252
mov ecx, dword [ebp + 0x2c]
lea edx, [esp + 8]
push edx
push 1
mov dword [esp + 0x120], 1
call fcn.00411d50
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, 0xfffffffe
pop ebp
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
push esi
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea esi, [ebp + 0xdc]
test eax, eax
je 0x406136
mov eax, dword [eax + 0xd0]
push eax
push 0x424e50
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x406142
push str.Unknown_program_version
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [ebp + 0x2c]
push esi
push 2
call fcn.00411d50
lea ecx, [esp + 0x14]
push ecx
push 0x424030
push 0x42a800
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x42a950]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push str.CSyncEngine::GetAndDisplaySystemInfo__Windows_Directory_:__s
push 1
push eax
call fcn.00404890
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push 0x424ddc
push esi
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp + 0x2c]
add esp, 0xc
push esi
push 2
call fcn.00411d50
lea edx, [esp + 0x94]
push edx
push 0x424030
push 0x42a804
call sub.MFC42.DLL_CString::Format
mov ecx, dword [0x42a950]
add esp, 0xc
lea eax, [esp + 0x94]
push eax
push str.CSyncEngine::GetAndDisplaySystemInfo__System_Directory_:__s
push 1
push ecx
call fcn.00404890
add esp, 0x10
lea edx, [esp + 0x94]
push edx
push 0x424d84
push esi
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp + 0x2c]
add esp, 0xc
push esi
push 2
call fcn.00411d50
lea edi, [ebp + 0x1c]
push edi
call fcn.00404dd0
mov eax, dword [0x42a950]
add esp, 4
push edi
push str.CSyncEngine::GetAndDisplaySystemInfo__Local_IP_Addr_:__s
push 1
push eax
call fcn.00404890
add esp, 0x10
push edi
push 0x424d2c
push esi
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp + 0x2c]
add esp, 0xc
push esi
push 2
call fcn.00411d50
mov ecx, dword [esp + 0x114]
pop esi
pop edi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x114
ret