Function at 0x417460
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437b06
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push esi
push edi
mov eax, dword [0x47700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x417987
mov edx, 0x4579d0
mov ecx, eax
call fcn.00401f50
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x84]
push 1
push 1
push 1
push 0x400
call fcn.00408260
push 1
push 1
push 1
push pe_nt_image_headers32
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0
call fcn.00408260
push 1
push 1
push 1
push pe_nt_image_headers32
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00408260
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x58]
call fcn.00401d80
push eax
push 0x5c
call fcn.00404240
push eax
push str._s_c_s
push dword [ebp - 0x6c]
push ebx
call fcn.004012c0
push ebx
push str._s_000001.ppm
push dword [ebp - 0x54]
push edi
call fcn.004012c0
add esp, 0x28
mov edx, 0x4579d0
mov ecx, edi
call fcn.00404110
mov esi, eax
test esi, esi
je 0x41757f
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp esi, eax
je 0x417503
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp esi, eax
je 0x417503
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test eax, eax
je 0x417503
push eax
push str.cimg::fclose__:_Error_code__d_returned_during_file_closing.
call fcn.00401b40
add esp, 8
jmp 0x417503
push ebx
push str._s___6d.ppm
push dword [ebp - 0x54]
push edi
call fcn.004012c0
add esp, 0x10
test edi, edi
jne 0x4175aa
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x24], edi
jmp 0x4175cd
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4175b0
push 0
sub esp, 8
sub ecx, edx
push 1
lea eax, [ecx + 1]
push eax
push edi
lea ecx, [ebp - 0x38]
call fcn.00408110
mov edx, dword [ebp + 8]
mov ecx, edx
mov byte [ebp - 4], 3
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4175e0
push 0
sub esp, 8
sub ecx, esi
push 1
lea eax, [ecx + 1]
push eax
push edx
lea ecx, [ebp - 0x9c]
call fcn.00408110
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00412450
lea ecx, [ebp - 0x9c]
mov ebx, dword [eax + 0x14]
call fcn.00412450
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4789a0]
cmp eax, dword [ecx + 4]
jle 0x41769e
push 0x4789a0
call fcn.0043592c
add esp, 4
cmp dword [0x4789a0], 0xffffffff
jne 0x41769e
push 0x438980
mov dword [0x4789a4], 0
mov dword [0x4789a8], 0
mov dword [0x4789ac], 0
mov dword [0x4789b0], 0
mov byte [0x4789b4], 0
mov dword [0x4789b8], 0
call fcn.00435d86
add esp, 4
push 0x4789a0
call fcn.004358e2
add esp, 4
call fcn.00401a20
push 0xffffffffffffffff
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x4789b8], 0
jne 0x417754
push 1
push 1
push 1
push 0x400
mov ecx, 0x4789a4
call fcn.00407f20
mov eax, dword [0x4789b8]
mov edx, 0x457fc0
movq xmm0, qword [str.._ffmpeg.exe]
movq qword [eax], xmm0
mov eax, dword [0x4789b8]
mov ecx, dword [0x458524]
mov dword [eax + 8], ecx
mov eax, dword [0x4789b8]
mov cl, byte [0x458528]
mov byte [eax + 0xc], cl
mov ecx, dword [0x4789b8]
call fcn.00404110
test eax, eax
je 0x41771a
mov ecx, eax
call fcn.004020a0
jmp 0x417749
mov eax, dword [0x4789b8]
movq xmm0, qword [str.ffmpeg.exe]
movq qword [eax], xmm0
mov eax, dword [0x4789b8]
mov cx, word [0x458534]
mov word [eax + 8], cx
mov eax, dword [0x4789b8]
mov cl, byte [0x458536]
mov byte [eax + 0xa], cl
mov ecx, dword [0x4789b8]
call fcn.00401f00
call fcn.00401a20
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [eax + 0x1c]
call esi
push ebx
push dword [ebp - 0x20]
mov ebx, dword [ebp - 0x70]
push dword [0x4789b8]
push str.__s__i___s____s____NUL_2_1
push dword [ebp - 0x84]
push ebx
call fcn.004012c0
add esp, 0x18
cmp byte [ebp - 0x8c], 0
jne 0x41779c
push dword [ebp - 0x88]
call fcn.0043575c
add esp, 4
mov byte [ebp - 4], 2
cmp byte [ebp - 0x28], 0
jne 0x4177b1
push dword [ebp - 0x24]
call fcn.0043575c
add esp, 4
xor edx, edx
mov ecx, ebx
call fcn.00401be0
mov ecx, dword [0x47701c]
mov dword [ebp - 0x20], ecx
call fcn.00401a20
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x47701c], 0
call fcn.00401a20
push dword [eax]
call esi
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.00417af0
xor al, al
mov ebx, 1
mov byte [ebp - 0x15], al
mov dword [ebp - 0x3c], ebx
test al, al
jne 0x4178d2
push ebx
push dword [ebp - 0x58]
push str._s__.6u.ppm
push dword [ebp - 0x54]
push edi
call fcn.004012c0
add esp, 0x14
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push edi
push ecx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.00410590
mov dword [ebp - 4], 5
jmp 0x417877
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4178b3
mov eax, dword [esi]
or esi, 0xffffffff
mov ecx, dword [ebp - 0x1c]
cmp eax, 0xffffffff
cmovb esi, eax
push esi
push 1
call fcn.00423390
mov ecx, dword [eax + 8]
lea eax, [esi + esi*2]
lea eax, [ecx + eax*8]
push eax
lea ecx, [ebp - 0x38]
call fcn.004120e0
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov eax, dword [ebp - 0x24]
add esp, 4
mov byte [ebp - 4], 2
cmp byte [ebp - 0x28], 0
jne 0x4178c6
push eax
call fcn.0043575c
add esp, 4
mov esi, dword [ebp - 0x1c]
inc ebx
mov al, byte [ebp - 0x15]
jmp 0x4177f9
call fcn.00401a20
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 4
cmp dword [ebp - 0x20], eax
cmovb eax, dword [ebp - 0x20]
mov dword [0x47701c], eax
call fcn.00401a20
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x417952
cmp dword [esi], 0
je 0x417952
cmp byte [ebp - 0x44], 0
jne 0x41791a
push edi
call fcn.0043575c
add esp, 4
cmp byte [ebp - 0x5c], 0
jne 0x41792b
push dword [ebp - 0x58]
call fcn.0043575c
add esp, 4
cmp byte [ebp - 0x74], 0
jne 0x41793c
push dword [ebp - 0x70]
call fcn.0043575c
add esp, 4
mov eax, esi
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
mov edx, dword [ebp + 8]
push edx
call fcn.00401920
push eax
push ecx
push dword [esi + 4]
lea eax, [ebp - 0xbc]
push dword [esi]
push str._instance__u__u__p___CImgList__s_::load_ffmpeg_external__:_Failed_to_open_file__s_with_external_command_ffmpeg.
push eax
call fcn.00401780
add esp, 0x1c
lea eax, [ebp - 0xbc]
push 0x47569c
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.00401920
push eax
push dword [ecx + 8]
lea eax, [ebp - 0xac]
push dword [ecx + 4]
push dword [ecx]
push str._instance__u__u__p___CImgList__s_::load_ffmpeg_external__:_Specified_filename_is__null_.
push eax
call fcn.00401450
add esp, 0x18
lea eax, [ebp - 0xac]
push 0x475714
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3