Function at 0x14002e854
Capabilities:
Delete service
Enumerate gui resources
Get graphical window text
Query service status
Start service
Stop service

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x560
mov qword [rsp + 0x120], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x140099938]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov r13, rdx
mov qword [rsp + 0x108], rdx
mov qword [rsp + 0x38], rcx
mov qword [r11 - 0x468], rdx
mov ebx, 8
mov rcx, rbx
call fcn.14005b298
xor r14d, r14d
cmp rax, r14
je 0x14002e8c4
lea rcx, [rsp + 0xb0]
mov qword [rax], rcx
jmp 0x14002e8c7
mov rax, r14
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc8], r14
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xd8], r14
lea rax, [fcn.140009f98]
mov qword [rsp + 0x20], rax
lea r9, [0x140009f6c]
mov r8d, 5
mov rdx, rbx
lea rcx, [rsp + 0xe0]
call fcn.14005da7c
nop
lea rcx, [0x1400998c0]
mov rax, qword [0x1400998c0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rcx, [0x1400998c0]
mov rax, qword [0x1400998c0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov esi, r14d
mov rbp, r14
mov r15, r14
mov rdi, r14
mov qword [rsp + 0x78], r14
mov dword [rsp + 0x40], r14d
mov rcx, qword [r13]
sub rcx, 0x18
call fcn.140009ef0
add rax, 0x18
mov qword [rsp + 0x118], rax
mov r8d, 0x2c
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x118]
call fcn.14002802c
mov r12, qword [rsp + 0xd0]
mov rcx, r12
mov rbx, qword [rsp + 0xc8]
sub rcx, rbx
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 4
jb 0x14002f23e
cmp rdx, 5
ja 0x14002f23e
cmp rbx, r12
jbe 0x14002e9de
call fcn.14005c2f8
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rbx
movaps xmm0, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x80], xmm0
mov r13, r14
lea r14, [rsp + 0xe0]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov r12, qword [rsp + 0xd0]
cmp qword [rsp + 0xc8], r12
jbe 0x14002ea39
call fcn.14005c2f8
test rdi, rdi
je 0x14002ea48
cmp rdi, qword [rsp + 0xb0]
je 0x14002ea4d
call fcn.14005c2f8
cmp rbx, r12
je 0x14002eaf9
cmp r13, 5
jae 0x14002eacc
test rdi, rdi
jne 0x14002ea6b
call fcn.14005c2f8
xor r11d, r11d
jmp 0x14002ea6e
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x14002ea79
call fcn.14005c2f8
cmp qword [rbx + 0x20], 8
jb 0x14002ea86
mov r12, qword [rbx + 8]
jmp 0x14002ea8a
lea r12, [rbx + 8]
test r12, r12
jne 0x14002ea93
xor eax, eax
jmp 0x14002ea9b
mov rcx, r12
call fcn.14005b1c0
mov r8d, eax
mov rdx, r12
mov rcx, r14
call fcn.14000a188
mov r11, qword [r14]
mov qword [rsp + 0x20], r11
mov r9, r13
lea r8, str.Parameter__1_d_____2_s__n
lea rdx, str.CUninstallActions::Test
mov ecx, 4
call fcn.140009480
test rdi, rdi
jne 0x14002eadb
call fcn.14005c2f8
xor r11d, r11d
jmp 0x14002eade
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x14002eae9
call fcn.14005c2f8
add rbx, 0x28
inc r13
add r14, 8
jmp 0x14002ea22
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x70]
call fcn.14000a830
mov rbx, qword [rsp + 0x70]
cmp dword [rbx - 0x10], esi
jne 0x14002eb1f
mov esi, 1
jmp 0x14002f28e
mov rcx, qword [rsp + 0x100]
cmp dword [rcx - 0x10], esi
je 0x14002eb62
add rcx, 0xffffffffffffffe8
call fcn.140009ef0
add rax, 0x18
mov qword [rsp + 0x110], rax
lea rdx, [rsp + 0x110]
mov r14, qword [rsp + 0x38]
mov rcx, r14
call fcn.14002e178
test eax, eax
jne 0x14002eb67
lea esi, [rax + 1]
jmp 0x14002f28e
mov r14, qword [rsp + 0x38]
lea rdx, str.CHK_APPCLASS
mov rcx, qword [rsp + 0xe0]
call fcn.14005c7d4
lea rdi, [0x140021e1c]
mov r13d, 2
test eax, eax
jne 0x14002ebc1
xor r12d, r12d
mov qword [rsp + 0x48], rbx
and qword [rsp + 0x50], rsi
and dword [rsp + 0x58], esi
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbp, qword [rsp + 0x50]
test rbp, rbp
jne 0x14002ecc2
lea esi, [rbp + 1]
jmp 0x14002f28e
lea rdx, str.CHK_APPTITLE
mov rcx, qword [rsp + 0xe0]
call fcn.14005c7d4
test eax, eax
jne 0x14002ec10
lea r12d, [rax + 1]
mov qword [rsp + 0x48], rbx
and qword [rsp + 0x50], rsi
mov dword [rsp + 0x58], r12d
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbp, qword [rsp + 0x50]
test rbp, rbp
jne 0x14002ecc2
mov esi, r12d
jmp 0x14002f28e
lea rdx, str.CHK_APPTITLE_INCLUDE
mov rcx, qword [rsp + 0xe0]
call fcn.14005c7d4
test eax, eax
jne 0x14002ec5a
mov r12d, r13d
mov qword [rsp + 0x48], rbx
and qword [rsp + 0x50], rsi
mov dword [rsp + 0x58], r13d
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbp, qword [rsp + 0x50]
test rbp, rbp
jne 0x14002ecc2
lea esi, [rbp + 1]
jmp 0x14002f28e
lea rdx, str.CHK_SERVICE
mov rcx, qword [rsp + 0xe0]
call fcn.14005c7d4
test eax, eax
jne 0x14002f231
xor edx, edx
xor ecx, ecx
mov r8d, 0x400f003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x14002ec9b
lea esi, [rax + 1]
jmp 0x14002f27f
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r15, rax
test rax, rax
jne 0x14002ecbd
lea esi, [rax + 1]
jmp 0x14002f27f
mov r12d, dword [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, str.0x_x
mov rcx, qword [rsp + 0xf0]
call fcn.14005d32c
test eax, eax
jg 0x14002ecfe
mov r8d, 0xa
lea rdx, [rsp + 0x128]
mov rcx, qword [rsp + 0xf0]
call fcn.14005da3c
mov dword [rsp + 0x40], eax
test rbp, rbp
je 0x14002f114
lea rcx, [0x1400998c0]
mov rax, qword [0x1400998c0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rcx, [0x1400998c0]
mov rax, qword [0x1400998c0]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x60], rdi
and dword [rsp + 0x30], 0
xor r13d, r13d
mov rcx, rbp
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14002ed67
mov r8d, 0x208
lea rdx, [rsp + 0x140]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14002f048
sub eax, 1
je 0x14002ef20
sub eax, 0xf
je 0x14002ee84
sub eax, 0x10
je 0x14002ee44
cmp eax, 0xe0
jne 0x14002f0d7
and qword [rsp + 0x50], r13
lea rdx, [rsp + 0x48]
lea rcx, [0x140021c08]
call qword [sym.imp.USER32.dll_EnumWindows]
mov edx, 0x7f02
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov rsi, rax
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, r12d
test r12d, r12d
je 0x14002ee19
sub ecx, 1
je 0x14002ee09
cmp ecx, 1
jne 0x14002ee27
mov qword [rsp + 0x48], rbx
and qword [rsp + 0x50], r13
lea rdx, [rsp + 0x48]
lea rcx, [0x140021e1c]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbp, qword [rsp + 0x50]
jmp 0x14002ee27
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rbp, rax
jmp 0x14002ee27
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rbp, rax
test rbp, rbp
jne 0x14002edc9
test rsi, rsi
je 0x14002ee3a
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetCursor]
mov esi, 1
jmp 0x14002f0d7
and qword [rsp + 0x50], r13
lea rdx, [rsp + 0x48]
lea rcx, [0x140021c08]
call qword [sym.imp.USER32.dll_EnumWindows]
lea rdx, str.SET_VARSIGNED_0x00000000_TERMINATEPROC_DIRECT___1
lea rcx, [rsp + 0x80]
call fcn.14000b470
mov rdx, rax
mov rcx, r14
call fcn.140038ecc
mov esi, 1
jmp 0x14002f0d7
and qword [rsp + 0x50], r13
lea rdx, [rsp + 0x48]
lea rcx, [0x140021c08]
call qword [sym.imp.USER32.dll_EnumWindows]
mov edx, 0x7f02
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rbp, rax
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov rsi, rax
lea r9, [rsp + 0x30]
mov r8d, 0xb
lea rdx, str._WAITTIME_
mov rcx, r14
call fcn.140024940
mov ebx, dword [rsp + 0x30]
mov ecx, 0x2710
test eax, eax
cmove ebx, ecx
mov dword [rsp + 0x30], ebx
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
add r13d, 0x3e8
call fcn.1400128a4
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetCursor]
cmp r13d, ebx
jb 0x14002eee3
test rsi, rsi
je 0x14002ef16
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetCursor]
mov esi, 1
jmp 0x14002f0d7
lea r8, [rsp + 0x140]
mov esi, 0xfae
mov edx, esi
lea rcx, [rsp + 0x38]
call fcn.140013a04
mov edx, esi
mov rcx, qword [0x140099070]
call fcn.14000b0f0
mov edi, eax
xor edx, edx
mov ecx, eax
call fcn.140009afc
test rax, rax
je 0x14002ef67
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14000a0b4
mov r8, qword [0x14009af68]
lea rdx, [0x140077ce0]
lea rcx, [rsp + 0x60]
call fcn.14000a4cc
mov rdi, qword [rsp + 0x60]
mov edx, esi
mov rcx, qword [0x140099070]
call fcn.14000b18c
mov r9d, eax
mov r8, rdi
mov rdx, qword [rsp + 0x38]
mov rcx, qword [r14 + 0x108]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov r13d, eax
cmp eax, 4
jne 0x14002f039
mov edx, r12d
test r12d, r12d
je 0x14002f022
sub edx, 1
je 0x14002f012
cmp edx, 1
jne 0x14002f030
and qword [rsp + 0x50], 0
lea rdx, [rsp + 0x48]
lea rcx, [0x140021e1c]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbp, qword [rsp + 0x50]
mov r8d, 0x208
lea rdx, [rsp + 0x140]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea r8, [rsp + 0x140]
mov edx, esi
lea rcx, [rsp + 0x38]
call fcn.140013a04
jmp 0x14002f030
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rbp, rax
jmp 0x14002f030
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rbp, rax
test rbp, rbp
jne 0x14002ef84
xor esi, esi
cmp r13d, 2
setne sil
jmp 0x14002f0d7
lea r8, [rsp + 0x140]
mov edi, 0xfad
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140013a04
mov edx, edi
mov rcx, qword [0x140099070]
call fcn.14000b0f0
mov ebx, eax
xor edx, edx
mov ecx, eax
call fcn.140009afc
test rax, rax
je 0x14002f08f
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14000a0b4
mov r8, qword [0x14009af68]
lea rdx, [0x140077ce0]
lea rcx, [rsp + 0x60]
call fcn.14000a4cc
mov edx, edi
mov rcx, qword [0x140099070]
call fcn.14000b18c
mov r9d, eax
mov rdi, qword [rsp + 0x60]
mov r8, rdi
mov rdx, qword [rsp + 0x38]
mov rcx, qword [r14 + 0x108]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov esi, 1
lea rdx, [rdi - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14002f0f5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14002f114
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test r15, r15
je 0x14002f27a
xor edx, edx
lea r8d, [rdx + 0x1c]
lea rcx, [rsp + 0x90]
call fcn.14005bb90
mov r11d, dword [rsp + 0x40]
test r11d, r11d
je 0x14002f1af
sub r11d, 1
je 0x14002f15a
cmp r11d, 0xf
jne 0x14002f221
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
jmp 0x14002f221
lea r8, [rsp + 0x90]
mov edx, 1
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14002f1a8
cmp dword [rsp + 0x94], 1
je 0x14002f1a8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x90]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14002f1a8
cmp dword [rsp + 0x94], 1
jne 0x14002f17e
mov esi, 1
jmp 0x14002f221
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x14002f21c
lea rdx, [rsp + 0x90]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14002f21c
cmp dword [rsp + 0x94], 4
je 0x14002f204
mov ecx, dword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x90]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14002f1d6
jmp 0x14002f21c
lea r8, str.Service_start._n
lea rdx, str.CUninstallActions::Test
mov ecx, 4
call fcn.140009480
mov esi, 1
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x78]
jmp 0x14002f27f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14002f28e
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8, qword [r13]
lea rdx, str.CUninstallActions::Test_invalid_parameters.___s_
lea rcx, [rsp + 0x68]
call fcn.14000b0cc
mov r9d, 0x10
lea r8, str.Internal_Error
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x14002f27f
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x14002f28e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14002f2b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14002f2d1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea r9, [fcn.140009f98]
mov edx, 8
lea r8d, [rdx - 3]
lea rcx, [rsp + 0xe0]
call fcn.14005bcfc
nop
lea rcx, [rsp + 0xb0]
call fcn.140005204
mov rcx, qword [rsp + 0xb0]
call fcn.14005ab0c
nop
mov rdx, qword [rsp + 0x108]
mov rdx, qword [rdx]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14002f32f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, esi
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.14005bad0
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x560
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret