Function at 0x40c000
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f912
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x6039b0]
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 - 0x90]
call fcn.0041f670
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 0x40c06a
xor ecx, ecx
jmp 0x40c07f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c070
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8c]
call fcn.00406db0
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x90]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c0b0
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 0x40c0de
xor ecx, ecx
jmp 0x40c0f2
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c0e3
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406db0
mov byte [ebp - 4], 3
call fcn.004373e0
cmp dword [0x60ab14], 0
lea edx, [ebp - 0x2c]
mov ecx, str.XDPdfPreview.dll
mov eax, str.XDPdfPreview64.dll
cmove eax, ecx
lea ecx, [ebp - 0x74]
push eax
call fcn.0040bd30
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40c141
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407960
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
xor bl, bl
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
movzx ebx, bl
mov ecx, 1
mov dword [ebp - 0x48], 7
cmove ebx, ecx
mov dword [ebp - 0x4c], 0
push 0xd
xor eax, eax
lea ecx, [ebp - 0x5c]
push str.pdfpreview.7z
mov word [ebp - 0x5c], ax
call fcn.00406db0
mov byte [ebp - 4], 6
call fcn.004373e0
cmp dword [0x60ab14], 0
je 0x40c1ba
push 0xf
push str.pdfpreview64.7z
lea ecx, [ebp - 0x5c]
call fcn.00406db0
push 0x38
xor eax, eax
mov dword [ebp - 0x30], 7
push str.https:__cdn.pdfxd.com_download_pdf_tools_XDPdfPreview.7z
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.00406db0
mov byte [ebp - 4], 7
call fcn.004373e0
cmp dword [0x60ab14], 0
je 0x40c1fe
push 0x3a
push str.https:__cdn.pdfxd.com_download_pdf_tools_XDPdfPreview64.7z
lea ecx, [ebp - 0x44]
call fcn.00406db0
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x40c213
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x98]
push 0x5dfd88
push eax
call fcn.004063c0
add esp, 0xc
lea eax, [ebp - 0x98]
mov edx, 0x5e0438
lea ecx, [ebp - 0x90]
push eax
call fcn.0040d100
add esp, 4
mov byte [ebp - 4], 9
mov edx, dword [eax]
cmp word [edx], 0
jne 0x40c26a
xor ecx, ecx
jmp 0x40c27f
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c270
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.0040d1d0
mov byte [ebp - 4], 8
mov eax, esi
mov edi, dword [ebp - 0x90]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40c2aa
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, str.pdf_toolpdfpreview_
lea ecx, [ebp - 0x94]
call fcn.0041f670
mov byte [ebp - 4], 0xa
test bl, bl
jne 0x40c4ef
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x94]
cmovae eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x90]
push eax
call fcn.0040b270
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov byte [ebp - 4], 0xb
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c313
xor ebx, ebx
jmp 0x40c325
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea ecx, [ebp - 0x44]
call fcn.00439380
movaps xmm1, xmm0
movsd xmm0, qword [0x5eb9e0]
comisd xmm0, xmm1
jb 0x40c444
mov byte [ebp - 4], 0xa
mov eax, esi
mov edx, dword [ebp - 0x90]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c365
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, esi
mov edx, dword [ebp - 0x94]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c386
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x98]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40c3a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x40c3ba
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00407960
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x40c3e3
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00407960
xor eax, eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
cmp eax, 8
jb 0x40c40c
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00407960
xor eax, eax
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x64], 0
cmp eax, 8
jb 0x40c6e9
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00407960
jmp 0x40c6e9
movaps xmm0, xmm1
call fcn.005511f1
cmp ebx, eax
jne 0x40c4be
mov byte [ebp - 4], 0xa
mov eax, esi
mov edx, dword [ebp - 0x90]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c471
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, esi
mov edx, dword [ebp - 0x94]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c492
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x98]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40c4b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x44]
call fcn.00407a30
jmp 0x40c6ce
cmp dword [ebp - 0x60], 8
lea ecx, [ebp - 0x74]
cmovae ecx, dword [ebp - 0x74]
call fcn.0043b310
mov byte [ebp - 4], 0xa
mov eax, esi
mov edx, dword [ebp - 0x90]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c4ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x94]
lea ecx, [ebp - 0x2c]
call fcn.00405890
sub esp, 0x28
mov byte [ebp - 4], 0xc
mov eax, esp
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
mov dword [eax], 0x5e06f4
mov dword [eax + 0x24], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00438770
mov byte [ebp - 4], 0xa
add esp, 0x2c
mov ecx, dword [ebp - 0x18]
mov dword [0x60a410], eax
cmp ecx, 8
jb 0x40c546
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.00407960
mov eax, dword [0x60a410]
test eax, eax
je 0x40c651
push dword [ebp - 0x94]
lea ecx, [ebp - 0x2c]
call fcn.00405890
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d300
cmp dword [0x60a40c], 0
jne 0x40c590
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0xbb8
call edi
cmp dword [0x60a40c], 0
je 0x40c580
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c649
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov edx, dword [ebp - 0x94]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0044cf60
lea ecx, [ebp - 0x2c]
call fcn.00407a30
mov byte [ebp - 4], 8
mov eax, esi
mov edx, dword [ebp - 0x94]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c5ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x98]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40c60c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x44]
call fcn.00407a30
lea ecx, [ebp - 0x5c]
call fcn.00407a30
lea ecx, [ebp - 0x74]
call fcn.00407a30
lea ecx, [ebp - 0x8c]
call fcn.00407a30
mov eax, 1
jmp 0x40c6eb
lea ecx, [ebp - 0x2c]
call fcn.00407a30
mov byte [ebp - 4], 8
mov eax, esi
mov edx, dword [ebp - 0x94]
mov dword [0x60a410], 0
add edx, 0xfffffff0
mov dword [0x60a40c], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c686
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x98]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40c6a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x40c6ba
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00407960
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x5c]
call fcn.00407a30
lea ecx, [ebp - 0x74]
call fcn.00407a30
lea ecx, [ebp - 0x8c]
call fcn.00407a30
xor eax, eax
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.0055042c
mov esp, ebp
pop ebp
ret