Function at 0x140018230
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x70
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r12, r8
mov r13, rdx
mov rsi, rcx
mov dword [rsp + 0x90], 0x80000000
mov rax, qword [rcx + 0x180]
lea rdx, [rax - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], 0
je 0x1400182cd
cmp dword [rdx + 0x10], 0
jge 0x1400182a1
cmp dword [rax - 0xc], 0
jge 0x14001828c
mov ecx, 0x80070057
call fcn.140003280
int3
mov dword [rax - 0x10], 0
mov rax, qword [rcx + 0x180]
mov word [rax], 0
jmp 0x1400182cd
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400182b9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi + 0x180], rax
lea r8, str.SoftwareUpdate_Temp
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.1400090a0
nop
mov rdx, qword [rax]
lea rcx, [rsi + 0x180]
call fcn.140009290
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140018313
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x14007e0bc]
lea rdx, [rsi + 0x180]
lea rcx, [rsp + 0x50]
call fcn.1400090a0
nop
lea r8, str.Logfile.dat
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400090a0
nop
mov rdx, qword [rax]
lea rcx, [rsi + 0x250]
call fcn.140009290
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140018373
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140018394
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
mov rcx, rsi
call fcn.140018890
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1400183c2
mov dword [rsp + 0x24], 0xfffffff7
lea rdx, [0x140093ad0]
lea rcx, [rsp + 0x24]
call fcn.1400551c0
mov rcx, r13
call fcn.14002e33c
mov qword [rsi + 0x248], rax
mov eax, dword [rsi + 0x1dc]
test eax, eax
jle 0x1400185ac
cmp eax, 2
jle 0x1400183ed
cmp eax, 4
jne 0x1400185ac
mov rax, qword [rsi + 0x250]
cmp dword [rax - 0x10], 0
je 0x14001841f
mov rcx, rax
cmp dword [rax - 0x10], 0
je 0x14001841f
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001841f
test al, 0x10
jne 0x14001841f
mov rcx, qword [rsi + 0x250]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsi + 0x180]
cmp dword [rcx - 0x10], 0
je 0x14001843b
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001843b
test al, 0x10
jne 0x140018464
lea rcx, [rsi + 0x180]
call fcn.140008270
test eax, eax
jne 0x140018464
mov dword [rsp + 0x20], 0xfffffffe
lea rdx, [0x140093ad0]
lea rcx, [rsp + 0x20]
call fcn.1400551c0
mov ecx, 0x80
call fcn.140027ca4
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140018482
mov rcx, rax
call fcn.140001000
jmp 0x140018484
xor eax, eax
mov qword [rsi + 0x1d0], rax
test rax, rax
je 0x14001859f
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x48], rax
mov rbx, qword [rsi + 0x190]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x1400184cc
cmp rax, qword [rbx - 0x18]
jne 0x1400184cc
lea rdi, [rbx - 0x18]
lock add dword [rbx - 8], 1
jmp 0x140018509
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
jne 0x1400184e7
call fcn.140003050
mov eax, dword [rbx - 0x10]
mov dword [rdi + 8], eax
mov eax, dword [rbx - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rbx
add rdx, rdx
lea rcx, [rdi + 0x18]
call fcn.1400525a0
lea rax, [rdi + 0x18]
mov qword [rsp + 0xa8], rax
mov rbx, qword [rsi + 0x198]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x140018540
cmp rax, qword [rbx - 0x18]
jne 0x140018540
lea rdi, [rbx - 0x18]
lock add dword [rbx - 8], 1
jmp 0x14001857d
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
jne 0x14001855b
call fcn.140003050
mov eax, dword [rbx - 0x10]
mov dword [rdi + 8], eax
mov eax, dword [rbx - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rbx
add rdx, rdx
lea rcx, [rdi + 0x18]
call fcn.1400525a0
lea rax, [rdi + 0x18]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsi + 0x1d0]
call fcn.1400014e0
mov dword [rsp + 0x90], 0
jmp 0x1400185c6
mov dword [rsp + 0x28], 0xffffffff
lea rdx, [0x140093ad0]
lea rcx, [rsp + 0x28]
call fcn.1400551c0
nop
mov eax, dword [rsp + 0x90]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret