Function at 0x4090a7
Capabilities:
Create service
Modify service

Disassembly:
jmp 0x4d6f20
push 0xffffffffffffffff
push 0x786acc
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x856918]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x856918]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
push 0xf003f
xor ebp, ebp
push ebp
push ebp
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4d6f9c
push 1
lea eax, [edi + 0x30]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x4d6f91
push eax
mov ebp, 1
call ebx
push esi
call ebx
test ebp, ebp
jne 0x4d717c
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x4d7007
push 0x1d
push str.Couldnt_open_service_manager
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebp
mov byte [esp + 0x24], 0
call fcn.00405920
push 1
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x868edc
mov dword [esp + 0x2c0], ebp
call fcn.0054c860
cmp dword [esp + 0x30], 0x10
jb 0x4d7000
mov edx, dword [esp + 0x1c]
push edx
call fcn.00564155
add esp, 4
xor eax, eax
jmp 0x4d7181
push 0x104
lea eax, [esp + 0xa8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp byte [esp + 0x2c0], 0
mov eax, 3
je 0x4d702f
mov eax, 2
push 0
push 0
push 0x7b9248
push 0
push 0
lea ecx, [esp + 0xb8]
push ecx
push 1
push eax
push 0x10
push 0xf01ff
push 0x7b9218
lea ebp, [edi + 0x30]
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x4d7118
push esi
call ebx
push ebp
lea ecx, [esp + 0x70]
call fcn.00403706
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x2c0], 1
call fcn.00407662
push eax
lea ecx, [esp + 0x5c]
push str.Couldnt_create_service:
push ecx
mov byte [esp + 0x2cc], 2
call fcn.00404cfa
add esp, 0x14
push 1
push eax
mov ecx, 0x868edc
mov byte [esp + 0x2c0], 3
call fcn.0054c860
mov esi, 0x10
cmp dword [esp + 0x68], esi
jb 0x4d70d7
mov edx, dword [esp + 0x54]
push edx
call fcn.00564155
add esp, 4
xor edi, edi
mov ebx, 0xf
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], edi
mov byte [esp + 0x54], 0
cmp dword [esp + 0x4c], esi
jb 0x4d70fe
mov eax, dword [esp + 0x38]
push eax
call fcn.00564155
add esp, 4
lea ecx, [esp + 0x6c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edi
mov byte [esp + 0x38], 0
call fcn.00403a26
xor eax, eax
jmp 0x4d7181
push str.KeepMyFamilySecure_proxy_service
lea ecx, [esp + 0x8c]
call fcn.004062df
mov ebp, 0x10
cmp dword [esp + 0xa0], ebp
jb 0x4d7144
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x14], ecx
jmp 0x4d714f
lea edx, [esp + 0x8c]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x14]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push edi
call ebx
push esi
call ebx
cmp dword [esp + 0xa0], ebp
jb 0x4d717c
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.00564155
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.00564b24
add esp, 0x2a8
ret 4