Function at 0x4190f0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430838
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x43dfc0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 1
lea ecx, [ebp - 0x1d4]
call fcn.00406150
mov dword [eax + 0x60], 0x64
add eax, 0x10
push str.ReconfigureService__
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00404170
push eax
call fcn.00405590
sub esp, 0xfffffff4
lea ecx, [ebp - 0x16c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2b0
lea eax, [ebp - 0x16c]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041aa80
add esp, 4
push 0xf003f
push ebx
push ebx
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x10c], eax
cmp eax, ebx
mov byte [ebp - 4], 2
jne 0x4191c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager
lea ecx, [ebp - 0x44]
call fcn.00407c70
push 0x4397cc
lea ecx, [ebp - 0x44]
push ecx
call fcn.0041b780
push 0xf003f
sub esi, 0xffffffc0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x120], edi
cmp edi, ebx
mov byte [ebp - 4], 3
jne 0x419204
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService
lea ecx, [ebp - 0x74]
call fcn.00407c70
push 0x4397cc
lea edx, [ebp - 0x74]
push edx
call fcn.0041b780
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push edi
mov byte [ebp - 4], 4
mov dword [ebp - 0x108], ebx
call esi
or eax, eax
jne 0x419269
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x419269
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceConfig_1st
lea ecx, [ebp - 0x104]
call fcn.00407c70
push 0x4397cc
lea ecx, [ebp - 0x104]
push ecx
call fcn.0041b780
lea ecx, [ebp - 0x11c]
mov edx, dword [ebp - 0x108]
push edx
call fcn.00417df0
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x108]
push eax
push ecx
push edx
push edi
call esi
or eax, eax
jne 0x4192bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceConfig_2nd
lea ecx, [ebp - 0xd4]
call fcn.00407c70
push 0x4397cc
lea eax, [ebp - 0xd4]
push eax
call fcn.0041b780
lea ecx, [ebp - 0x1d4]
push 1
call fcn.00406150
mov dword [eax + 0x60], 0x64
sub eax, 0xfffffff0
push str.Current_startup_type
push eax
mov byte [ebp - 4], 5
call fcn.00404170
mov esi, dword [ebp - 0x11c]
add esp, 8
mov ecx, dword [esi + 4]
push ecx
mov ecx, eax
call fcn.004049b0
push eax
call fcn.00405590
add esp, 4
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 4
call fcn.0040c2b0
lea edx, [ebp - 0x16c]
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041aa80
sub esp, 0xfffffffc
mov eax, dword [esi + 4]
cmp eax, 3
je 0x4193c4
cmp eax, 4
je 0x4193c4
lea ecx, [ebp - 0x1d4]
push 1
call fcn.00406150
mov dword [eax + 0x60], 0xa
sub eax, 0xfffffff0
push str.Changing_startup_type_to_SERVICE_DEMAND_START
push eax
mov byte [ebp - 4], 6
call fcn.00404170
sub esp, 0xfffffff8
push eax
call fcn.00405590
sub esp, 0xfffffffc
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 4
call fcn.00401a20
push ebx
push ebx
push ebx
push str.RPCSS
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
or eax, eax
jne 0x4193c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeServiceConfig
lea ecx, [ebp - 0xa4]
call fcn.00407c70
push 0x4397cc
lea eax, [ebp - 0xa4]
push eax
call fcn.0041b780
push 1
lea ecx, [ebp - 0x1d4]
call fcn.00406150
mov dword [eax + 0x60], 0x64
sub eax, 0xfffffff0
push str.ReconfigureStartup___done
push eax
mov byte [ebp - 4], 7
call fcn.00404170
sub esp, 0xfffffff8
push eax
call fcn.00405590
add esp, 4
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 4
call fcn.0040c2b0
lea ecx, [ebp - 0x16c]
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041aa80
sub esp, 0xfffffffc
push esi
call fcn.0041b401
sub esp, 0xfffffffc
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [ebp - 0x10c]
push edx
call esi
xor eax, eax
jmp 0x4194b2
mov edi, dword [ebp - 0xc]
mov dword fs:[0], edi
pop ebx
mov ecx, dword [ebp - 0x14]
pop edi
xor ecx, ebp
pop esi
pop ebx
call fcn.0041b771
mov esp, ebp
pop ebp
ret