Function at 0x12887690
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Terminate process

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x24], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov dword [rsp + 0x20], eax
mov rcx, qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
call fcn.1288cbd0
cmp qword [rax + 0x20], 8
jb 0x128876f2
mov rcx, qword [rax + 8]
jmp 0x128876f6
lea rcx, [rax + 8]
lea rdx, str.update.exe
call fcn.1295a6e4
test eax, eax
jne 0x12887b67
cmp qword [0x12a210b8], 0
jne 0x12887729
lea r8, [0x12a210a0]
xor edx, edx
mov rcx, qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.12895000
mov qword [rsp + 0x50], 7
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x12a210a0]
lea rcx, [rsp + 0x30]
call fcn.12803c90
nop
mov r13, qword [rsp + 0x48]
test r13, r13
je 0x12887b41
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x129c6388]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rbx, rcx
je 0x12887823
test r13, r13
je 0x12887823
cmp r13, 0xffffffffffffffff
jbe 0x1288779c
or rdx, 0xffffffffffffffff
jmp 0x128877a0
lea rdx, [r13 - 1]
lea rax, [rsp + 0x38]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x50]
cmp rbp, 8
cmovae rax, rsi
lea rdi, [rax + rdx*2]
nop dword [rax + rax]
mov rcx, rbx
lea rax, [0x129c6388]
movzx edx, word [rdi]
nop dword [rax]
cmp word [rax], dx
je 0x128877f4
add rax, 2
sub rcx, 1
jne 0x128877d0
lea rcx, [rsp + 0x30]
call fcn.12803140
cmp rdi, rax
je 0x12887823
sub rdi, 2
jmp 0x128877c0
lea rax, [rsp + 0x38]
cmp rbp, 8
cmovae rax, rsi
sub rdi, rax
sar rdi, 1
cmp rdi, 0xffffffffffffffff
je 0x12887823
or r8, 0xffffffffffffffff
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.128033a0
mov r13, qword [rsp + 0x48]
test r13, r13
je 0x12887b41
lea r8, str.spuninst.exe
lea rdx, str..._s
lea rcx, [rsp + 0x30]
call fcn.12804840
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, r15d
cmp eax, 0xffffffff
setne cl
test ecx, ecx
je 0x12887b41
or r8, 0xffffffffffffffff
mov rdx, r13
lea rcx, [rsp + 0x30]
call fcn.128033a0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rbp, str.update.inf
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r12, [rbp + rcx*2 - 2]
lea ebx, [rax + 0x5c]
lea rsi, [0x129bcb5c]
cmp rbp, r12
je 0x1288791c
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x128878d6
lea rdi, [rax - 1]
cmp rax, rdi
ja 0x128878bf
call fcn.129581ac
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
cmp word [rax + rdi*2], bx
je 0x128878e8
mov r8d, ebx
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.12803b90
mov rcx, rsi
mov eax, ebx
mov edx, 0x75
cmp dx, ax
je 0x12887905
add rcx, 2
mov ax, word [rcx]
test ax, ax
jne 0x128878f2
jmp 0x1288790c
lea rbp, [0x129d27ba]
mov r8, r12
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.1281aed0
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x12887a6f
lea r9, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae r9, qword [rsp + 0x38]
xor r8d, r8d
lea rdx, str.MaxNtBuildToUpdate
lea rcx, str.Version
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0x270f
je 0x12887b41
lea r9, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae r9, qword [rsp + 0x38]
xor r8d, r8d
lea rdx, str.MaxNtServicePackVersion
lea rcx, str.Version
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0x270f
je 0x12887b41
or r8, 0xffffffffffffffff
mov rdx, r13
lea rcx, [rsp + 0x30]
call fcn.128033a0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rbp, str.KB926139_v2.CAT
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r12, [rbp + rcx*2 - 2]
cmp rbp, r12
je 0x12887a4a
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x12887a02
lea rdi, [rax - 1]
cmp rax, rdi
ja 0x128879eb
call fcn.129581ac
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
cmp word [rax + rdi*2], bx
je 0x12887a14
mov r8d, ebx
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.12803b90
mov eax, 0x4b
nop dword [rax]
cmp ax, bx
je 0x12887a33
add rsi, 2
mov bx, word [rsi]
test bx, bx
jne 0x12887a20
jmp 0x12887a3a
lea rbp, [0x129d279a]
mov r8, r12
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.1281aed0
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x12887b41
jmp 0x12887b2c
or r8, 0xffffffffffffffff
mov rdx, r13
lea rcx, [rsp + 0x30]
call fcn.128033a0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rbp, str.wic.cat
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r12, [rbp + rcx*2 - 2]
cmp rbp, r12
je 0x12887b10
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x12887acf
lea rdi, [rax - 1]
cmp rax, rdi
ja 0x12887ab8
call fcn.129581ac
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
cmp word [rax + rdi*2], bx
je 0x12887ae1
mov r8d, ebx
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.12803b90
mov eax, 0x77
cmp ax, bx
je 0x12887af9
add rsi, 2
mov bx, word [rsi]
test bx, bx
jne 0x12887ae6
jmp 0x12887b00
lea rbp, [0x129d278a]
mov r8, r12
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.1281aed0
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x12887b41
lea rcx, str.updsysbeenexit
call fcn.12805270
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
cmp qword [rsp + 0x50], 8
jb 0x12887b53
mov rcx, qword [rsp + 0x38]
call fcn.12958250
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r14d
je 0x12887b7b
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.12959850
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret