Function at 0x44c3f0
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x15
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x44c425
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
push edi
push 4
push str.TapiSrv
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x44c454
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [edi - 2]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edi
test eax, eax
jne 0x44c486
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 0xfffffffd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 4
je 0x44c4d0
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x10
push str.TapiSrv
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x44c4c0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [edi - 4]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x44c4ef
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
cmp eax, 0x422
je 0x44c51f
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 0xfffffffb
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 2
push str.TapiSrv
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x44c553
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [edi - 6]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push edi
test eax, eax
jne 0x44c595
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 0xfffffff9
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x10
push str.TapiSrv
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x44c5c9
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [edi - 8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
test eax, eax
jne 0x44c4d0
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, 0xfffffff7
pop edi
xor ecx, ebp
pop esi
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret