Function at 0x42e411
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4470df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3f4
push edi
mov dword [ebp - 0x3ec], ecx
mov byte [ebp - 0x3bc], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x3bb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10], 0
push 0x104
push 0
lea eax, [ebp - 0x1ac]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x1ac]
push ecx
mov ecx, dword [ebp - 0x3ec]
add ecx, 0x20c
call fcn.00443772
lea ecx, [ebp - 0xa8]
call sym.RemoteCtrl.exe_public:_void___thiscall_COsInfo::constructor_void_
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call sym.RemoteCtrl.exe_public:_int___thiscall_COsInfo::IsPlatformNT_void_
test eax, eax
je 0x42e776
lea edx, [ebp - 0x3c8]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42e771
push 0x466118
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x3c4], eax
cmp dword [ebp - 0x3c4], 0
je 0x42e771
push 0x466124
mov eax, dword [ebp - 0x3c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3d4], eax
cmp dword [ebp - 0x3d4], 0
je 0x42e764
lea ecx, [ebp - 0x3bc]
push ecx
push 0
mov edx, dword [ebp - 0x3c8]
push edx
push 0x23
call fcn.00407db0
mov ecx, eax
call fcn.00403470
push eax
call dword [ebp - 0x3d4]
push 0x466138
push 0x466140
lea eax, [ebp - 0x3bc]
push eax
push 0x46614c
mov ecx, dword [ebp - 0x3ec]
add ecx, 0x204
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea edx, [ebp - 0x3bc]
push edx
push 0
mov eax, dword [ebp - 0x3c8]
push eax
push 0x1a
call fcn.00407db0
mov ecx, eax
call fcn.00403470
push eax
call dword [ebp - 0x3d4]
push 0x466154
push 0x46615c
lea ecx, [ebp - 0x3bc]
push ecx
push 0x466168
mov edx, dword [ebp - 0x3ec]
add edx, 0x200
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [ebp - 0x3bc]
push eax
push 0
mov ecx, dword [ebp - 0x3c8]
push ecx
push 5
call fcn.00407db0
mov ecx, eax
call fcn.00403470
push eax
call dword [ebp - 0x3d4]
push 0x466170
push 0x466178
lea edx, [ebp - 0x3bc]
push edx
push 0x466184
mov eax, dword [ebp - 0x3ec]
add eax, 0x208
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
push str.SHGetFolderLocation
mov ecx, dword [ebp - 0x3c4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3d0], eax
push str.SHGetDesktopFolder
mov edx, dword [ebp - 0x3c4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3cc], eax
cmp dword [ebp - 0x3d0], 0
je 0x42e75d
cmp dword [ebp - 0x3cc], 0
je 0x42e75d
lea eax, [ebp - 0x3c0]
push eax
push 0
mov ecx, dword [ebp - 0x3c8]
push ecx
push 5
call fcn.00407db0
mov ecx, eax
call fcn.00403470
push eax
call dword [ebp - 0x3d0]
test eax, eax
jne 0x42e75d
lea edx, [ebp - 0x2b8]
push edx
call dword [ebp - 0x3cc]
test eax, eax
jne 0x42e75d
lea eax, [ebp - 0x2b4]
push eax
push 0
mov ecx, dword [ebp - 0x3c0]
push ecx
mov edx, dword [ebp - 0x2b8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [eax + 0x2c]
mov edx, dword [ebp - 0x2b4]
mov dword [ebp - 0x3f0], edx
cmp dword [ebp - 0x3f0], 0
je 0x42e6c7
cmp dword [ebp - 0x3f0], 2
je 0x42e6f9
jmp 0x42e714
push 0
push 0
push 0x104
lea eax, [ebp - 0x1ac]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x2b0]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x2b0]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x42e733
push 0x104
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x1ac]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x42e733
push 0x104
mov edx, dword [ebp - 0x3c0]
add edx, dword [ebp - 0x2b0]
push edx
lea eax, [ebp - 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 0x2b8]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x2b8]
push eax
call dword [edx + 8]
lea ecx, [ebp - 0x1ac]
push ecx
mov ecx, dword [ebp - 0x3ec]
add ecx, 0x20c
call fcn.00443772
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x3c4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42e801
push 0
push 5
lea eax, [ebp - 0x3bc]
push eax
call fcn.00407db0
mov ecx, eax
call fcn.00403470
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x4661b4
push 0x4661bc
lea ecx, [ebp - 0x3bc]
push ecx
push 0x4661c8
mov edx, dword [ebp - 0x3ec]
add edx, 0x200
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov eax, dword [ebp - 0x3ec]
add eax, 0x200
push eax
mov ecx, dword [ebp - 0x3ec]
add ecx, 0x204
call fcn.004437c0
mov ecx, dword [ebp - 0x3ec]
add ecx, 0x200
push ecx
mov ecx, dword [ebp - 0x3ec]
add ecx, 0x208
call fcn.004437c0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
je 0x42e958
push 0x4661d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x3c4], eax
cmp dword [ebp - 0x3c4], 0
je 0x42e951
push 0x4661e0
mov edx, dword [ebp - 0x3c4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3d8], eax
cmp dword [ebp - 0x3d8], 0
je 0x42e93b
lea ecx, [ebp - 0x3dc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
push 0x4661fc
mov eax, dword [ebp - 0x3ec]
add eax, 0x200
push eax
lea ecx, [ebp - 0x3e0]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x3f4], eax
mov edx, dword [ebp - 0x3f4]
mov dword [ebp - 0x3f8], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3dc]
call fcn.004437c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3e0]
call fcn.00443754
lea ecx, [ebp - 0x3dc]
call sym.RemoteCtrl.exe_public:_char_const____thiscall_CMyString::operator_char_const__void_const
push eax
call dword [ebp - 0x3d8]
push 0x466200
mov ecx, dword [ebp - 0x3ec]
add ecx, 0x208
push ecx
lea edx, [ebp - 0x3e4]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x3fc], eax
mov eax, dword [ebp - 0x3fc]
mov dword [ebp - 0x400], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x400]
push ecx
lea ecx, [ebp - 0x3dc]
call fcn.004437c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3e4]
call fcn.00443754
lea ecx, [ebp - 0x3dc]
call sym.RemoteCtrl.exe_public:_char_const____thiscall_CMyString::operator_char_const__void_const
push eax
call dword [ebp - 0x3d8]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3dc]
call fcn.00443754
jmp 0x42e942
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x3c4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42e958
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3e8], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call sym.RemoteCtrl.exe_public_virtual:_void___thiscall_COsInfo::destructor_void_
mov eax, dword [ebp - 0x3e8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret