Function at 0x4082f0
Capabilities:
Delete service
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x48a5b8
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x664], esi
mov dword [ebp - 0x660], esi
mov dword [ebp - 0x658], esi
mov dword [ebp - 0x65c], esi
xor ebx, ebx
mov dword [ebp - 0x654], esi
xor eax, eax
mov word [ebp - 0x650], ax
push 0x21a
push esi
lea ecx, [ebp - 0x64e]
push ecx
call fcn.004416b0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x430], dx
push 0x206
push edx
lea eax, [ebp - 0x42e]
push eax
call fcn.004416b0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x228], cx
push 0x206
push ecx
lea edx, [ebp - 0x226]
push edx
call fcn.004416b0
add esp, 0xc
mov dword [ebp - 0x670], 2
mov dword [ebp - 0x674], 1
mov dword [ebp - 0x668], 0x21c
mov dword [ebp - 0x66c], 0x208
mov dword [ebp - 4], ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x664], eax
test eax, eax
jne 0x4083fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_service_failed:__d
call fcn.00404c20
jmp 0x408581
push 0xf01ff
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x660], esi
test esi, esi
jne 0x408425
push edi
push str.Service__s_is_not_Exist
call fcn.00404c20
jmp 0x408581
lea eax, [ebp - 0x65c]
push eax
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x40845d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x408491
mov ebx, dword [ebp - 0x65c]
push ebx
call fcn.0043e793
add esp, 4
mov dword [ebp - 0x654], eax
lea ecx, [ebp - 0x65c]
push ecx
push ebx
mov edx, dword [ebp - 0x654]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x4084a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.QueryServiceConfig__ws_failed__d
call fcn.00404c20
add esp, 0xc
jmp 0x408584
call ebx
push eax
push edi
push str.QueryServiceConfig1__ws_failed__d
call fcn.00404c20
add esp, 0xc
jmp 0x408584
mov eax, dword [ebp - 0x654]
mov eax, dword [eax]
cmp eax, 1
je 0x40856c
cmp eax, 2
je 0x40856c
push edi
push str.SYSTEMCurrentControlSetServices
push 0x47903c
push 0x104
lea ecx, [ebp - 0x228]
push ecx
call fcn.0043ed50
add esp, 0x14
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0x650]
push eax
lea ecx, [ebp - 0x670]
push ecx
push str.ImagePath
lea edx, [ebp - 0x228]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
call ebx
test eax, eax
jne 0x40854a
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x430]
push ecx
lea edx, [ebp - 0x674]
push edx
push str.ObjectName
lea eax, [ebp - 0x228]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40854a
mov dword [ebp - 0x658], 1
jmp 0x408584
push edi
push str.Dont_get_ImagePath_or_ObjectName__ws_n
call fcn.00404c20
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
push str.DeleteService:_error:__d
call fcn.00404c20
jmp 0x408581
push edi
push str.DriverService__ws
call fcn.00404c20
mov dword [ebp - 0x658], 1
add esp, 8
mov dword [ebp - 4], 0xfffffffe
call fcn.004085b8
mov eax, dword [ebp - 0x658]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret