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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20a70]
mov eax, 0x20b70
call fcn.14024c240
sub rsp, rax
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x20bb0], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x20a60], rax
mov dword [rsp + 0x70], r9d
mov rbx, r8
mov edi, edx
mov rax, qword [rbp + 0x20ad0]
mov qword [rsp + 0x78], rax
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_DeleteUPDFile
lea rcx, [rbp - 0x78]
call fcn.1400075a0
nop
mov r9d, edi
lea r8, str.cVer___d
mov r14d, 1
mov edx, r14d
lea rcx, [rbp - 0x78]
call fcn.140007780
xor r12d, r12d
mov word [rbp + 0x440], r12w
xor edx, edx
mov r8d, 0x616
lea rcx, [rbp + 0x442]
call fcn.14024b970
mov word [rbp + 0xa60], r12w
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rbp + 0xa62]
call fcn.14024b970
mov word [rbp + 0x10a60], r12w
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rbp + 0x10a62]
call fcn.14024b970
mov word [rbp + 0x20], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x22]
call fcn.14024b970
mov word [rbp + 0x230], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x232]
call fcn.14024b970
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x30], r12d
lea rcx, [rbp - 0x68]
call fcn.140105848
nop
lea rcx, [rbp - 0x40]
call fcn.140105848
nop
or r13, 0xffffffffffffffff
mov r8, r13
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.140105958
mov r8, r13
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.140105958
lea rcx, [rbp + 0x440]
cmp edi, 3
je 0x140095b8b
cmp edi, 5
jne 0x140095b8b
lea rdx, str.SystemCurrentControlSetControlPrintEnvironmentsWindows_x64DriversVersion_3
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.Windows_x64
jmp 0x140095b9f
lea rdx, str.SystemCurrentControlSetControlPrintEnvironmentsWindows_NT_x86DriversVersion_3
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.Windows_NT_x86
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp + 0x440]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, [rbx + 8]
lea rcx, [rbp + 0x440]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdi, qword [rax]
lea r8, [rbp + 0x230]
lea rdx, [rbp + 0x20]
mov rcx, rax
call qword [rdi + 0x238]
lea rcx, [rbp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, [0x1402fb514]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9d, 0xf003f
lea r8, [rbp + 0x440]
mov rdx, 0xffffffff80000002
call qword [rax + 0xf0]
test eax, eax
jne 0x140096379
mov dword [rsp + 0x30], 0x10000
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp + 0xa60]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x48]
lea r8, str.Dependent_Files
mov rdx, qword [rsp + 0x68]
call qword [rax + 0x108]
cmp dword [rsp + 0x30], 0
jbe 0x14009635f
lea rbx, [rbp + 0xa60]
mov esi, r12d
lea rdx, [0x1402dc4e0]
lea rcx, [rsp + 0x38]
call fcn.140005900
nop
lea rdx, [0x1402dc4e0]
lea rcx, [rsp + 0x60]
call fcn.140005900
nop
lea rdx, [0x1402dc4e0]
lea rcx, [rsp + 0x40]
call fcn.140005900
nop
cmp word [rbp + 0xa60], 0
je 0x140095dd5
nop word [rax + rax]
cmp esi, dword [rsp + 0x30]
jae 0x140095dd5
test rbx, rbx
jne 0x140095cf4
mov ecx, r12d
jmp 0x140095d05
xor eax, eax
mov rcx, r13
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140005d50
mov rcx, qword [rsp + 0x40]
movsxd rdi, dword [rcx - 0x10]
test edi, edi
js 0x140095dca
mov edx, r14d
sub edx, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
sub eax, edi
or eax, edx
jge 0x140095d46
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140005e40
mov rcx, qword [rsp + 0x40]
lea eax, [rdi + 1]
movsxd rdx, eax
call fcn.140245bdc
mov rdx, qword [rsp + 0x40]
cmp edi, dword [rdx - 0xc]
jg 0x140095dbf
mov dword [rdx - 0x10], edi
mov rax, qword [rsp + 0x40]
mov word [rax + rdi*2], r12w
mov rcx, qword [rsp + 0x40]
cmp dword [rcx - 0x10], 0
jl 0x140095da1
lea rdx, str..upd
call fcn.140245e24
test rax, rax
je 0x140095da1
sub rax, qword [rsp + 0x40]
sar rax, 1
cmp eax, 0xffffffff
je 0x140095da1
mov r8, rbx
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x68]
call fcn.140105f30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [rax + 1]
lea rbx, [rbx + rdx*2]
add esi, edx
cmp word [rbx], 0
jne 0x140095ce0
jmp 0x140095dd5
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 0x80070057
call fcn.140005210
int3
mov rsi, qword [rbp - 0x58]
mov qword [rbp - 0x80], rsi
test esi, esi
je 0x1400962fd
mov dword [rsp + 0x30], 0x10000
mov dword [rsp + 0x48], r12d
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp + 0x10a60]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x48]
lea r8, str.Dependent_ConfigFiles
mov rdx, qword [rsp + 0x68]
call qword [rax + 0x108]
mov r11d, dword [rsp + 0x30]
test r11d, r11d
je 0x1400962fd
lea rdi, [rbp + 0x10a60]
mov ebx, r12d
cmp word [rbp + 0x10a60], bx
je 0x140095e84
nop word [rax + rax]
cmp ebx, r11d
jae 0x140095e84
mov r8, rdi
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x40]
call fcn.140105f30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [rax + 1]
lea rdi, [rdi + rdx*2]
add ebx, edx
cmp word [rdi], 0
je 0x140095e84
mov r11d, dword [rsp + 0x30]
jmp 0x140095e50
mov r14d, dword [rbp - 0x30]
mov dword [rsp + 0x58], r12d
mov r15, r12
test esi, esi
je 0x1400962f7
nop dword [rax + rax]
test r15, r15
js 0x1400962f1
cmp r15, qword [rbp - 0x58]
jge 0x1400962f1
mov rax, qword [rbp - 0x60]
mov rdx, qword [rax + r15*8]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x38]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140095f16
cmp dword [rdi + 0x10], 0
jl 0x140095f08
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140095f08
call fcn.140006190
mov rbx, rax
mov eax, r13d
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140095efd
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x140095f16
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140005d50
mov esi, r12d
mov rbx, r12
test r14d, r14d
je 0x140095fd7
test rbx, rbx
js 0x14009601e
cmp rbx, qword [rbp - 0x30]
jge 0x14009601e
mov rax, qword [rbp - 0x38]
mov r9, qword [rax + rbx*8]
lea rcx, [r9 - 0x18]
mov rdx, qword [rsp + 0x60]
lea rdi, [rdx - 0x18]
cmp rcx, rdi
je 0x140095fa7
cmp dword [rdi + 0x10], 0
jl 0x140095f91
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140095f91
call fcn.140006190
mov r12, rax
mov eax, r13d
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140095f82
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [r12 + 0x18]
mov qword [rsp + 0x60], rdx
xor r12d, r12d
jmp 0x140095fa7
mov r8d, dword [r9 - 0x10]
mov rdx, r9
lea rcx, [rsp + 0x60]
call fcn.140005d50
mov rdx, qword [rsp + 0x60]
mov eax, r12d
test rdx, rdx
setne al
test eax, eax
je 0x140096013
mov rcx, qword [rsp + 0x38]
call fcn.140247088
test eax, eax
je 0x140095fd2
inc esi
inc rbx
cmp esi, r14d
jb 0x140095f25
jmp 0x140095fd7
cmp esi, r14d
jb 0x140095ff8
mov edx, 0x5f
mov rcx, qword [rsp + 0x38]
call fcn.140249468
test rax, rax
je 0x140096024
sub rax, qword [rsp + 0x38]
sar rax, 1
cmp eax, 0xffffffff
je 0x140096024
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
inc r15
cmp eax, dword [rbp - 0x80]
jae 0x1400962f7
jmp 0x140095ea0
mov ecx, 0x80004005
call fcn.140005210
int3
call fcn.140102ffc
int3
call fcn.140102a14
mov rdx, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140096044
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rcx, [rbp + 0x20]
lea rax, [rbp + 0x20]
test rax, 0xffffffffffff0000
jne 0x140096093
movzx edi, cx
mov ecx, edi
call fcn.1401027e8
test rax, rax
je 0x140096194
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140005b00
mov rbx, qword [rsp + 0x50]
jmp 0x140096194
xor eax, eax
mov rcx, r13
lea rdi, [rbp + 0x20]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14009610c
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140096194
cmp dword [rdx + 0x10], eax
jge 0x1400960de
cmp dword [rbx - 0xc], eax
jge 0x1400960d1
mov ecx, 0x80070057
call fcn.140005210
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140096194
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400960f5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
jmp 0x140096194
mov r12d, dword [rbx - 0x10]
lea rsi, [rbp + 0x20]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
jns 0x140096129
mov ecx, 0x80070057
call fcn.140005210
int3
mov r14d, 1
mov ecx, r14d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14009614f
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140005e40
mov rbx, qword [rsp + 0x50]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x140096173
lea r8, [rbx + rsi*2]
call fcn.1402457b4
jmp 0x14009617c
lea r8, [rbp + 0x20]
call fcn.1402471ac
cmp edi, dword [rbx - 0xc]
jg 0x1400962e6
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
xor r12d, r12d
jmp 0x14009619a
mov r14d, 1
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400962c9
cmp dword [rsp + 0x70], 0
je 0x1400962bc
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rdi, qword [rax]
lea rdx, [rbp - 0x10]
mov rcx, rax
call qword [rdi + 0xa8]
nop
mov eax, r12d
cmp qword [rbp], 0
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
je 0x140096299
mov rcx, qword [0x1403b9768]
lea r8, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae r8, qword [rbp - 0x10]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x38]
mov rdx, rbx
call qword [rax + 0xd0]
mov r14d, eax
test eax, eax
je 0x140096299
mov rsi, qword [rsp + 0x78]
test rsi, rsi
je 0x140096299
mov rdx, qword [rsp + 0x38]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsi]
sub rdi, 0x18
cmp rcx, rdi
je 0x140096299
cmp dword [rdi + 0x10], 0
jl 0x14009628c
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14009628c
call fcn.140006190
mov rbx, rax
mov ecx, r13d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14009627e
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsi], rax
mov rbx, qword [rsp + 0x50]
jmp 0x140096299
mov r8d, dword [rdx - 0x10]
mov rcx, rsi
call fcn.140005d50
nop
cmp qword [rbp + 8], 8
jb 0x1400962a9
mov rcx, qword [rbp - 0x10]
call fcn.1401026ec
mov qword [rbp + 8], 7
mov qword [rbp], r12
mov word [rbp - 0x10], r12w
jmp 0x1400962c9
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r14d, eax
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400962fd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400962fd
mov ecx, 0x80070057
call fcn.140005210
nop
call fcn.140102ffc
int3
mov r14d, 1
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009631e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009633f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x14009635f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x68]
call qword [rax + pe_nt_image_headers64]
mov qword [rsp + 0x68], r12
mov r9d, r14d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rbp - 0x78]
call fcn.140007780
nop
lea rcx, [rbp - 0x40]
call fcn.140105ce4
nop
lea rcx, [rbp - 0x68]
call fcn.140105ce4
nop
lea rcx, [rbp - 0x78]
call fcn.140007730
mov eax, r14d
mov rcx, qword [rbp + 0x20a60]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x20bb0]
add rsp, 0x20b70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret