Function at 0x140016940
Capabilities:
Delete file
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x1402c7100]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r14, rcx
call fcn.1400648f8
xor edx, edx
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_GetSystemMenu]
mov rcx, rax
call fcn.14006e458
mov rdi, rax
test rax, rax
je 0x140016a21
call fcn.140068b40
mov rcx, rax
test rax, rax
je 0x140016d5d
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x2f], rbx
mov ecx, 0x65
call fcn.140068d68
test rax, rax
je 0x1400169d4
mov r8d, 0x65
mov rdx, rax
lea rcx, [rbp + 0x2f]
call fcn.1400141b0
mov rbx, qword [rbp + 0x2f]
cmp dword [rbx - 0x10], 0
je 0x140016a05
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r9, rbx
xor edx, edx
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_AppendMenuW]
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140016a21
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9, qword [r14 + 0x170]
mov edx, 0x80
mov r8d, 1
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, qword [r14 + 0x170]
xor r8d, r8d
mov edx, 0x80
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x1402d8108], 1
jne 0x140016d19
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov r8d, 7
lea rdx, [0x140288ba8]
lea rcx, [rbp - 0x29]
call fcn.140004b10
nop
xor edx, edx
xor ecx, ecx
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140016aa8
xor bl, bl
jmp 0x140016bb2
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 7
cmova rdx, qword [rbp - 0x29]
mov r8d, 0x24
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140016add
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor bl, bl
jmp 0x140016bb2
lea rdx, [rbp + 0xf]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140016b07
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor bl, bl
jmp 0x140016bb2
cmp dword [rbp + 0x13], 4
jne 0x140016b9e
call fcn.1400045a0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140005520
movzx edx, ax
mov rcx, rbx
call fcn.140005370
mov rcx, rbx
call fcn.140005210
lea r8, [rbp + 0xf]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rdi
test eax, eax
je 0x140016af1
mov ebx, 0x2710
lea rdx, [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140016b9e
nop dword [rax]
cmp dword [rbp + 0x13], 1
je 0x140016b9e
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0xfffffc18
mov rcx, rdi
je 0x140016af1
lea rdx, [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140016b70
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x140016bf2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016bed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016d68
call fcn.140014a40
movzx edx, bl
lea rcx, str.CMyInstallerDlg::OnInitDialog___w_bPrevServiceSts___d
call fcn.1400102d0
cmp bl, 1
jne 0x140016cf4
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xor ebx, ebx
mov qword [rbp + 0x1f], rbx
mov qword [rbp + 0x27], rbx
mov r8d, 0x18
lea rdx, [0x140288bf0]
lea rcx, [rbp + 0xf]
call fcn.140004b10
nop
mov rcx, qword [rbp + 0x1f]
mov rdx, qword [rbp + 0x27]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140016c60
lea rax, [rcx + 1]
mov qword [rbp + 0x1f], rax
lea rax, [rbp + 0xf]
cmp rdx, 7
cmova rax, qword [rbp + 0xf]
mov dword [rax + rcx*2], ebx
jmp 0x140016c76
mov word [rsp + 0x20], bx
mov edx, 1
mov r9d, edx
lea rcx, [rbp + 0xf]
call fcn.1400126d0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rax
mov dword [rbp - 0x21], 3
lea rax, [rbp + 0xf]
cmp qword [rbp + 0x27], 7
cmova rax, qword [rbp + 0xf]
mov qword [rbp - 0x19], rax
mov eax, 0x414
mov word [rbp - 9], ax
lea rcx, [rbp - 0x29]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 7
jbe 0x140016cf4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016cef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016d57
call fcn.140014a40
lea rcx, str.CMyInstallerDlg::OnInitDialog___DeleteFileA_GD_UPDATE_VER_FILEPATH_
call fcn.1400102d0
lea rcx, str.C:UsersPublicupinfo_ver.dat
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, str.CMyInstallerDlg::OnInitDialog___SS_Init__
call fcn.1400102d0
mov rcx, r14
call fcn.140017b60
mov edx, 2
mov rcx, r14
call fcn.1400645f0
mov eax, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14004d990
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1401f4404
int3
mov ecx, 0x80004005
call fcn.140005f00
int3
call fcn.1401f4404
int3