Function at 0x4ad040
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5276f6
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x3c]
push 0
push 0
push eax
call fcn.00518480
mov dword [esp + 0x24], 0
mov dword [esi], vtable.CTrimMpegFile.0
lea ebx, [esi + 0x4c]
call fcn.004b4151
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4ad0a6
push 0x80004005
call fcn.004010bd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x24], 1
lea edi, [esi + 0x50]
call fcn.004b4151
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4ad0d6
push 0x80004005
call fcn.004010bd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov edx, dword [esp + 0x30]
test edx, edx
mov byte [esp + 0x24], 2
jne 0x4ad0f5
xor eax, eax
jmp 0x4ad10b
mov eax, edx
lea ebp, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4ad100
sub eax, ebp
push eax
push edx
mov ecx, ebx
call fcn.00401452
call fcn.004b4151
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4ad12e
push 0x80004005
call fcn.004010bd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
push str.vid
lea ecx, [esp + 0x44]
mov byte [esp + 0x2c], 3
call fcn.00487490
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.00402e5a
call fcn.004b4151
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4ad17c
push 0x80004005
call fcn.004010bd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
push 2
mov bl, 4
push 0x5432dc
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], bl
call fcn.00401452
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.004accf0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 5
call fcn.00402c69
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ad1ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.004acf20
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 6
call fcn.00402c69
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ad23b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.004acd90
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 7
call fcn.00402c69
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x24], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ad283
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x30]
push ebx
mov ecx, esi
call fcn.00518440
push 0x16
lea ecx, [esi + 0x48]
push str.Creating_video_clip...
call fcn.00401452
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebx - 0x10]
mov byte [esp + 0x24], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ad2c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x24], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ad2ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14