Function at 0x42b840
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x42b88e
cmp dword [0x6d138c], 1
jl 0x42b884
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_OpenSCManager__i
push str.Helper::ToolsStartService
push 1
call fcn.00552bc2
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
push 0x14
push str.TrustedInstaller
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x42b8db
cmp dword [0x6d138c], 1
jl 0x42b8ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_OpenService__i
push str.Helper::ToolsStartService
push 1
call fcn.00552bc2
add esp, 0x10
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x42b924
cmp dword [0x6d138c], 1
jl 0x42b90e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_StartService__i
push str.Helper::ToolsStartService
push 1
call fcn.00552bc2
add esp, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push ebp
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
lea eax, [esp + 0x20]
push eax
push 0x24
lea ecx, [esp + 0x5c]
push ecx
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x42b95b
cmp dword [0x6d138c], 1
jl 0x42b884
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_QueryServiceStatusEx__i
jmp 0x42b875
call fcn.0042baa0
cmp dword [esp + 0x58], 2
mov edx, dword [esp + 0x68]
mov edi, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], 0
jne 0x42ba57
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ebp, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea esp, [esp]
mov eax, 0xcccccccd
mul dword [esp + 0x6c]
mov esi, edx
shr esi, 3
cmp esi, 0x3e8
jae 0x42b9ad
mov esi, 0x3e8
jmp 0x42b9ba
cmp esi, 0x2710
jbe 0x42b9ba
mov esi, 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x14]
add dword [esp + 0x10], esi
lea eax, [esp + 0x20]
push eax
push 0x24
lea ecx, [esp + 0x5c]
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x42ba4f
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x68], eax
jbe 0x42ba0d
lea ecx, [esp + 0x34]
push ecx
call ebx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
call ebp
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
jmp 0x42ba3a
lea edx, [esp + 0x44]
push edx
call ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
push ecx
call ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
xor edx, edx
sub eax, edi
sbb ecx, edx
cmp ecx, edx
ja 0x42ba4f
jb 0x42ba3a
cmp eax, dword [esp + 0x6c]
ja 0x42ba4f
cmp dword [esp + 0x10], 0xea60
ja 0x42ba4f
cmp dword [esp + 0x58], 2
je 0x42b990
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
xor eax, eax
cmp dword [esp + 0x58], 4
sete al
cmp dword [0x6d138c], 1
mov esi, eax
jl 0x42ba88
xor ecx, ecx
test esi, esi
setne cl
push ecx
push str.WD_start_res__i
push str.Helper::ToolsStartService
push 1
call fcn.00552bc2
add esp, 0x10
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
push ebp
call edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret