Function at 0x45a470
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov eax, 0x1490
call fcn.006ab750
push ebx
push ebp
mov ebp, dword [esp + 0x149c]
mov eax, dword [ebp + 4]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
xor ebx, ebx
push ebx
push ebx
push 0x1032
push 0x64
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call edi
cmp eax, 1
jne 0x45a8ae
mov ecx, dword [ebp + 4]
push 2
push 0xffffffffffffffff
push 0x100c
push 0x64
push ecx
call esi
push eax
call edi
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x45a8ae
lea esi, [esp + 0x258]
mov edx, ebp
call fcn.0045aca0
mov eax, esi
lea edi, [esp + 0x668]
call fcn.004ad090
mov edx, esi
lea esi, [esp + 0x460]
call fcn.004ad160
mov dx, word [esp + 0x460]
xor ecx, ecx
xor esi, esi
cmp dx, bx
movzx eax, dx
je 0x45a534
lea esp, [esp]
cmp ax, 0x2e
jne 0x45a518
mov esi, ecx
movzx eax, word [esp + ecx*2 + 0x462]
add ecx, 1
cmp ax, bx
jne 0x45a510
cmp esi, ebx
je 0x45a534
mov word [esp + esi*2 + 0x460], bx
xor eax, eax
jmp 0x45a540
movzx ecx, word [esp + eax + 0x460]
mov word [esp + eax + 0x50], cx
add eax, 2
cmp cx, bx
jne 0x45a540
mov eax, dword [ebp + 4]
push eax
push str.Rename_File
lea edx, [esp + 0x58]
push edx
mov eax, str.recordingslist
mov ecx, str.Enter_File_Name:
call fcn.00529650
test al, al
je 0x45a8ae
lea edx, [esp + 0x50]
call fcn.0048dac0
lea edx, [esp + 0x50]
call fcn.004851c0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x464]
push ecx
call fcn.006b227b
add esp, 8
test eax, eax
jne 0x45a5b3
mov edx, dword [ebp + 4]
push edx
mov eax, str.Please_use_a_different_filename.
jmp 0x45a8a4
cmp word [esp + 0x50], bx
je 0x45a89b
lea eax, [esp + 0xe88]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.004ad5a0
test al, al
je 0x45a89b
lea esi, [esp + 0x258]
lea edi, [esp + 0x1298]
call fcn.004ad1c0
lea eax, [esp + 0x668]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45a5f5
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [esp + 0xe88]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45a610
sub eax, edx
sar eax, 1
cmp eax, 0x64
jbe 0x45a64f
lea eax, [esp + 0x1298]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45a630
sub eax, edx
sar eax, 1
add eax, esi
add eax, eax
lea edx, [esp + 0x1086]
sub edx, eax
mov word [edx], bx
lea eax, [esp + 0x1298]
push eax
lea ecx, [esp + 0xe8c]
push ecx
lea edx, [esp + 0xa80]
push edx
lea eax, [esp + 0x674]
call fcn.004ad3a0
lea eax, [esp + 0xa78]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45a6df
lea ecx, [esp + 0x258]
push ecx
lea eax, [esp + 0xa7c]
call fcn.00402080
test al, al
jne 0x45a6d1
mov edx, dword [ebp + 4]
push str.File_Exists
push str.Another_file_with_the_same_name_and_format_already_exists._Do_you_want_to_replace_it_
push edx
mov ecx, str.Cancel
mov eax, str.Replace
call fcn.004f39e0
test al, al
je 0x45a8ae
lea eax, [esp + 0xa78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0xa78]
push ecx
push ebp
call fcn.0045a8c0
lea edx, [esp + 0xa78]
push edx
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp byte [ebp + 0x577], bl
jne 0x45a7ee
lea ecx, [ebp + 0x578]
push ecx
mov esi, str.Recording
call fcn.004c1140
mov edi, eax
push edi
mov esi, str.FileName
call fcn.004c1140
lea edx, [esp + 0xa78]
push edx
push eax
call fcn.00421440
lea eax, [esp + 0xa78]
call fcn.00401fb0
mov dword [esp + 0x18], eax
lea esi, [esp + 0x668]
lea eax, [esp + 0x18]
mov word [esp + 0x668], bx
call fcn.004a78b0
push edi
mov esi, str.FileTime
call fcn.004c1140
lea ecx, [esp + 0x668]
push ecx
push eax
call fcn.00421440
mov eax, dword [esp + 0x14]
push 0x64
push ebp
lea esi, [esp + 0x1098]
mov ecx, 4
mov word [esp + 0x1098], bx
call fcn.00404760
push edi
mov esi, str.Device
call fcn.004c1140
lea edx, [esp + 0x1090]
push edx
push eax
call fcn.00421440
mov eax, dword [esp + 0x14]
push 0x64
push ebp
lea esi, [esp + 0x878]
mov ecx, 5
mov word [esp + 0x878], bx
call fcn.00404760
push edi
mov esi, str.Duration
call fcn.004c1140
lea ecx, [esp + 0x870]
push ecx
push eax
call fcn.00421440
lea edx, [esp + 0x258]
push edx
push ebp
call fcn.0045a8c0
push 1
push 1
push ebp
call fcn.00459720
mov eax, dword [ebp + 4]
push ebx
push ebx
push 0x1004
push 0x64
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov ebx, eax
xor edi, edi
test ebx, ebx
jle 0x45a8ae
jmp 0x45a820
lea esi, [esp + 0x870]
mov eax, edi
mov edx, ebp
call fcn.0045aca0
lea ecx, [esp + 0xa78]
mov eax, esi
call fcn.00401160
test eax, eax
je 0x45a856
add edi, 1
cmp edi, ebx
jl 0x45a820
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1490
ret 4
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x1c]
push ecx
push edi
push 0x102b
mov eax, 3
push 0x64
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push ebp
mov eax, edi
mov ecx, 0x64
call fcn.00404810
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1490
ret 4
mov eax, dword [ebp + 4]
push eax
mov eax, str.The_name_must_contain_text.
mov esi, str.Name_Invalid
call fcn.004f3770
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1490
ret 4