Function at 0x4f3db0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x540793
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.libWTW.module_public:_static_char____cdecl_wtw::CConv::wtom_wchar_t_const__]
add esp, 4
mov esi, eax
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4f3df0
sub eax, ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
push esi
call dword [sym.imp.libUtils.module_lutBase64Decode]
push esi
mov edi, eax
call sub.mfc90u.dll_delete__
add esp, 0x10
lea ecx, [esp + 0x18]
call dword [0x55a6c4]
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x14]
call dword [0x55a6c4]
mov byte [esp + 0x40], 1
push 0x105
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov esi, dword [esp + 0x18]
push 0x105
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0
push 0x58ade0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov edx, dword [esp + 0x1c]
push edi
push edx
call sub.libImage.module_public:_static_int___cdecl_CxImage::GetImageType_unsigned_char___int_
dec eax
add esp, 8
cmp eax, 4
ja case.default.0x4f3e9b
jmp dword [eax*4 + 0x4f3fcc]
push 0x58ade8
jmp 0x4f3ec3
push str..gif
jmp 0x4f3ec3
push str..ico
jmp 0x4f3ec3
push str..jpg
jmp 0x4f3ec3
push str..png
lea ecx, [esp + 0x18]
call dword [0x55a294]
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CFile::CFile
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x14]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x30]
call sub.mfc90u.dll_CFile::Open
test eax, eax
je 0x4f3f35
mov ecx, dword [esp + 0x1c]
push edi
push ecx
lea ecx, [esp + 0x2c]
call sub.mfc90u.dll_CFile::Write
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CFile::Close
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x18]
mov eax, dword [esi + 4]
add ebx, 4
lea edx, [esp + 0x14]
push edx
push eax
push esi
call fcn.004f6f20
mov ecx, ebx
mov edi, eax
call fcn.004efef0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov ecx, dword [esp + 0x1c]
push ecx
call sub.mfc90u.dll_delete__
add esp, 4
lea ecx, [esp + 0x20]
call dword [0x55a6c4]
mov byte [esp + 0x40], 3
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push str._img_class_emPicture__src__s__align_top____
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [esp + 0x40], 2
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x40], 1
lea ecx, [esp + 0x24]
call fcn.00531e54
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8