Function at 0x4309c0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
or edi, 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
test esi, esi
je 0x4309ee
mov dword [esi], 0
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0043ce10
mov eax, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x430a11
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043d250
add esp, 8
cmp dword [0x5fdc84], 0
mov ebx, dword [ebp + 8]
je 0x430bd9
lea eax, [ebp + 4]
sub eax, 4
push ebx
push eax
call fcn.00420e40
add esp, 8
push 0xf01ff
push dword [eax]
push dword [0x5fdc84]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
call fcn.0053b3a0
add esp, 4
mov dword [ebp + 0x10], eax
test eax, eax
je 0x430bd9
mov ecx, dword [ebp - 0xc]
push ecx
push ecx
call fcn.0043d1f0
add esp, 4
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x430b05
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx + 0x28f0]
test eax, eax
jne 0x430a9d
call fcn.005414b2
mov ecx, dword [ebp - 0x10]
cmp dword [eax], 0x420
jne 0x430ac8
cmp dword [0x601c94], 6
jl 0x430ac1
push ebx
push str.service__s_already_running
push 0x550006
call fcn.004241a0
add esp, 0xc
xor edi, edi
jmp 0x430baf
test esi, esi
je 0x430adf
mov eax, dword [ecx + 0x28f0]
test eax, eax
jne 0x430adb
call fcn.005414b2
mov eax, dword [eax]
mov dword [esi], eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.0043d1d0
push dword [eax]
push ebx
push str.failed_start_service__s__s:__m
push 0x550003
call fcn.004241a0
add esp, 0x18
jmp 0x430baf
lea eax, [ebp - 0x10]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x430b3e
push ebx
push str.failed_query_service_status__s:__m
push 0x550003
call fcn.004241a0
add esp, 0xc
test eax, eax
jne 0x430baf
mov eax, dword [ebp - 0x20]
xor esi, esi
mov dword [ebp - 0x10], eax
xor edi, edi
mov eax, dword [ebp - 0x30]
cmp eax, 4
je 0x430ac1
cmp esi, 0xea60
jge 0x430ba3
cmp edi, 0x1d4c0
jge 0x430ba3
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
call fcn.004314d0
add esp, 0xc
test eax, eax
jne 0x430bac
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jbe 0x430b85
xor esi, esi
mov dword [ebp - 0x10], eax
push 0
push 0x64
call fcn.00425c60
mov eax, dword [ebp - 0x30]
add esp, 8
add esi, 0x64
add edi, 0x64
cmp eax, 4
jne 0x430b54
xor edi, edi
jmp 0x430baf
cmp eax, 4
jne 0x430bac
xor edi, edi
jmp 0x430baf
or edi, 0xffffffff
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x430bec
push str.Failed_close_service_handle:__m
push 0x550003
call fcn.004241a0
add esp, 8
jmp 0x430bec
push ebx
push str.service__s_doesnt_exist
push 0x550005
call fcn.004241a0
add esp, 0xc
lea eax, [ebp - 4]
push eax
call fcn.0043cf60
mov eax, dword [ebp - 8]
add esp, 4
test eax, eax
je 0x430c0f
push eax
call fcn.005414d0
add esp, 4
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
call fcn.0043d210
add esp, 4
test edi, edi
je 0x430c32
push ebx
push str.error_starting_service__s
push 0x550003
call fcn.004241a0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret