Function at 0x140201020
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9c8]
sub rsp, 0xac8
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rdi, rdx
lea rbx, [rcx + 8]
lea rsi, vtable.CSABString.0
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x14020112b
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140201070
mov dword [rsp + 0x60], eax
inc eax
mov edi, eax
mov ecx, eax
call fcn.140247068
mov r12, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1402010a3
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.1402496a0
mov rdi, qword [rbp + 0xa18]
mov dword [rsp + 0x64], 1
lea r14, vtable.CSABOLECompoundFile.0
mov qword [rbp + 0xd0], r14
mov qword [rbp + 0xd8], rsi
mov qword [rbp + 0xe0], 0
mov dword [rbp + 0xe8], 0
test r12, r12
je 0x140201155
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [r12 + rax], 0
jne 0x1402010f0
mov dword [rbp + 0xe8], eax
lea ecx, [rax + 1]
call fcn.140247068
mov qword [rbp + 0xe0], rax
test rax, rax
je 0x140201179
mov r8d, dword [rbp + 0xe8]
inc r8d
mov rdx, r12
mov rcx, rax
call fcn.1402496a0
jmp 0x140201179
mov dword [rsp + 0x60], 0
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov r12, rax
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [r12], rax
mov qword [r12 + 8], rax
jmp 0x1402010aa
mov dword [rbp + 0xe8], 0
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rbp + 0xe0], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rbp + 0xec], 1
mov qword [rbp + 0xf0], 0
lea rcx, [rbp + 0xf8]
call fcn.1400041b0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0xe0]
lea rcx, [rbp + 0xa10]
call fcn.14000bd30
mov rcx, qword [rax]
call qword [sym.imp.ole32.dll_StgIsStorageFile]
mov ebx, eax
mov rcx, qword [rbp + 0xa10]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rcx, [rbp + 0xd0]
test ebx, ebx
je 0x1402011e6
mov edx, 0x1012
call fcn.1401ea040
jmp 0x1402011f0
mov edx, send
call fcn.140194630
mov ecx, 0x68
call fcn.14018ef40
mov qword [rbp + 0xa10], rax
test rax, rax
je 0x14020121a
mov rdx, qword [rbp + 0xf0]
mov rcx, rax
call fcn.14018d8d0
mov rcx, rax
jmp 0x14020121c
xor ecx, ecx
mov qword [rbp + 0xa28], rcx
test rcx, rcx
je 0x140201537
xor r13d, r13d
mov rax, qword [rdi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14020152c
mov r12, rcx
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x30]
call fcn.140249b10
xor r14d, r14d
xor r15d, r15d
mov r8d, r13d
lea rdx, str.ITEM_04d
lea rcx, [rbp - 0x30]
call fcn.140006bc0
mov qword [rsp + 0x30], rsi
lea rcx, [rbp - 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], r14b
jne 0x140201280
mov dword [rsp + 0x40], eax
inc eax
mov edi, eax
mov ecx, eax
call fcn.140247068
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1402012b4
mov r8d, edi
lea rdx, [rbp - 0x30]
mov rcx, rax
call fcn.1402496a0
mov dword [rsp + 0x44], 1
mov rdi, qword [r12 + 8]
test rdi, rdi
je 0x140201359
mov qword [rbp + 0xa10], 0
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.14000bd30
nop
mov r10, qword [rdi]
lea rcx, [rbp + 0xa10]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x1012
mov rdx, qword [rax]
mov rcx, rdi
call qword [r10 + 0x28]
mov edi, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jne 0x140201346
lea ecx, [rdi + 0x68]
call fcn.14018ef40
mov qword [rbp - 0x58], rax
test rax, rax
je 0x140201343
mov rdx, qword [rbp + 0xa10]
mov rcx, rax
call fcn.14018d8d0
mov r15, rax
jmp 0x140201346
xor r15d, r15d
mov rcx, qword [rbp + 0xa10]
test rcx, rcx
je 0x140201359
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rsi, rsi
je 0x140201366
mov rcx, rsi
call fcn.140247060
test r15, r15
je 0x1402014f5
movups xmm0, xmmword [0x1402d7350]
movaps xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [0x1402cf730]
movaps xmmword [rsp + 0x30], xmm1
mov rcx, qword [r15 + 0x60]
test rcx, rcx
je 0x1402013fe
mov qword [rbp + 0xa20], 0
mov rax, qword [rcx]
lea rdx, [rbp + 0xa20]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x1012
xor r9d, r9d
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x30]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jne 0x1402013ec
lea ecx, [rax + 0x50]
call fcn.14018ef40
mov qword [rbp - 0x50], rax
test rax, rax
je 0x1402013e9
mov rdx, qword [rbp + 0xa20]
mov rcx, rax
call fcn.14018d870
mov r14, rax
jmp 0x1402013ec
xor r14d, r14d
mov rcx, qword [rbp + 0xa20]
test rcx, rcx
je 0x1402013fe
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp dword [rbx + 0x28], 0
je 0x1402014d6
lea rax, vtable.CSABString.0
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], 0xa
mov ecx, VariantTimeToDosDateTime
call fcn.140247068
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140201454
movsd xmm0, qword [str.FOLDERPATH]
movsd qword [rax], xmm0
movzx ecx, word [0x1402ce340]
mov word [rax + 8], cx
movzx ecx, byte [0x1402ce342]
mov byte [rax + 0xa], cl
mov dword [rsp + 0x44], 1
cmp qword [r14 + 0x48], 0
je 0x1402014c9
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x68], rax
mov eax, 0x1e
mov word [rbp - 0x78], ax
mov rax, qword [rbx + 0x20]
mov qword [rbp - 0x70], rax
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.14000bd30
mov rcx, qword [rax]
mov qword [rbp - 0x80], rcx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [r14 + 0x48]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 0x100
lea r9, [rbp - 0x78]
lea r8, [rsp + 0x78]
mov edx, 1
call qword [rax + 0x20]
nop
test rdi, rdi
je 0x1402014d6
mov rcx, rdi
call fcn.140247060
test r14, r14
je 0x1402014e8
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
mov rax, qword [r15]
mov edx, 1
mov rcx, r15
call qword [rax]
inc r13d
mov rbx, qword [rbx]
mov rdi, qword [rbp + 0xa18]
cmp rbx, qword [rdi]
lea rsi, vtable.CSABString.0
jne 0x140201241
mov r12, qword [rsp + 0x58]
mov rcx, qword [rbp + 0xa28]
lea rsi, vtable.CSABString.0
lea r14, vtable.CSABOLECompoundFile.0
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov qword [rbp + 0xd0], r14
lea rax, vtable.CSABOSVersion.0
mov qword [rbp + 0xf8], rax
mov qword [rbp + 0x9a0], rsi
add dword [rbp + 0x9b4], 0xffffffff
jne 0x14020156d
mov rcx, qword [rbp + 0x9a8]
test rcx, rcx
je 0x14020156d
call fcn.140247060
mov rcx, qword [rbp + 0xf0]
test rcx, rcx
je 0x14020157f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbp + 0xd8], rsi
add dword [rbp + 0xec], 0xffffffff
jne 0x1402015a1
mov rcx, qword [rbp + 0xe0]
test rcx, rcx
je 0x1402015a1
call fcn.140247060
nop
test r12, r12
je 0x1402015ae
mov rcx, r12
call fcn.140247060
mov eax, 1
add rsp, 0xac8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret