Function at 0x4022f0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40b9a7
push eax
mov eax, dword [0x4165e4]
mov dword fs:[0], esp
sub esp, 0x2ac
push esi
push edi
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.UseNewRunProcess___PID:_d_____g_nServerMode:_d____Begin
call fcn.00401770
add esp, 0xc
push 0x1388
push str..pipeXF_MainListenPipeServ
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x402377
mov edx, dword [esi + 0xc4]
lea ecx, [esi + 0xc4]
call dword [edx + 0x54]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x412f58
call fcn.00401770
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x2ac]
mov dword fs:[0], ecx
add esp, 0x2b8
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str.UseNewRunProcess___WaitNamedPipe____
call fcn.00401770
add esp, 8
lea eax, [esp + 0xac]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_1
push str.msresMFrame.dll
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c0], 0
call sub.MFC42u.DLL_CString::operator
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x402402
mov eax, dword [esi + 0xc4]
lea ecx, [esi + 0xc4]
call dword [eax + 0x54]
call edi
mov ecx, dword [esp + 8]
push eax
push ecx
push str.UseNewRunProcess_______LoadLibrary1:_s_error:_d
call fcn.00401770
add esp, 0xc
jmp 0x402575
push str.InitMainFrame
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402559
call eax
test eax, eax
jne 0x402435
mov edx, dword [esi + 0xc4]
lea ecx, [esi + 0xc4]
call dword [edx + 0x54]
push str.UseNewRunProcess___InitMainFrame
jmp 0x40256d
push str.UseNewRunProcess___InitMainFrame_success
call fcn.00401770
mov eax, dword [0x4165dc]
add esp, 4
test eax, eax
jle 0x4024b9
push 0
lea ecx, [esp + 0x2c]
call fcn.00408250
lea ecx, [esp + 0x28]
mov byte [esp + 0x2bc], 1
call sub.MFC42u.DLL_CDialog::DoModal
lea ecx, [esp + 0xa8]
mov byte [esp + 0x2bc], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xa4]
mov byte [esp + 0x2bc], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xa0]
mov byte [esp + 0x2bc], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x2bc], 0
call fcn.0040a00a
jmp 0x402575
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
call ebp
test eax, eax
je 0x402520
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [esp + 0x10]
push ecx
call esi
lea edx, [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x14]
cmp eax, 0x10
je 0x40250c
cmp eax, 0x12
je 0x402513
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
call ebp
test eax, eax
jne 0x4024dd
jmp 0x402520
push str.UseNewRunProcess____
jmp 0x402518
push str.UseNewRunProcess_____
call fcn.00401770
add esp, 4
push str.UseNewRunProcess_______________
call fcn.00401770
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c0], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x2ac]
mov dword fs:[0], ecx
add esp, 0x2b8
ret
mov edx, dword [esi + 0xc4]
lea ecx, [esi + 0xc4]
call dword [edx + 0x54]
push str.UseNewRunProcess___GetProcAddress_error
call fcn.00401770
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x2bc], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x2b4]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2b8
ret