Function at 0x1400da3d0
Capabilities:
Query service status
Start service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x640]
sub rsp, 0x740
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rbp + 0x630], rax
xor r15d, r15d
lea rdx, str.TtqdsCjrqkbx
lea rcx, [rsp + 0x48]
call fcn.14008f3f0
mov ecx, r15d
cmp qword [rsp + 0x58], rcx
jbe 0x1400da467
mov edx, r15d
mov edi, 0xffff
nop word [rax + rax]
lea rax, [rsp + 0x48]
test cl, 1
je 0x1400da44c
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
inc word [rax + rdx*2]
jmp 0x1400da45c
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
add word [rax + rdx*2], di
inc ecx
mov edx, ecx
cmp rdx, qword [rsp + 0x58]
jb 0x1400da430
lea rdi, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdi, qword [rsp + 0x48]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x38], r15
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 0x34]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x1400da4b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.L4UtilServiceControlManager::L4UtilServiceControlManager_OpenSCManager_failed__LastError:_d__n
mov ecx, 1
call fcn.1400d9c10
nop
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.14008f3f0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400dc0d0
test al, al
jne 0x1400da510
lea rdx, str.L4DriverManager::ServiceStop_failed__open_n
mov ecx, 1
call fcn.1400d9c10
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400da4f7
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400da508
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
xor r14b, r14b
jmp 0x1400da640
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x20]
xor edx, edx
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400da58b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LuUtilServiceControlManager::ServiceStatusQuery_QueryServiceStatusEx_failed___d__n
mov ecx, 1
call fcn.1400d9c10
lea rdx, str.L4DriverManager::ServiceStop_ServiceStatusQuery_failed___1__n
mov ecx, 1
call fcn.1400d9c10
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400da574
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x1400da583
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
xor r14b, r14b
jmp 0x1400da640
cmp dword [rbp - 0x1c], 4
je 0x1400da5b8
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400da5a1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x1400da5b0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
xor r14b, r14b
jmp 0x1400da640
lea r8, [rbp - 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400da61e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.L4UtilServiceControlManager::ServiceStop_ControlService_failed__LastError:_d__n
mov ecx, 1
call fcn.1400d9c10
lea rdx, str.L4DriverManager::ServiceStop_ServiceStop_failed___n
mov ecx, 1
call fcn.1400d9c10
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400da60a
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x1400da619
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
xor r14b, r14b
jmp 0x1400da640
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400da62e
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x1400da63d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov r14b, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rsp + 0x70], 0xffffffffffffffff
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movups xmmword [rbp - 0x68], xmm1
movups xmmword [rbp - 0x58], xmm1
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r15w
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
lea rcx, [0x1404296e0]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x1400da6cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.L4PnpDeviceEnumerator::L4PnpDeviceEnumerator_SetupDiGetClassDevs_failed__GetLastError:__d
mov ecx, 1
call fcn.1400d9c10
nop
mov esi, r15d
xor r8d, r8d
lea rdx, [0x1404296e0]
lea rcx, [rsp + 0x70]
call fcn.1400dac70
test al, al
je 0x1400da866
nop dword [rax + rax]
mov r8d, 2
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
jne 0x1400da73a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.L4PnpDeviceEnumerator::DeviceDriverUpdateFromDriverStore_failed__SetupDiBuildDriverInfoList__d_n
mov ecx, 1
call fcn.1400d9c10
lea rdx, str.L4DriverManager::DeviceUsbAoapUpdateDriverToSpacedesk_DeviceDriverUpdate_failed__n
mov ecx, 1
call fcn.1400d9c10
jmp 0x1400da848
mov ebx, r15d
lea rdi, [rbp + 0x10]
xor eax, eax
mov ecx, 0x620
rep stosb byte [rdi], al
mov dword [rbp + 0x10], 0x620
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
je 0x1400da82e
nop dword [rax]
lea rdx, [rbp + 0x20]
lea rcx, str.spacedesk_Android_USB_Device
call fcn.1402b85e8
test eax, eax
jne 0x1400da7ee
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_SetupDiSetSelectedDriverW]
test eax, eax
jne 0x1400da7bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.L4PnpDeviceEnumerator::DeviceDriverUpdateFromDriverStore_failed__SetupDiSetSelectedDriver__d_n
jmp 0x1400da7e1
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov ecx, 2
call qword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x1400da7ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.L4PnpDeviceEnumerator::DeviceDriverUpdateFromDriverStore_failed__DIF_INSTALLDEVICE__d_n
mov r8d, eax
mov ecx, 1
call fcn.1400d9c10
inc ebx
lea rdi, [rbp + 0x10]
xor eax, eax
mov ecx, 0x620
rep stosb byte [rdi], al
mov dword [rbp + 0x10], 0x620
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8d, 2
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
jne 0x1400da780
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.L4PnpDeviceEnumerator::DeviceDriverUpdateFromDriverStore_failed__SetupDiEnumDriverInfo__d_n
mov ecx, 1
call fcn.1400d9c10
inc esi
mov r8d, esi
lea rdx, [0x1404296e0]
lea rcx, [rsp + 0x70]
call fcn.1400dac70
test al, al
jne 0x1400da6f0
test r14b, r14b
je 0x1400da9ff
lea rdi, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdi, qword [rsp + 0x48]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x38], r15
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 0x34]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x1400da8c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.L4UtilServiceControlManager::L4UtilServiceControlManager_OpenSCManager_failed__LastError:_d__n
mov ecx, 1
call fcn.1400d9c10
nop
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.14008f3f0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400dc0d0
test al, al
jne 0x1400da912
lea rdx, str.L4DriverManager::ServiceStop_failed__open_n
mov ecx, 1
call fcn.1400d9c10
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400da8ff
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400da9e3
jmp 0x1400da9dc
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x20]
xor edx, edx
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400da968
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LuUtilServiceControlManager::ServiceStatusQuery_QueryServiceStatusEx_failed___d__n
mov ecx, 1
call fcn.1400d9c10
lea rdx, str.L4DriverManager::L4DriverManager::ServiceStop_ServiceStatusQuery_failed___1__n
mov ecx, 1
call fcn.1400d9c10
nop
jmp 0x1400da9c4
cmp dword [rbp - 0x1c], 1
je 0x1400da970
jmp 0x1400da9c4
test rdi, rdi
jne 0x1400da986
lea rdx, str.L4UtilServiceControlManager::ServiceStart_Service_handle_invalid__n
lea ecx, [rdi + 1]
call fcn.1400d9c10
jmp 0x1400da9b2
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400da9e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.L4UtilServiceControlManager::ServiceStart_StartService_failed___d_n
mov ecx, 1
call fcn.1400d9c10
lea rdx, str.L4DriverManager::L4DriverManager::ServiceStop_L4DriverManager::ServiceStop_failed___n
mov ecx, 1
call fcn.1400d9c10
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400da9d4
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x1400da9e3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
jmp 0x1400da9ff
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400da9f5
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1400daa10
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1400daa50
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400daa4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400daad1
call fcn.1402ab340
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r15w
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400daa9f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400daa9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400daacb
call fcn.1402ab340
mov rcx, qword [rbp + 0x630]
xor rcx, rsp
call fcn.1402ab320
lea r11, [rsp + 0x740]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1402b2324
nop
call fcn.1402b2324
nop
int3