Function at 0x44b180
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
push ecx
lea edi, [ebp - 0x44]
mov ecx, 0xe
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4f3280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
call fcn.00418110
mov dword [ebp - 4], 0
mov esi, esp
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x44b230
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
jmp 0x44b356
mov esi, esp
lea edx, [ebp - 0x38]
push edx
push 0
push 0
push 2
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x44b28c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x7a
je 0x44b28c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x20], 2
jmp 0x44b356
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x44], ecx
mov esi, esp
mov edx, dword [ebp - 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x1c], eax
mov esi, esp
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 2
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44b2da
cmp dword [ebp - 0x1c], 0
jne 0x44b2f5
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
jmp 0x44b356
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0044b420
mov esi, esp
mov eax, dword [ebp - 0x1c]
push eax
push 2
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x44b34e
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 4
jmp 0x44b356
xor edx, edx
jne 0x44b1ed
cmp dword [ebp - 0x1c], 0
je 0x44b376
mov esi, esp
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x18], 0
je 0x44b396
mov esi, esp
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00418010
push edx
mov ecx, ebp
push eax
lea edx, [0x44b3d4]
call fcn.004c3b59
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x44
cmp ebp, esp
call fcn.004c3b36
mov esp, ebp
pop ebp
ret 0x10