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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585477
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x60e9b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, str.pdf_toolpdfpreview_
lea ecx, [ebp - 0xac]
call fcn.00421780
mov dword [ebp - 4], 0
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
cmp word [edx], ax
jne 0x40c64a
xor ecx, ecx
jmp 0x40c65f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c650
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8c]
call fcn.00406f40
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0xac]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c690
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x78], 8
lea edx, [ebp - 0x8c]
mov dword [ebp - 0x18], 7
cmovae edx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
jne 0x40c6be
xor ecx, ecx
jmp 0x40c6d2
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c6c3
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406f40
mov byte [ebp - 4], 3
call fcn.00439be0
cmp dword [0x615f44], 0
lea edx, [ebp - 0x2c]
mov ecx, str.XDPdfPreview.dll
mov eax, str.XDPdfPreview64.dll
cmove eax, ecx
lea ecx, [ebp - 0x5c]
push eax
call fcn.0040c310
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40c721
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407af0
xor eax, eax
mov dword [ebp - 0x18], 7
push 0xd
push str.pdfpreview.7z
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
call fcn.00406f40
mov byte [ebp - 4], 6
call fcn.00439be0
cmp dword [0x615f44], 0
je 0x40c773
push 0xf
push str.pdfpreview64.7z
lea ecx, [ebp - 0x44]
call fcn.00406f40
call fcn.00402f30
mov edx, dword [eax + 0x34c]
xor eax, eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
cmp word [edx], ax
jne 0x40c79b
xor ecx, ecx
jmp 0x40c7af
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c7a0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.00406f40
mov byte [ebp - 4], 7
call fcn.00439be0
cmp dword [0x615f44], 0
je 0x40c7fe
call fcn.00402f30
mov edx, dword [eax + 0x350]
cmp word [edx], 0
jne 0x40c7e0
xor ecx, ecx
jmp 0x40c7f4
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c7e5
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.00406f40
mov edx, str.pdf_toolpdfpreview_
lea ecx, [ebp - 0xa8]
call fcn.00421780
mov byte [ebp - 4], 8
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x5c]
push eax
call ebx
test eax, eax
jne 0x40caff
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea edx, [ebp - 0xa8]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0xac]
push eax
call fcn.0040b410
add esp, 4
mov byte [ebp - 4], 9
push dword [ebp - 0xac]
call ebx
test eax, eax
je 0x40c86f
mov edx, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xac]
call fcn.00451950
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call ebx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xac]
add edx, 0xfffffff0
test eax, eax
mov eax, esi
jne 0x40caed
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c8a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0040ba80
push str.ZipNowDown.7z
lea ecx, [ebp - 0xa4]
call fcn.00405a20
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
push dword [ebp - 0xa8]
call fcn.00405a20
sub esp, 0x28
mov byte [ebp - 4], 0xb
mov eax, esp
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x2c]
push 1
mov dword [eax], 0x5e9d18
mov dword [eax + 0x24], eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0043af80
add esp, 0x30
mov dword [0x615840], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.00407bc0
cmp dword [0x615840], 0
jbe 0x40ca85
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x2c]
call fcn.00405a20
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ea10
cmp dword [0x61583c], 0
jne 0x40c958
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call edi
cmp dword [0x61583c], 0
je 0x40c948
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
test eax, eax
je 0x40ca7d
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
call fcn.0040c2d0
cmp eax, 0x2710
jbe 0x40ca27
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
cmovae ecx, dword [ebp - 0x5c]
call fcn.0043dc60
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0xa8]
cmovae ecx, dword [ebp - 0x2c]
call fcn.00451950
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea edx, [ebp - 0xa8]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0xac]
push eax
call fcn.0040b410
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xac]
call fcn.00405a80
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea edx, [ebp - 0xa8]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0xb0]
push eax
call fcn.0040b410
add esp, 4
mov ecx, eax
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0xb0]
call fcn.00405a80
lea ecx, [ebp - 0x2c]
call fcn.00407bc0
lea ecx, [ebp - 0xa4]
call fcn.00407bc0
lea ecx, [ebp - 0xa8]
call fcn.00405a80
lea ecx, [ebp - 0x74]
call fcn.00407bc0
lea ecx, [ebp - 0x44]
call fcn.00407bc0
lea ecx, [ebp - 0x5c]
call fcn.00407bc0
lea ecx, [ebp - 0x8c]
call fcn.00407bc0
jmp 0x40cbb4
lea ecx, [ebp - 0x2c]
call fcn.00407bc0
lea ecx, [ebp - 0xa4]
mov dword [0x615840], 0
mov dword [0x61583c], 0
call fcn.00407bc0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xa8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40cac3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x74]
call fcn.00407bc0
lea ecx, [ebp - 0x44]
call fcn.00407bc0
lea ecx, [ebp - 0x5c]
call fcn.00407bc0
lea ecx, [ebp - 0x8c]
call fcn.00407bc0
xor eax, eax
jmp 0x40cbb9
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40caff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xa8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40cb1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x40cb33
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00407af0
xor eax, eax
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x60], 7
cmp eax, 8
jb 0x40cb5c
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00407af0
xor eax, eax
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 7
cmp eax, 8
jb 0x40cb85
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00407af0
xor eax, eax
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x48], 7
cmp eax, 8
jb 0x40cbb4
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00407af0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00555b37
mov esp, ebp
pop ebp
ret