Function at 0x48ecb0
Capabilities:
Check if file exists
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x63e758]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x248], eax
xor edi, edi
mov eax, dword [ebp + 0x14]
push dword [esi + 0x3808]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x48edda
push eax
push dword [esi + 0x3808]
call fcn.00437ea0
add esp, 8
test eax, eax
jne 0x48ed8a
push 4
push str.com.freerdp.core.license
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x48ed5c
push dword [esi + 0x3808]
push str.error_creating_directory__s
push str.saveCal
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPlibfreerdpcorelicense.c
push 0xc6
push 4
push 0
push str.com.freerdp.core.license
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x20
xor esi, esi
push ebx
call fcn.00580204
push esi
call fcn.00580204
push edi
call fcn.00580204
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp - 0x240]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005802ce
mov esp, ebp
pop ebp
ret
push 2
push str.com.freerdp.core.license
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x48edda
push dword [esi + 0x3808]
push str.creating_directory__s
push str.saveCal
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPlibfreerdpcorelicense.c
push 0xc9
push 2
push 0
push str.com.freerdp.core.license
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x20
push str.licenses
push dword [esi + 0x3808]
call fcn.00437b30
mov edi, eax
add esp, 8
test edi, edi
je 0x48ed5c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x48ee99
push eax
push edi
call fcn.00437ea0
add esp, 8
test eax, eax
jne 0x48ee4e
push 4
push str.com.freerdp.core.license
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x48ed5c
push edi
push str.error_creating_directory__s
push str.saveCal
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPlibfreerdpcorelicense.c
push 0xd3
jmp 0x48ed42
push 2
push str.com.freerdp.core.license
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x48ee99
push edi
push str.creating_directory__s
push str.saveCal
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPlibfreerdpcorelicense.c
push 0xd6
push 2
push 0
push str.com.freerdp.core.license
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x20
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x23c]
call fcn.0048cd20
add esp, 8
test eax, eax
je 0x48ed5c
lea eax, [ebp - 0x30]
push eax
push str._s.cal
lea eax, [ebp - 0x238]
push 0x103
push eax
call fcn.00580ea1
lea eax, [ebp - 0x30]
push eax
push str._s.cal.new
lea eax, [ebp - 0x134]
push 0x103
push eax
call fcn.00580ea1
lea eax, [ebp - 0x238]
push eax
push edi
call fcn.00437b30
add esp, 0x28
mov dword [ebp - 0x23c], eax
test eax, eax
je 0x48ef5c
lea eax, [ebp - 0x134]
push eax
push edi
call fcn.00437b30
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x48ef5c
push 0x5b7c6c
push ebx
call fcn.00582816
add esp, 8
mov dword [ebp - 0x244], eax
test eax, eax
je 0x48ef5c
push eax
push 1
push dword [ebp + 0x10]
push dword [ebp - 0x248]
call fcn.0058317c
push dword [ebp - 0x244]
mov esi, eax
call fcn.005826db
add esp, 0x14
cmp esi, 1
je 0x48ef67
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x23c]
jmp 0x48ed5e
mov esi, dword [ebp - 0x23c]
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x240], eax
jmp 0x48ed5e