Function at 0x40c280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58147d
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x6069b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, str.pdf_toolpdfpreview_
lea ecx, [ebp - 0x10c]
call fcn.0041fd00
mov dword [ebp - 4], 0
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
cmp word [edx], ax
jne 0x40c2ec
xor ecx, ecx
jmp 0x40c300
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c2f1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.00406df0
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x10c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c331
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0xa4], 8
lea edx, [ebp - 0xb8]
mov dword [ebp - 0x5c], 7
cmovae edx, dword [ebp - 0xb8]
xor eax, eax
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
cmp word [edx], ax
jne 0x40c362
xor ecx, ecx
jmp 0x40c376
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c367
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.00406df0
mov byte [ebp - 4], 3
call fcn.00437f40
cmp dword [0x60db24], 0
lea edx, [ebp - 0x70]
mov ecx, str.XDPdfPreview.dll
mov eax, str.XDPdfPreview64.dll
cmove eax, ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.0040bfb0
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x40c3c5
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004079a0
xor eax, eax
mov dword [ebp - 0x5c], 7
push 0xd
push str.pdfpreview.7z
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
call fcn.00406df0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa0]
push 7
xor eax, eax
mov dword [ebp - 0x8c], 7
push str.md5.txt
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
call fcn.00406df0
mov byte [ebp - 4], 7
call fcn.00437f40
cmp dword [0x60db24], 0
je 0x40c44a
push 0xf
push str.pdfpreview64.7z
lea ecx, [ebp - 0x28]
call fcn.00406df0
push 0x3c
xor eax, eax
mov dword [ebp - 0x44], 7
push str.https:__cdn.pdfxd.com_download_pdf_tools_XDPdfPreview0805.7z
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00406df0
mov byte [ebp - 4], 8
call fcn.00437f40
cmp dword [0x60db24], 0
je 0x40c48e
push 0x3e
push str.https:__cdn.pdfxd.com_download_pdf_tools_XDPdfPreview640805.7z
lea ecx, [ebp - 0x58]
call fcn.00406df0
push 0x38
xor eax, eax
mov dword [ebp - 0x74], 7
push str.https:__cdn.pdfxd.com_download_pdf_tools_preview_md5.txt
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
call fcn.00406df0
mov byte [ebp - 4], 9
call fcn.00437f40
cmp dword [0x60db24], 0
je 0x40c4db
push 0x3a
push str.https:__cdn.pdfxd.com_download_pdf_tools_preview64_md5.txt
lea ecx, [ebp - 0x88]
call fcn.00406df0
mov edx, str.pdf_toolpdfpreview_
lea ecx, [ebp - 0x110]
call fcn.0041fd00
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x40]
push eax
call edi
test eax, eax
jne 0x40c5ce
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x110]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x10c]
push eax
call fcn.0040b2b0
add esp, 4
mov byte [ebp - 4], 0xb
push dword [ebp - 0x10c]
call edi
test eax, eax
je 0x40c54c
mov edx, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x10c]
call fcn.0044ddd0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call edi
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x10c]
add edx, 0xfffffff0
test eax, eax
mov eax, esi
jne 0x40c5bc
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c57f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
push ecx
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x108]
call fcn.0040c9f0
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0xc
call fcn.0040c720
lea ecx, [ebp - 0x108]
xor edi, edi
call fcn.0040cad0
jmp 0x40c5d3
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c5ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 1
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x110]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40c5f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x40c60d
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.004079a0
xor eax, eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x78], 0
cmp eax, 8
jb 0x40c639
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004079a0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x40c66b
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.004079a0
xor eax, eax
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x90], 0
cmp eax, 8
jb 0x40c69d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004079a0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x40c6c6
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004079a0
mov ecx, dword [ebp - 0xa4]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x40c6f8
inc ecx
push ecx
push dword [ebp - 0xb8]
lea ecx, [ebp - 0xb8]
call fcn.004079a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551ee1
mov esp, ebp
pop ebp
ret