Function at 0x4b74b0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6328cd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
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], 0
xor bl, bl
call fcn.005b4610
or edi, 0xffffffff
cmp eax, 0x3ffffffa
jle 0x4b751f
mov esi, dword [0x6aefbc]
test esi, esi
je 0x4b7510
lock inc dword [esi]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
jmp 0x4b7565
xor esi, esi
xor eax, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], eax
jmp 0x4b7565
push 0
add eax, eax
lea ecx, [ebp - 0x30]
push eax
push str.RRSvcHlp
call fcn.005a5770
mov esi, dword [eax]
mov ecx, esi
mov dword [eax], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
test edx, edx
je 0x4b755b
mov eax, edi
lock xadd dword [edx], eax
dec eax
jne 0x4b755b
push ecx
mov ecx, edx
call fcn.005a47b0
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], ecx
push 0xf003f
push 0
push 0
mov byte [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x4b7684
cmp dword [ebp - 0x28], 0
push 0x10
je 0x4b75b1
lock inc dword [esi]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4b75b1
mov edx, dword [ecx + 0xc]
mov eax, edi
mov dword [ebp - 0x24], edx
lock xadd dword [ecx], eax
dec eax
jne 0x4b75b6
push ecx
call fcn.005a47b0
mov edx, dword [ebp - 0x24]
jmp 0x4b75b6
mov edx, 0x651f68
push edx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4b767b
push 0
lea edx, [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.005b43d0
add esp, 4
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4b75e9
lock inc dword [ecx]
mov ebx, ecx
jmp 0x4b75eb
xor ebx, ebx
test ecx, ecx
je 0x4b75fe
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x4b75fe
push ecx
call fcn.005a47b0
mov dword [ebp - 0x1c], 0x6627e8
test ebx, ebx
je 0x4b7628
lock inc dword [ebx]
mov ecx, dword [ebx + 0xc]
mov eax, edi
mov dword [ebp - 0x2c], ecx
lock xadd dword [ebx], eax
dec eax
jne 0x4b762d
push ecx
mov ecx, ebx
call fcn.005a47b0
mov ecx, dword [ebp - 0x2c]
jmp 0x4b762d
mov ecx, 0x651f68
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
push eax
push 2
push dword [ebp - 0x24]
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push dword [ebp - 0x24]
test eax, eax
setne byte [ebp - 0x1e]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov cl, byte [ebp - 0x1e]
mov byte [ebp - 0x1d], cl
test ebx, ebx
je 0x4b7678
mov eax, edi
lock xadd dword [ebx], eax
dec eax
mov byte [ebp - 0x1d], cl
jne 0x4b7678
push ecx
mov ecx, ebx
call fcn.005a47b0
mov bl, byte [ebp - 0x1e]
jmp 0x4b767b
mov bl, byte [ebp - 0x1d]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4b7699
mov eax, edi
lock xadd dword [esi], eax
dec eax
jne 0x4b7699
push ecx
mov ecx, esi
call fcn.005a47b0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4b76ad
lock xadd dword [ecx], edi
dec edi
jne 0x4b76ad
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