Function at 0x4949c0
Capabilities:
Create service
Modify service
Start service
Stop service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbc48
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x38
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], ecx
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x494a1a
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
push 0xf003f
push 0
mov dword [ebp - 4], 0
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x494b87
mov eax, dword [ebx + 8]
mov esi, dword [eax]
mov esi, dword [esi]
cmp esi, dword [eax]
je 0x494b7c
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x10]
push eax
push dword [esi + 0xc]
call fcn.004946b0
test eax, eax
je 0x494b53
push dword [esi + 0x24]
push dword [esi + 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x494ae0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
xorps xmm0, xmm0
push 1
push edi
movups xmmword [ebp - 0x34], xmm0
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, dword [esi + 0x20]
xor eax, eax
cmp dword [ecx - 0xc], eax
cmove ecx, eax
mov eax, dword [esi + 0x1c]
xor edx, edx
push edx
push edx
cmp dword [eax - 0xc], edx
push edx
push ecx
push edx
cmove eax, edx
push eax
push dword [ebp - 0x40]
push dword [esi + 0x30]
push dword [esi + 0x2c]
push dword [esi + 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x494b1b
mov ecx, dword [esi + 0x20]
xor eax, eax
cmp dword [ecx - 0xc], eax
cmove ecx, eax
mov eax, dword [esi + 0x1c]
xor edx, edx
push edx
push edx
cmp dword [eax - 0xc], edx
push ecx
push edx
cmove eax, edx
push eax
push dword [ebp - 0x40]
push dword [esi + 0x30]
push dword [esi + 0x2c]
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x18]
push dword [esi + 0x14]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x494b3b
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esi + 0x14]
push str.InstallDriver_suc_name_s.
jmp 0x494b43
push dword [esi + 0x14]
push str.InstallDriver_error_s.
push 0x515488
call fcn.0048d710
mov edi, dword [ebp - 0x3c]
add esp, 0xc
mov eax, dword [ebx + 8]
jmp 0x494a53
test edi, edi
je 0x494b87
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x494ba9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4