Function at 0x4557b0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ca40
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x32
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push str.SetServiceRunStatus___Trying_to_set_service_status
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004059b0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x45583c
push dword [ebp - 0x28]
call fcn.004ad196
add esp, 4
push 0xf003f
push 0
push 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4558cd
push 0x2c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push str.SetServiceRunStatus___Failed_getting_the_SCM
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.004059b0
mov dword [ebp - 4], 1
push 1
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x4558b4
push dword [ebp - 0x28]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
xor al, al
jmp 0x455a0f
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4558fd
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.SetServiceRunStatus___Failed_getting_the_service
lea ecx, [ebp - 0x28]
call fcn.00405090
mov dword [ebp - 4], 2
jmp 0x45588c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
setne bl
test bl, bl
jne 0x4559b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00425090
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
push str.SetServiceRunStatus___Failed_setting_the_status_with_error:
push eax
call fcn.00407110
add esp, 0x14
mov byte [ebp - 4], 4
push 1
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], 0x10
jb 0x455975
push dword [ebp - 0x28]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 0x10
jb 0x45599f
push dword [ebp - 0x40]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jmp 0x455a01
push str.SetServiceRunStatus___Change_success
lea ecx, [ebp - 0x28]
call fcn.00405090
mov dword [ebp - 4], 5
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x601abc
call fcn.0049e170
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x4559ef
push dword [ebp - 0x28]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret