Function at 0x459d00
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d84e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
push str.____________________Entrance____________________
lea ecx, [ebp - 0x28]
lea eax, [esi + 0x70]
push ecx
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], str.OnItemComplete
call fcn.00471a00
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
mov edx, dword [esi + 0x148]
push 0xffffffffffffffff
push edx
mov byte [ebp - 0x15], bl
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x148]
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp edi, 0xffffffff
je 0x459d8b
cmp edi, ebx
jne 0x459e5c
cmp eax, ebx
je 0x459e25
cmp byte [esi + 0xc0], bl
jne 0x459df2
cmp dword [ebp - 0x1c], ebx
jne 0x459dd1
cmp byte [esi + 0xe4], bl
je 0x459dd1
cmp byte [esi + 0xb0], bl
jne 0x459dd1
call fcn.00459fd0
xor edx, edx
cmp al, bl
sete dl
mov byte [esi + 0xb0], bl
mov byte [ebp - 0x15], 1
add edx, 6
mov dword [esi + 0x30], edx
jmp 0x459e5c
xor eax, eax
cmp byte [esi + 0xb0], bl
mov byte [esi + 0xb0], bl
sete al
mov byte [ebp - 0x15], 1
lea eax, [eax*4 + 3]
mov dword [esi + 0x30], eax
jmp 0x459e5c
cmp byte [esi + 0xb0], bl
je 0x459e0d
mov dword [esi + 0x30], 3
mov byte [esi + 0xb0], bl
mov byte [ebp - 0x15], 1
jmp 0x459e5c
cmp dword [ebp - 0x1c], ebx
jne 0x459e19
mov dword [esi + 0x30], 6
mov byte [esi + 0xb0], bl
mov byte [ebp - 0x15], 1
jmp 0x459e5c
mov ecx, dword [esi + 0x30]
cmp ecx, 2
je 0x459e35
mov edx, dword [esi + 0x30]
cmp edx, 5
jne 0x459e5c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x148]
push eax
push ecx
push str.Failed_to_GetExitCodeProcess__d__with_err_d
lea edx, [ebp - 0x28]
push edx
lea eax, [esi + 0x70]
push eax
mov dword [esi + 0x30], 7
call fcn.00471980
add esp, 0x14
cmp edi, 0x80
jne 0x459e87
mov eax, dword [esi + 0x148]
push eax
push str.Failed_to_WaitForSingleObject__d__on_ffmpeg.exe_handle._It_may_crashed_
lea ecx, [ebp - 0x28]
push ecx
lea eax, [esi + 0x70]
push eax
mov dword [esi + 0x30], 7
call fcn.00471980
add esp, 0x10
mov edx, dword [esi + 0x30]
cmp edx, 6
je 0x459eab
mov eax, dword [esi + 0x30]
cmp eax, 3
jne 0x459e9f
cmp byte [esi + 0xb0], bl
jne 0x459eab
mov ecx, dword [esi + 0x30]
cmp ecx, 7
jne 0x459f66
mov ecx, dword [esi + 0x24]
lea edx, [ebp - 0x20]
push edx
call fcn.00405a00
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x459f13
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], ebx
je 0x459ee3
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
cmp al, bl
jne 0x459f13
mov ecx, dword [esi + 0x24]
push ecx
push str.Failed_to_FileUtils::DeleteFile__s_
lea edx, [ebp - 0x28]
push edx
lea eax, [esi + 0x70]
push eax
call fcn.00471980
mov eax, dword [esi + 0x24]
add esp, 0x10
push eax
call edi
test eax, eax
je 0x459f13
mov eax, dword [esi + 0x24]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459f66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x459f66
call fcn.0045a1a0
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x459f80
push ebx
push esi
push 0x403
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push str.______________________Exit______________________
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
push edx
push eax
call fcn.00471a00
mov al, byte [ebp - 0x15]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4