Function at 0x42bc40
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae744
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x4e23d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x65], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
mov dword [ebp - 0x78], ecx
test ecx, ecx
jne 0x42bd68
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42c0da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x69
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_update_assistant_srcutilsutils.cc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040daa0
push 3
push 0x4b5b84
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0040daa0
mov byte [ebp - 4], 2
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x114]
push 0xf0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405060
mov esi, eax
push str.OpenSCManager_fail__errno_
push esi
mov byte [ebp - 4], 3
call fcn.00406390
add esp, 8
mov ecx, esi
push dword [ebp - 0x6c]
call fcn.00411e30
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x114]
call fcn.00406570
lea ecx, [ebp - 0x40]
call fcn.00405b30
lea ecx, [ebp - 0x28]
call fcn.00405b30
jmp 0x42c0da
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0xf01ff
cmovae eax, dword [ebp + 8]
xorps xmm0, xmm0
push eax
push ecx
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x54], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ecx, eax
mov dword [ebp - 0x7c], ecx
test ecx, ecx
jne 0x42be73
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42c0c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x69
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_update_assistant_srcutilsutils.cc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040daa0
push 3
push 0x4b5b84
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0040daa0
mov byte [ebp - 4], 5
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x114]
push 0xf7
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405060
mov esi, eax
push str.OpenService_fail__errno_
push esi
mov byte [ebp - 4], 6
call fcn.00406390
add esp, 8
mov ecx, esi
push dword [ebp - 0x6c]
call fcn.00411e30
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x114]
call fcn.00406570
lea ecx, [ebp - 0x40]
call fcn.00405b30
lea ecx, [ebp - 0x28]
call fcn.00405b30
jmp 0x42c0c5
cmp byte [ebp + 0x20], 0
je 0x42bfea
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42c0c1
push 0x69
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_update_assistant_srcutilsutils.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.0040daa0
push 3
push 0x4b5b84
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040daa0
mov byte [ebp - 4], 8
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x114]
push 0xfe
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00405060
mov esi, eax
push str.StartService_start_res:
push esi
mov byte [ebp - 4], 9
call fcn.00406390
add esp, 8
mov ecx, esi
push dword [ebp - 0x70]
call fcn.004061e0
push str.__lasterror:
push esi
call fcn.00406390
add esp, 8
push dword [ebp - 0x74]
mov ecx, esi
call fcn.00411e30
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x114]
call fcn.00406570
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x42bfa1
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42bf97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c12e
push edx
push ecx
call fcn.0045bfb6
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x42c0c1
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42c0b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c133
jmp 0x42c0b7
lea eax, [ebp - 0x64]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42c0c1
push 0x69
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_update_assistant_srcutilsutils.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.0040daa0
push 3
push 0x4b5b84
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040daa0
mov byte [ebp - 4], 0xb
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x114]
push 0x104
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00405060
mov esi, eax
push str.ControlService_set_res:
push esi
mov byte [ebp - 4], 0xc
call fcn.00406390
add esp, 8
mov ecx, esi
push dword [ebp - 0x74]
call fcn.004061e0
push str.__lasterror:
push esi
call fcn.00406390
add esp, 8
push dword [ebp - 0x70]
jmp 0x42bf53
push edx
push ecx
call fcn.0045bfb6
add esp, 8
mov byte [ebp - 0x65], 1
push dword [ebp - 0x78]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x42c0da
push eax
call esi
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x42c110
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42c106
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c12e
push edx
push ecx
call fcn.0045bfb6
add esp, 8
mov al, byte [ebp - 0x65]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045c263
mov esp, ebp
pop ebp
ret
call fcn.004844a9
call fcn.004844a9
int3