Function at 0x584d81
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x2038
call fcn.005a812c
sub esp, eax
mov eax, dword [esp + eax]
mov dword [ebp - 0x2020], eax
or ebx, 0xffffffff
test ecx, ecx
je 0x5850f8
mov ebx, edx
mov eax, dword [eax + 0x64]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x584dde
lea esi, [ebp - 0x1018]
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ecx
push ecx
mov dword [esp], esi
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov dword [ebp - 0x201c], eax
test ebx, ebx
lea esi, [ebp - 0x2018]
je 0x584e00
cmp dword [ebx + 4], 0
je 0x584e00
mov dword [esp + 0x14], str._update
mov dword [esp + 0x10], str.gpac_scene_engine_dump
jmp 0x584e10
mov dword [esp + 0x14], str.gpac_scene_engine_dump
mov dword [esp + 0x10], str.rap_
mov dword [esp + 0xc], 0x5c
mov eax, dword [ebp - 0x201c]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_c_s_s
mov dword [esp], esi
call fcn.005ae188
mov eax, dword [ebp - 0x2020]
mov eax, dword [eax + 4]
mov dword [esp], 6
xor ecx, ecx
mov edx, esi
mov eax, dword [eax]
call fcn.00572153
mov esi, eax
test eax, eax
lea edi, [ebp - 0x2018]
jne 0x584e8a
cmp dword [0x5af048], 0
je 0x584fba
mov dword [0x611418], 1
mov dword [0x611414], 2
mov dword [esp + 4], edi
mov dword [esp], str._SceneEngine__Cannot_create_SVG_dumper_for__s.svg_n
jmp 0x584fb5
test ebx, ebx
je 0x584ea4
cmp dword [ebx + 4], 0
je 0x584ea4
xor edx, edx
mov dword [esp], edx
xor ecx, ecx
mov edx, ebx
call fcn.00521f28
jmp 0x584eab
mov eax, esi
call fcn.0056e379
mov ebx, eax
mov eax, esi
call fcn.0051dbf5
mov eax, dword [ebp - 0x2020]
cmp dword [eax + 0x6c], 0
je 0x584f25
mov dword [esp + 0x14], str.gpac_scene_engine_dump
mov dword [esp + 0x10], str.rap_
mov dword [esp + 0xc], 0x5c
mov eax, dword [ebp - 0x201c]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_c_s_s
mov dword [esp], edi
call fcn.005ae188
mov eax, dword [ebp - 0x2020]
mov eax, dword [eax + 4]
mov dword [esp], 6
xor ecx, ecx
mov edx, edi
mov eax, dword [eax]
call fcn.00572153
mov esi, eax
test eax, eax
je 0x584e59
call fcn.0056e379
mov ebx, eax
mov eax, esi
call fcn.0051dbf5
test ebx, ebx
je 0x584f5b
cmp dword [0x5af048], 0
je 0x584f52
mov dword [0x611418], 1
mov dword [0x611414], 2
mov dword [esp], str._SceneEngine__Cannot_dump_DIMS_Commands_n
call fcn.004268ea
xor edi, edi
xor esi, esi
jmp 0x5850c7
lea eax, [ebp - 0x2018]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s.svg
lea edi, [ebp - 0x1018]
mov dword [esp], edi
call fcn.005ae188
mov edx, 0x606a04
mov eax, edi
call fcn.00427968
mov esi, eax
test eax, eax
jne 0x584fc8
cmp dword [0x5af048], 0
je 0x584fba
mov dword [0x611418], 1
mov dword [0x611414], 2
mov dword [esp + 4], edi
mov dword [esp], str._SceneEngine__Cannot_open_SVG_dump_file__s_n
call fcn.004268ea
xor edi, edi
xor esi, esi
mov ebx, 0xfffffffd
jmp 0x5850c7
mov dword [esp], 2
xor edx, edx
xor ecx, ecx
call fcn.00425b5e
mov dword [esp], esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
mov dword [ebp - 0x2024], eax
test edx, edx
jne 0x585023
test eax, eax
jne 0x585023
cmp dword [0x5af048], 0
je 0x58501c
mov dword [0x611418], 1
mov dword [0x611414], 2
mov dword [esp + 4], edi
mov dword [esp], str._SceneEngine__SVG_dump__s_is_empty_n
call fcn.004268ea
xor edi, edi
jmp 0x5850c7
mov eax, dword [ebp - 0x2024]
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov edi, eax
xor eax, eax
mov dword [esp], eax
xor edx, edx
xor ecx, ecx
mov eax, esi
call fcn.00425b5e
mov dword [esp + 0xc], esi
mov eax, dword [ebp - 0x2024]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov ebx, eax
mov eax, esi
call fcn.00425b84
cmp dword [0x5af048], 3
jbe 0x585097
mov dword [0x611418], 4
mov dword [0x611414], 2
mov dword [esp + 4], ebx
mov dword [esp], str._SceneEngine__Sending_DIMS_data___sizes:_raw___d_
call fcn.004268ea
cmp dword [0x5af048], 0
je 0x5850c0
mov dword [0x611418], 1
mov dword [0x611414], 2
mov dword [esp], str.Error:_your_version_of_GPAC_was_compile_with_no_libz_support._Abort.
call fcn.004268ea
xor esi, esi
mov ebx, 0xfffffffc
mov eax, dword [ebp - 0x2020]
cmp dword [eax + 0x64], 0
jne 0x5850e1
mov eax, dword [ebp - 0x201c]
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
test edi, edi
je 0x5850ed
mov dword [esp], edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
test esi, esi
je 0x5850f8
mov eax, esi
call fcn.00425b84
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret