Function at 0x1004db80
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102272b5
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xa4
mov eax, dword [0x102db080]
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 dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x48]
call fcn.1007e380
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x54]
call fcn.10083220
movzx eax, al
test eax, eax
je 0x1004dc0b
push str.service_name_is_empty
lea ecx, [ebp - 0x78]
call fcn.10085150
push 0x102ca5a8
lea ecx, [ebp - 0x78]
push ecx
call sub.VCRUNTIME140.dll__CxxThrowException
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x1004dc54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5c], eax
push str.OpenSCManager_failed.
call fcn.10081d80
push eax
mov edx, dword [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x8c]
call fcn.10081d90
push 0x102ca4a8
lea eax, [ebp - 0x8c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 2
mov ecx, dword [ebp - 0x54]
call fcn.1007dd30
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x1004dca6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], eax
push str.OpenService_failed.
call fcn.10081d80
push eax
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp - 0xa0]
call fcn.10081d90
push 0x102ca4a8
lea eax, [ebp - 0xa0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x30]
call fcn.1008a290
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x30]
call fcn.10080340
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x30]
call fcn.100764f0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x1004dd22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
push str.ChangeServiceConfig_failed.
call fcn.10081d80
push eax
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0xb4]
call fcn.10081d90
push 0x102ca4a8
lea ecx, [ebp - 0xb4]
push ecx
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 0x15], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.10089b10
jmp 0x1004dd50
mov dword [ebp - 4], 0
jmp 0x1004dd60
cmp dword [ebp - 0x4c], 0
je 0x1004dd70
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x50], 0
je 0x1004dd80
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x15]
push eax
mov ecx, dword [ebp + 8]
call fcn.1004ef70
mov ecx, dword [ebp - 0x58]
or ecx, 1
mov dword [ebp - 0x58], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100895a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100b9f43
mov esp, ebp
pop ebp
ret 8