Function at 0x4020d0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x40215b
push eax
call fcn.00404943
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], edx
call fcn.004045c1
push eax
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004045a4
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push eax
push str.__s_ERROR:_StopACService:_OpenSCManager_failed___d_n
push dword [0x421558]
call fcn.004042e7
push dword [0x421558]
call fcn.004040a1
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403f5b
mov esp, ebp
pop ebp
ret
push 0xf01ff
push str.SNLSPGuard
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x4021fc
lea eax, [ebp - 0x34]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4021f7
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00402060
add esp, 4
test eax, eax
jne 0x4021f7
cmp dword [ebp - 0x30], 1
je 0x4021f7
push eax
call fcn.00404943
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], edx
call fcn.004045c1
push eax
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004045a4
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push eax
push str.__s_ERROR:_StopACService:_Stop_SNLSPGuard_service_failed___d_n
push dword [0x421558]
call fcn.004042e7
push dword [0x421558]
call fcn.004040a1
add esp, 0x14
push edi
call ebx
jmp 0x40224f
push 0
call fcn.00404943
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], edx
call fcn.004045c1
push eax
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004045a4
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push eax
push str.__s_ERROR:_StopACService:_Open_SNLSPGuard_service_failed___d_n
push dword [0x421558]
call fcn.004042e7
push dword [0x421558]
call fcn.004040a1
add esp, 0x14
push 0xf01ff
push str.SNLSPService
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4022ea
lea eax, [ebp - 0x34]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4022e5
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00402060
add esp, 4
test eax, eax
jne 0x4022e5
cmp dword [ebp - 0x30], 1
je 0x4022e5
push eax
call fcn.00404943
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], edx
call fcn.004045c1
push eax
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004045a4
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push eax
push str.__s_ERROR:_StopACService:_Stop_SNLSPService_service_failed___d_n
push dword [0x421558]
call fcn.004042e7
push dword [0x421558]
call fcn.004040a1
add esp, 0x14
push edi
call ebx
jmp 0x40233d
push 0
call fcn.00404943
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], edx
call fcn.004045c1
push eax
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004045a4
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push eax
push str.__s_ERROR:_StopACService:_Open_SNLSPService_service_failed___d_n
push dword [0x421558]
call fcn.004042e7
push dword [0x421558]
call fcn.004040a1
add esp, 0x14
push 0xf01ff
push str.IsVS
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4023d8
lea eax, [ebp - 0x34]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4023d3
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00402060
add esp, 4
test eax, eax
jne 0x4023d3
cmp dword [ebp - 0x30], 1
je 0x4023d3
push eax
call fcn.00404943
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], edx
call fcn.004045c1
push eax
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004045a4
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push eax
push str.__s_ERROR:_StopACService:_Stop_IsVS_service_failed___d_n
push dword [0x421558]
call fcn.004042e7
push dword [0x421558]
call fcn.004040a1
add esp, 0x14
push edi
call ebx
jmp 0x40242b
push 0
call fcn.00404943
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], edx
call fcn.004045c1
push eax
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004045a4
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push eax
push str.__s_ERROR:_StopACService:_Open_IsVS_service_failed___d_n
push dword [0x421558]
call fcn.004042e7
push dword [0x421558]
call fcn.004040a1
add esp, 0x14
push 0xf01ff
push str.IsVNCServer
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4024d8
lea eax, [ebp - 0x34]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4024c1
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00402060
add esp, 4
test eax, eax
jne 0x4024c1
cmp dword [ebp - 0x30], 1
je 0x4024c1
push eax
call fcn.00404943
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], edx
call fcn.004045c1
push eax
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004045a4
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push eax
push str.__s_ERROR:_StopACService:_Stop_IsVNCServer_service_failed___d_n
push dword [0x421558]
call fcn.004042e7
push dword [0x421558]
call fcn.004040a1
add esp, 0x14
push edi
call ebx
push esi
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403f5b
mov esp, ebp
pop ebp
ret
push 0
call fcn.00404943
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], edx
call fcn.004045c1
push eax
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004045a4
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push eax
push str.__s_ERROR:_StopACService:_Open_IsVNCServer_service_failed___d_n
push dword [0x421558]
call fcn.004042e7
push dword [0x421558]
call fcn.004040a1
add esp, 0x14
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f5b
mov esp, ebp
pop ebp
ret