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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585560
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
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_toolofficeplugin_
lea ecx, [ebp - 0xdc]
call fcn.00421780
mov dword [ebp - 4], 0
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
cmp word [edx], ax
jne 0x40ceb7
xor ecx, ecx
jmp 0x40cecf
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cec0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.00406f40
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0xdc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cefd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x60], 8
lea edx, [ebp - 0x74]
mov dword [ebp - 0x18], 7
cmovae edx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
jne 0x40cf25
xor ecx, ecx
jmp 0x40cf3f
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cf30
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406f40
push str.XDOffilePlugin.dll
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.0040c310
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40cf79
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407af0
xor eax, eax
mov dword [ebp - 0x90], 7
cmp dword [ebp - 0x60], 8
lea edx, [ebp - 0x74]
mov dword [ebp - 0x94], eax
cmovae edx, dword [ebp - 0x74]
mov word [ebp - 0xa4], ax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
jne 0x40cfb8
xor ecx, ecx
jmp 0x40cfcf
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cfc0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa4]
call fcn.00406f40
push str.XDOffilePlugin64.dll
lea edx, [ebp - 0xa4]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xbc]
call fcn.0040c310
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x90]
cmp eax, 8
jb 0x40d01b
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.00407af0
xor eax, eax
mov dword [ebp - 0x90], 7
push 0xf
push str.officeplugin.7z
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x94], 0
mov word [ebp - 0xa4], ax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
call fcn.00406f40
mov byte [ebp - 4], 9
call fcn.00402f30
mov edx, dword [eax + 0x354]
xor eax, eax
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
cmp word [edx], ax
jne 0x40d084
xor ecx, ecx
jmp 0x40d09f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d090
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8c]
call fcn.00406f40
mov byte [ebp - 4], 0xa
call fcn.00439be0
cmp dword [0x615f44], 0
je 0x40d0fc
call fcn.00402f30
mov edx, dword [eax + 0x358]
cmp word [edx], 0
jne 0x40d0d3
xor ecx, ecx
jmp 0x40d0ef
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d0e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8c]
call fcn.00406f40
mov edx, str.pdf_toolofficeplugin_
lea ecx, [ebp - 0xd8]
call fcn.00421780
mov byte [ebp - 4], 0xb
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 0x40d440
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea edx, [ebp - 0xd8]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0xdc]
push eax
call fcn.0040b410
add esp, 4
mov byte [ebp - 4], 0xc
push dword [ebp - 0xdc]
call ebx
test eax, eax
je 0x40d16d
mov edx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xdc]
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], 0xb
mov edx, dword [ebp - 0xdc]
add edx, 0xfffffff0
test eax, eax
mov eax, esi
je 0x40d1f2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d1a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0xd8]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40d1bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x8c]
call fcn.00407bc0
lea ecx, [ebp - 0x44]
call fcn.00407bc0
lea ecx, [ebp - 0xbc]
call fcn.00407bc0
lea ecx, [ebp - 0x5c]
call fcn.00407bc0
lea ecx, [ebp - 0x74]
call fcn.00407bc0
jmp 0x40d533
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d204
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.ZipNowDown.7z
lea ecx, [ebp - 0xd4]
call fcn.00405a20
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xa4]
push dword [ebp - 0xd8]
call fcn.00405a20
sub esp, 0x28
mov byte [ebp - 4], 0xf
mov eax, esp
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0xa4]
push 1
mov dword [eax], 0x5e9d34
mov dword [eax + 0x24], eax
lea eax, [ebp - 0xd4]
push eax
call fcn.0043af80
add esp, 0x30
mov dword [0x615838], eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xe
call fcn.00407bc0
cmp dword [0x615838], 0
jbe 0x40d427
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x2c]
call fcn.00405a20
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ea10
cmp dword [0x615834], 0
jne 0x40d2c0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0xbb8
call edi
cmp dword [0x615834], 0
je 0x40d2b0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
test eax, eax
je 0x40d41f
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
call fcn.0040c2d0
cmp eax, 0x2710
jbe 0x40d3a8
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
cmovae ecx, dword [ebp - 0x5c]
call fcn.0043dc60
cmp dword [ebp - 0xa8], 8
lea ecx, [ebp - 0xbc]
cmovae ecx, dword [ebp - 0xbc]
call fcn.0043dc60
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0xd8]
cmovae ecx, dword [ebp - 0x2c]
call fcn.00451950
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea edx, [ebp - 0xd8]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0xdc]
push eax
call fcn.0040b410
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xdc]
call fcn.00405a80
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea edx, [ebp - 0xd8]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0xe0]
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 - 0xe0]
call fcn.00405a80
lea ecx, [ebp - 0x2c]
call fcn.00407bc0
lea ecx, [ebp - 0xd4]
call fcn.00407bc0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0xd8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40d3da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x8c]
call fcn.00407bc0
lea ecx, [ebp - 0x44]
call fcn.00407bc0
lea ecx, [ebp - 0xbc]
call fcn.00407bc0
lea ecx, [ebp - 0x5c]
call fcn.00407bc0
lea ecx, [ebp - 0x74]
call fcn.00407bc0
mov al, 1
jmp 0x40d535
lea ecx, [ebp - 0x2c]
call fcn.00407bc0
mov dword [0x615838], 0
mov dword [0x615834], 0
jmp 0x40d3b0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0xd8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40d45f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x78]
cmp eax, 8
jb 0x40d47a
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00407af0
xor eax, eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x7c], 0
cmp eax, 8
jb 0x40d4a6
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00407af0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x40d4d8
inc eax
lea ecx, [ebp - 0xbc]
push eax
push dword [ebp - 0xbc]
call fcn.00407af0
xor eax, eax
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xac], 0
cmp eax, 8
jb 0x40d50a
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00407af0
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 0x40d533
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00407af0
xor al, al
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