Function at 0x4d4840
Capabilities:
Get common file path

Disassembly:
sub esp, 0x870
push ebx
mov ebx, dword [esp + 0x87c]
push ebp
mov ebp, dword [esp + 0x87c]
push esi
lea edx, [ebx + 4]
lea esi, [esp + 0x468]
mov dword [esp + 0x14], edx
call fcn.004ad160
mov eax, esi
push eax
push str.Saving__s
lea eax, [esp + 0x268]
mov word [esp + 0x268], 0
call fcn.00483050
mov edx, dword [edi]
mov edx, dword [edx + 0x20]
add esp, 8
push 0
lea eax, [esp + 0x264]
push eax
mov ecx, edi
call edx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0xffffffff
call fcn.004d3c40
mov eax, dword [esp + 0x10]
cmp eax, 0x11
jbe 0x4d48e0
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push str.The_file_type_is_not_recognized.
mov ecx, edi
call eax
mov dword [ebp], 2
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x870
ret 8
cmp dword [ebx + 0x214], 0
je 0x4d491f
mov ecx, dword [ebx + 0x214]
mov edx, dword [ecx]
push 3
push eax
mov eax, dword [edx]
call eax
test al, al
jne 0x4d491f
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push str.The_file_format_is_not_supported.
mov ecx, edi
call eax
mov dword [ebp], 2
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x870
ret 8
lea ecx, [esp + 0x670]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str..tmp
lea edx, [esp + 0x674]
push edx
lea esi, [esp + 0x60]
call fcn.004ac1f0
lea eax, [esp + 0x23]
and eax, 0xfffffffc
mov dword [esp + 0x18], 0x6dbfc0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 0xffffffff
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x1c], 0x70c790
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
mov esi, dword [ebx + 0x210]
mov dword [esp + 0x18], 0x70c790
je 0x4d499a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push 0
push 0xc0000000
lea ecx, [esp + 0x64]
push ecx
mov eax, esi
call fcn.004abf70
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
jne 0x4d49e0
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push str.The_file_could_not_be_opened.
mov ecx, edi
call eax
lea eax, [esp + 0x18]
mov dword [ebp], 2
call fcn.004d4ab0
lea ecx, [esp + 0x58]
push ecx
jmp 0x4d4a94
mov edx, dword [ebx]
fldz
mov eax, dword [esp + 0x10]
fstp qword [esp + 0x48]
mov ecx, dword [ebx + 0x20c]
fld1
mov dword [esp + 0x30], edx
fstp qword [esp + 0x50]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x38], ecx
lea edx, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x40], edx
push ecx
lea edx, [esp + 0x38]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], 0x6dbc50
call fcn.0055d3a0
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0x40], 0x70c5e4
je 0x4d4a49
mov dword [ebp], eax
lea eax, [esp + 0x18]
call fcn.004d4ab0
jmp 0x4d4a8f
lea eax, [esp + 0x18]
call fcn.004d4ab0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.004ac0b0
test al, al
jne 0x4d4a81
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push str.File_could_not_be_written.
mov ecx, edi
call eax
lea ecx, [esp + 0x58]
mov dword [ebp], 2
push ecx
jmp 0x4d4a94
mov word [esp + 0x58], 0
mov dword [ebp], 0
lea edx, [esp + 0x58]
push edx
mov eax, 0x1f4
call fcn.004abff0
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x870
ret 8