Function at 0x45d5e0
Capabilities:
Continue service
Enumerate processes
Modify service
Query service status
Start service
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x4fe0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x274], 0
test ebx, ebx
jne 0x45d618
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d3dd
mov esp, ebp
pop ebp
ret 4
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x45d6d9
push 0x228
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.0049edc0
add esp, 0xc
mov dword [ebp - 0x26c], 0x22c
lea eax, [ebp - 0x26c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x45d6d2
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop word [eax + eax]
lea eax, [ebp - 0x248]
push str.WerFault.exe
push eax
call fcn.004b0407
add esp, 8
test eax, eax
je 0x45d6b0
lea eax, [ebp - 0x248]
push str.WerFault
push eax
call fcn.004b0407
add esp, 8
test eax, eax
je 0x45d6b0
lea eax, [ebp - 0x26c]
push eax
push edi
call esi
test eax, eax
jne 0x45d670
jmp 0x45d6d2
push dword [ebp - 0x264]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0xc], 0
push 0x10000000
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
push esi
push esi
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 8], esi
movq qword [ebp - 0x14], xmm0
movups xmmword [ebp - 0x40], xmm0
movq qword [ebp - 0x30], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x270], edi
test edi, edi
je 0x45d85a
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x45d848
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x45d841
cmp dword [ebp - 0x20], 4
jne 0x45d75d
mov dword [ebp - 0x274], 1
jmp 0x45d841
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea eax, [ebp - 8]
push eax
push 0
push 0
push ebx
call edi
mov esi, dword [ebp - 8]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x278], eax
lea eax, [ebp - 8]
push eax
push esi
mov esi, dword [ebp - 0x278]
push esi
push ebx
call edi
test eax, eax
je case.default.0x45d7c5
cmp dword [esi + 4], 2
je 0x45d7bc
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je case.default.0x45d7c5
mov eax, dword [ebp - 0x20]
dec eax
cmp eax, 6
ja case.default.0x45d7c5
jmp dword [eax*4 + 0x45d874]
push ecx
push 2
push 4
push ebx
call fcn.0045d890
test eax, eax
jne case.0x45d7c5.4
jmp case.default.0x45d7c5
push ecx
push 3
push 1
push ebx
call fcn.0045d890
test eax, eax
je case.default.0x45d7c5
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je case.default.0x45d7c5
jmp case.0x45d7c5.2
push ecx
push 6
push 7
push ebx
call fcn.0045d890
test eax, eax
je case.default.0x45d7c5
lea eax, [ebp - 0x40]
push eax
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je case.default.0x45d7c5
push ecx
push 5
jmp 0x45d7cf
push ecx
push 5
push 4
push ebx
call fcn.0045d890
test eax, eax
je case.default.0x45d7c5
mov dword [ebp - 0x274], 1
mov edi, dword [ebp - 0x270]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x45d85a
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x274]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0049d3dd
mov esp, ebp
pop ebp
ret 4