Function at 0x140002d00
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbp, rax
test rax, rax
je 0x140002ed3
mov r8d, 0xf01ff
mov qword [rsp + 0x170], rsi
lea rdx, str.PDFWKRNL
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x140002e2a
mov ebx, 1
lea r8, [rsp + 0x28]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140002e1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.ERROR:_StopDriver:ControlService_Failed:_0x_x____n
lea rcx, [rsp + 0x50]
mov edi, eax
call fcn.140001960
mov ecx, 2
cmp cx, word [0x140010048]
jb 0x140002dbd
lea rcx, [rsp + 0x50]
call fcn.1400038e0
movzx ecx, word [0x14009a5ac]
test cx, cx
je 0x140002e1c
cmp bx, cx
lea rdx, str...USBCPDFW.LOG
lea rcx, [rsp + 0x20]
jne 0x140002df0
lea r8, [0x14000daf8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
inc word [0x14009a5ac]
jmp 0x140002dfd
lea r8, [0x14000db10]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140002e1c
lea rdx, [rsp + 0x50]
call fcn.140009b30
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140002ebd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LOG:_StopDriver:Driver_Does_Not_Exist._RetCode:_0x_x..._n
lea rcx, [rsp + 0x50]
mov edi, eax
call fcn.140001960
mov ebx, 1
cmp bx, word [0x140010048]
jb 0x140002e5e
lea rcx, [rsp + 0x50]
call fcn.1400038e0
movzx eax, word [0x14009a5ac]
test ax, ax
je 0x140002ebd
lea rdx, str...USBCPDFW.LOG
lea rcx, [rsp + 0x20]
cmp bx, ax
jne 0x140002e91
lea r8, [0x14000daf8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
inc word [0x14009a5ac]
jmp 0x140002e9e
lea r8, [0x14000db10]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140002ebd
lea rdx, [rsp + 0x50]
call fcn.140009b30
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x170]
jmp 0x140002f6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.ERROR:_StopDriver:OpenSCManager_Failed:_0x_x____n
lea rcx, [rsp + 0x50]
mov edi, eax
call fcn.140001960
mov ecx, 2
cmp cx, word [0x140010048]
jb 0x140002f07
lea rcx, [rsp + 0x50]
call fcn.1400038e0
movzx eax, word [0x14009a5ac]
test ax, ax
je 0x140002f6b
mov ebx, 1
lea rdx, str...USBCPDFW.LOG
lea rcx, [rsp + 0x20]
cmp bx, ax
jne 0x140002f3f
lea r8, [0x14000daf8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
inc word [0x14009a5ac]
jmp 0x140002f4c
lea r8, [0x14000db10]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140002f6b
lea rdx, [rsp + 0x50]
call fcn.140009b30
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140009c20
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret