Function at 0x42c290
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x435ef9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 8]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_3
push 0x208
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x42c3ac
mov al, byte [esp + 0x5c]
push ebp
push edi
mov byte [esp + 0x24], al
mov edi, 0x446fe0
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x2c], ebx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x42c341
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
mov esi, 0x446fe0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea eax, [esp + 0x64]
lea ecx, [esp + 0x34]
push eax
mov byte [esp + 0x5c], 2
mov dword [esp + 0x68], 0x446fe0
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
mov cl, byte [esp + 0x24]
push ebx
mov byte [esp + 0x44], cl
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0x24]
mov eax, dword [edx]
push eax
push ebx
push ecx
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea edx, [esp + 0x34]
push 0x43bd40
push edx
mov byte [esp + 0x60], 2
mov dword [esp + 0x3c], vtable.SystemError.0
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop ebp
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.0042c0b0
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x5c]
mov bl, 5
test eax, eax
mov byte [esp + 0x50], bl
jne 0x42c43f
mov ecx, dword [esp + 0x10]
push 0x5c
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea edx, [esp + 0x14]
dec esi
lea ecx, [esp + 0x10]
push esi
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x60]
push eax
push ecx
mov byte [esp + 0x5c], 6
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x5c]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x14]
jmp 0x42c466
push eax
lea edx, [esp + 0xc]
lea eax, [esp + 0x60]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 8
call sub.MFC42.DLL_CString::operator
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x58]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x18], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x48]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 8