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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5835d2
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x60b9b0]
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 - 0xc4]
call fcn.00420480
mov dword [ebp - 4], 0
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x90], 7
mov dword [ebp - 0x94], 0
mov word [ebp - 0xa4], ax
cmp word [edx], ax
jne 0x40c630
xor ecx, ecx
jmp 0x40c644
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c635
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa4]
call fcn.00406f20
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0xc4]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c675
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x90], 8
lea edx, [ebp - 0xa4]
mov dword [ebp - 0x18], 7
cmovae edx, dword [ebp - 0xa4]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
jne 0x40c6a6
xor ecx, ecx
jmp 0x40c6bf
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c6b0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406f20
mov byte [ebp - 4], 3
call fcn.00438920
cmp dword [0x612e34], 0
lea edx, [ebp - 0x2c]
mov ecx, str.XDPdfPreview.dll
mov eax, str.XDPdfPreview64.dll
cmove eax, ecx
lea ecx, [ebp - 0x8c]
push eax
call fcn.0040c2f0
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40c711
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407ad0
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.00406f20
mov byte [ebp - 4], 6
call fcn.00438920
cmp dword [0x612e34], 0
je 0x40c763
push 0xf
push str.pdfpreview64.7z
lea ecx, [ebp - 0x44]
call fcn.00406f20
push 0x3c
xor eax, eax
mov dword [ebp - 0x48], 7
push str.https:__cdn.pdfxd.com_download_pdf_tools_XDPdfPreview0805.7z
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
call fcn.00406f20
mov byte [ebp - 4], 7
call fcn.00438920
cmp dword [0x612e34], 0
je 0x40c7a7
push 0x3e
push str.https:__cdn.pdfxd.com_download_pdf_tools_XDPdfPreview640805.7z
lea ecx, [ebp - 0x5c]
call fcn.00406f20
push 0x38
xor eax, eax
mov dword [ebp - 0x60], 7
push str.https:__cdn.pdfxd.com_download_pdf_tools_preview_md5.txt
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
call fcn.00406f20
mov byte [ebp - 4], 8
call fcn.00438920
cmp dword [0x612e34], 0
je 0x40c7eb
push 0x3a
push str.https:__cdn.pdfxd.com_download_pdf_tools_preview64_md5.txt
lea ecx, [ebp - 0x74]
call fcn.00406f20
mov edx, str.pdf_toolpdfpreview_
lea ecx, [ebp - 0xc0]
call fcn.00420480
mov byte [ebp - 4], 9
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x78], 8
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x8c]
push eax
call ebx
test eax, eax
jne 0x40cbe9
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea edx, [ebp - 0xc0]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0xc4]
push eax
call fcn.0040b3f0
add esp, 4
mov byte [ebp - 4], 0xa
push dword [ebp - 0xc4]
call ebx
test eax, eax
je 0x40c862
mov edx, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xc4]
call fcn.00450420
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push eax
call ebx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xc4]
add edx, 0xfffffff0
test eax, eax
mov eax, esi
jne 0x40cae4
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c89f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0040ba60
push str.ZipNowDown.7z
lea ecx, [ebp - 0xbc]
call fcn.004059f0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2c]
push dword [ebp - 0xc0]
call fcn.004059f0
sub esp, 0x28
mov byte [ebp - 4], 0xc
mov eax, esp
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
push 1
mov dword [eax], 0x5e7dbc
mov dword [eax + 0x24], eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00439cc0
add esp, 0x30
mov dword [0x612730], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.00407ba0
cmp dword [0x612730], 0
jbe 0x40ca71
push dword [ebp - 0xc0]
lea ecx, [ebp - 0x2c]
call fcn.004059f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040de00
cmp dword [0x61272c], 0
jne 0x40c951
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call edi
cmp dword [0x61272c], 0
je 0x40c941
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
test eax, eax
je 0x40ca69
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
call fcn.0040c2b0
cmp eax, 0x2710
jbe 0x40ca26
cmp dword [ebp - 0x78], 8
lea ecx, [ebp - 0x8c]
cmovae ecx, dword [ebp - 0x8c]
call fcn.0043c9a0
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0xc0]
cmovae ecx, dword [ebp - 0x2c]
call fcn.00450420
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea edx, [ebp - 0xc0]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0xc4]
push eax
call fcn.0040b3f0
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xc4]
call fcn.00405a50
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea edx, [ebp - 0xc0]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0xc8]
push eax
call fcn.0040b3f0
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 - 0xc8]
call fcn.00405a50
lea ecx, [ebp - 0x2c]
call fcn.00407ba0
lea ecx, [ebp - 0xbc]
call fcn.00407ba0
lea ecx, [ebp - 0xc0]
call fcn.00405a50
lea ecx, [ebp - 0x74]
call fcn.00407ba0
lea ecx, [ebp - 0x5c]
call fcn.00407ba0
jmp 0x40cc5a
lea ecx, [ebp - 0x2c]
call fcn.00407ba0
lea ecx, [ebp - 0xbc]
mov dword [0x612730], 0
mov dword [0x61272c], 0
call fcn.00407ba0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xc0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40caaf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x74]
call fcn.00407ba0
lea ecx, [ebp - 0x5c]
call fcn.00407ba0
lea ecx, [ebp - 0x44]
call fcn.00407ba0
lea ecx, [ebp - 0x8c]
call fcn.00407ba0
lea ecx, [ebp - 0xa4]
call fcn.00407ba0
xor eax, eax
jmp 0x40cc7d
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40caf6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xc0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40cb15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x40cb2a
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00407ad0
xor eax, eax
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x64], 0
cmp eax, 8
jb 0x40cb53
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00407ad0
xor eax, eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], 0
cmp eax, 8
jb 0x40cb7c
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00407ad0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x40cbab
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00407ad0
xor eax, eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x7c], 0
cmp eax, 8
jb 0x40cc78
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.00407ad0
jmp 0x40cc78
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xc0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40cc08
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x40cc1d
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00407ad0
xor eax, eax
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x64], 0
cmp eax, 8
jb 0x40cc46
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00407ad0
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
lea ecx, [ebp - 0x44]
call fcn.00407ba0
lea ecx, [ebp - 0x8c]
call fcn.00407ba0
lea ecx, [ebp - 0xa4]
call fcn.00407ba0
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.00553c8d
mov esp, ebp
pop ebp
ret