Function at 0x4b76d0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x632935
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x6a6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, str.RRSvcHlp
mov dword [ebp - 4], 1
xor bl, bl
call fcn.005b4610
or edi, 0xffffffff
cmp eax, 0x3ffffffa
jle 0x4b773f
mov esi, dword [0x6aefbc]
test esi, esi
je 0x4b7730
lock inc dword [esi]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], esi
jmp 0x4b7785
xor esi, esi
xor eax, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], eax
jmp 0x4b7785
push 0
add eax, eax
lea ecx, [ebp - 0x38]
push eax
push str.RRSvcHlp
call fcn.005a5770
mov esi, dword [eax]
mov ecx, esi
mov dword [eax], 0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
test edx, edx
je 0x4b777b
mov eax, edi
lock xadd dword [edx], eax
dec eax
jne 0x4b777b
push ecx
mov ecx, edx
call fcn.005a47b0
mov ecx, esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], ecx
push 0xf003f
push 0
push 0
mov byte [ebp - 4], 5
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x4b791f
cmp dword [ebp - 0x30], 0
push 0x10
je 0x4b77d1
lock inc dword [esi]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4b77d1
mov edx, dword [ecx + 0xc]
mov eax, edi
mov dword [ebp - 0x24], edx
lock xadd dword [ecx], eax
dec eax
jne 0x4b77d6
push ecx
call fcn.005a47b0
mov edx, dword [ebp - 0x24]
jmp 0x4b77d6
mov edx, 0x651f68
push edx
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4b7916
push 0
lea edx, [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.005b43d0
add esp, 4
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4b7809
lock inc dword [ecx]
mov ebx, ecx
jmp 0x4b780b
xor ebx, ebx
test ecx, ecx
je 0x4b781e
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x4b781e
push ecx
call fcn.005a47b0
mov dword [ebp - 0x2c], ebx
push 0
lea edx, [ebp + 0xc]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x24]
call fcn.005b43d0
add esp, 4
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4b7844
lock inc dword [ecx]
mov dword [ebp - 0x24], ecx
jmp 0x4b7849
xor edx, edx
mov dword [ebp - 0x24], edx
test ecx, ecx
je 0x4b785c
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x4b785c
push ecx
call fcn.005a47b0
test ebx, ebx
je 0x4b787f
lock inc dword [ebx]
mov ecx, dword [ebx + 0xc]
mov eax, edi
mov dword [ebp - 0x34], ecx
lock xadd dword [ebx], eax
dec eax
jne 0x4b7884
push ecx
mov ecx, ebx
call fcn.005a47b0
mov ecx, dword [ebp - 0x34]
jmp 0x4b7884
mov ecx, 0x651f68
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4b78ab
lock inc dword [ecx]
mov edx, dword [ecx + 0xc]
mov eax, edi
mov dword [ebp - 0x34], edx
lock xadd dword [ecx], eax
dec eax
jne 0x4b78b0
push ecx
call fcn.005a47b0
mov edx, dword [ebp - 0x34]
jmp 0x4b78b0
mov edx, 0x651f68
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], edx
push eax
push 2
push dword [ebp - 0x30]
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push dword [ebp - 0x30]
test eax, eax
setne byte [ebp - 0x25]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x4b78f0
mov eax, edi
lock xadd dword [edx], eax
dec eax
jne 0x4b78f0
push ecx
mov ecx, edx
call fcn.005a47b0
mov cl, byte [ebp - 0x25]
mov byte [ebp - 0x1d], cl
test ebx, ebx
je 0x4b7913
mov eax, edi
lock xadd dword [ebx], eax
dec eax
mov byte [ebp - 0x1d], cl
jne 0x4b7913
push ecx
mov ecx, ebx
call fcn.005a47b0
mov bl, byte [ebp - 0x25]
jmp 0x4b7916
mov bl, byte [ebp - 0x1d]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4b7934
mov eax, edi
lock xadd dword [esi], eax
dec eax
jne 0x4b7934
push ecx
mov ecx, esi
call fcn.005a47b0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4b794a
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x4b794a
push ecx
call fcn.005a47b0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4b795e
lock xadd dword [ecx], edi
dec edi
jne 0x4b795e
push ecx
call fcn.005a47b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00606a47
mov esp, ebp
pop ebp
ret