Function at 0x140023770
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov r13, rdx
mov rbx, rcx
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x90]
mov rcx, rbx
call fcn.140023690
or esi, 0xffffffff
test al, al
je 0x1400239fb
mov rdi, qword [rsp + 0x90]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400237ed
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
mov r8, qword [r13 + 8]
sub r8, qword [r13]
sar r8, 3
lea rdx, [0x1400de14c]
lea rcx, [rsp + 0x28]
call fcn.140004440
mov r9, rdi
mov r8, qword [rsp + 0x28]
lea rdx, str.TotalCount
lea rcx, str.PatchCount
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1400de14c]
lea rcx, [rsp + 0x20]
call fcn.140004440
mov r9, rdi
mov r8, qword [rsp + 0x20]
lea rdx, str.InstalledCount
lea rcx, str.PatchCount
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rax, qword [r13 + 8]
sub rax, qword [r13]
sar rax, 3
test rax, rax
je 0x1400239bb
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x98], rbx
xor r15d, r15d
mov r12d, r15d
mov rax, qword [r13 + 8]
sub rax, qword [r13]
sar rax, 3
test rax, rax
je 0x1400239a0
mov r14d, r15d
nop word [rax + rax]
lea rdx, [rbx - 0x18]
mov rbp, qword [rdx]
cmp dword [rdx + 8], r15d
je 0x14002393b
cmp dword [rdx + 0x10], r15d
jge 0x140023907
cmp dword [rbx - 0xc], r15d
jl 0x140023995
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14002393b
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002391d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x98], rax
mov rdi, qword [rsp + 0x90]
mov r8d, r12d
lea rdx, str.Patch_d
lea rcx, [rsp + 0x98]
call fcn.140004440
mov r11, qword [r13]
mov r9, rdi
mov r8, qword [r14 + r11]
mov rbx, qword [rsp + 0x98]
mov rdx, rbx
lea rcx, [0x1400e2c38]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
inc r12d
add r14, 8
mov rcx, qword [r13 + 8]
sub rcx, qword [r13]
sar rcx, 3
movsxd rax, r12d
cmp rax, rcx
jae 0x1400239a0
jmp 0x1400238e0
mov ecx, 0x80070057
call fcn.140001000
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400239bb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400239db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400239fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140023a1b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret