Function at 0x45351c
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45376e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x462080]
cmp dword [eax], 2
jne 0x4536e6
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45359c
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x34]
call fcn.0040ea48
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea eax, [ebp - 0x30]
push eax
push 0
mov ecx, 0x453784
mov dl, 1
mov eax, dword [0x409d2c]
call fcn.0040f29c
call fcn.0040426c
xor edx, edx
push ebp
push 0x4536df
push dword fs:[edx]
mov dword fs:[edx], esp
test bl, bl
je 0x4535b5
mov eax, 0x10
jmp 0x4535ba
mov eax, 0x20
push eax
push 0x4537bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x453605
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x38]
call fcn.0040ea48
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea eax, [ebp - 0x30]
push eax
push 0
mov ecx, 0x4537d0
mov dl, 1
mov eax, dword [0x409d2c]
call fcn.0040f29c
call fcn.0040426c
xor eax, eax
push ebp
push 0x4536c1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
test bl, bl
je 0x453664
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_StartServiceA
test eax, eax
jne 0x4536aa
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x3c]
call fcn.0040ea48
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea eax, [ebp - 0x30]
push eax
push 0
mov ecx, 0x453800
mov dl, 1
mov eax, dword [0x409d2c]
call fcn.0040f29c
call fcn.0040426c
jmp 0x4536aa
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
jne 0x4536aa
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x40]
call fcn.0040ea48
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea eax, [ebp - 0x30]
push eax
push 0
mov ecx, 0x453830
mov dl, 1
mov eax, dword [0x409d2c]
call fcn.0040f29c
call fcn.0040426c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4536c8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
test bl, bl
je 0x453730
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x58]
xor eax, eax
call fcn.00403260
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
mov eax, 0x453860
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea edx, [ebp - 0x54]
mov ecx, 1
mov eax, 0x453870
call fcn.0040c3d0
mov eax, dword [ebp - 0x44]
or ecx, 0xffffffff
or edx, 0xffffffff
call fcn.00451280
jmp 0x45374b
push 0
push 0
push 2
push 0x45387c
push 0x4537bc
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453775
lea eax, [ebp - 0x58]
call fcn.004048b8
lea eax, [ebp - 0x44]
mov edx, 5
call fcn.004048dc
ret