Function at 0x40ce30
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f1501
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x68da90]
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
lea eax, [ebp - 0xc8]
push eax
call fcn.0040d5c0
mov edx, dword [ebp - 0xc8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ce8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call fcn.0040d3c0
push 6
push str.cefn_
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00409db0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
call fcn.0040d5c0
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
je 0x40d066
call fcn.0040cca0
test eax, eax
jne 0x40ceeb
mov byte [ebp - 4], al
jmp 0x40d2e6
push str.cefnew_small.7z
lea ecx, [ebp - 0x64]
call fcn.00408ad0
push str.https:__cdn.pdfxd.com_download_pdf_cefnew_small.7z
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.00408ad0
push 0
mov byte [ebp - 4], 3
push dword [ebp - 0x18]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x4c]
call fcn.00408ad0
sub esp, 0x28
mov byte [ebp - 4], 4
mov eax, esp
lea edx, [ebp - 0x94]
lea ecx, [ebp - 0x4c]
mov dword [eax], 0x6594f0
mov dword [eax + 0x24], eax
lea eax, [ebp - 0x64]
push eax
call fcn.004a1980
mov byte [ebp - 4], 3
add esp, 0x2c
mov ecx, dword [ebp - 0x38]
mov dword [0x6acfac], eax
cmp ecx, 8
jb 0x40cf74
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x4c]
call fcn.00409d50
mov eax, dword [0x6acfac]
test eax, eax
je 0x40d003
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.00408ad0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x34]
call fcn.00410530
cmp dword [0x6acfa8], 0
jne 0x40cfc0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
push 0x1f4
call edi
cmp dword [0x6acfa8], 0
je 0x40cfb0
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x40cffb
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x34]
call fcn.00488620
jmp 0x40cff4
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x34]
call fcn.00408a90
mov eax, dword [ebp - 0x80]
cmp eax, 8
jb 0x40d01e
inc eax
lea ecx, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
call fcn.00409d50
xor eax, eax
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x84], 0
cmp eax, 8
jb 0x40d04d
inc eax
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
call fcn.00409d50
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
jmp 0x40d2e3
push str.cefnew.7z
lea ecx, [ebp - 0x7c]
call fcn.00408ad0
push str.https:__cdn.pdfxd.com_download_pdf_cefnew.7z
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 8
call fcn.00408ad0
push 0
mov byte [ebp - 4], 9
push dword [ebp - 0x18]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x4c]
call fcn.00408ad0
sub esp, 0x28
mov byte [ebp - 4], 0xa
mov eax, esp
lea edx, [ebp - 0xc4]
lea ecx, [ebp - 0x4c]
mov dword [eax], 0x65950c
mov dword [eax + 0x24], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004a1980
mov byte [ebp - 4], 9
add esp, 0x2c
mov ecx, dword [ebp - 0x38]
mov dword [0x6acfa4], eax
cmp ecx, 8
jb 0x40d0ef
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x4c]
call fcn.00409d50
mov eax, dword [0x6acfa4]
test eax, eax
je 0x40d19b
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.00408ad0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x34]
call fcn.00410530
cmp dword [0x6acfa0], 0
jne 0x40d135
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call edi
cmp dword [0x6acfa0], 0
je 0x40d125
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x40d182
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x34]
call fcn.00488620
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40d17b
mov dword [ebp - 4], 0xb
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x20]
cmp eax, 8
jb 0x40d19b
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.00409d50
push str.cefnew_small.7z
lea ecx, [ebp - 0x4c]
call fcn.00408ad0
push str.https:__cdn.pdfxd.com_download_pdf_cefnew_small.7z
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0xe
call fcn.00408ad0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x34]
push dword [ebp - 0x18]
call fcn.00408ad0
sub esp, 0x28
mov byte [ebp - 4], 0x10
mov eax, esp
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x34]
mov dword [eax], 0x65950c
mov dword [eax + 0x24], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004a1980
mov eax, dword [ebp - 0x20]
add esp, 0x2c
cmp eax, 8
jb 0x40d207
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.00409d50
xor eax, eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x24], 0
cmp eax, 8
jb 0x40d239
inc eax
lea ecx, [ebp - 0xac]
push eax
push dword [ebp - 0xac]
call fcn.00409d50
xor eax, eax
mov dword [ebp - 0x98], 7
mov word [ebp - 0xac], ax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x9c], 0
cmp eax, 8
jb 0x40d26b
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00409d50
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x3c], 0
cmp eax, 8
jb 0x40d29d
inc eax
lea ecx, [ebp - 0xc4]
push eax
push dword [ebp - 0xc4]
call fcn.00409d50
xor eax, eax
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], ax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xb4], 0
cmp eax, 8
jb 0x40d2cf
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.00409d50
xor eax, eax
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x6c], 0
mov word [ebp - 0x7c], ax
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x1c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d300
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40d31f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.005a8a55
mov esp, ebp
pop ebp
ret