Function at 0x41f2e0
Capabilities:
Delete service
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x4852d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov esi, ecx
call fcn.004440b8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41f327
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x54], 0
call fcn.004440b8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41f359
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push 1
lea ecx, [esp + 0x1c]
push ecx
push ecx
mov byte [esp + 0x60], 1
mov ecx, esp
mov dword [esp + 0x30], esp
push str.strServiceName
call fcn.00401ed0
mov edx, dword [esp + 0x68]
push edx
mov edi, ebp
mov ebx, esi
call fcn.0042e350
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x41f3eb
mov edi, 0xa0000001
lea esi, [esp + 0x24]
call fcn.00414000
mov byte [esp + 0x54], 2
push eax
mov ecx, ebp
call fcn.00407570
mov byte [esp + 0x54], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f3dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
mov dword [ecx], 0
jmp 0x41f5d9
push 1
lea ecx, [esp + 0x24]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.iSystemBits
call fcn.00401ed0
mov edx, dword [esp + 0x68]
push edx
mov edi, ebp
mov ebx, esi
call fcn.0042e350
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x41f42e
mov edi, 0xa0000001
lea esi, [esp + 0x24]
call fcn.00414000
mov byte [esp + 0x54], 3
jmp 0x41f3af
mov edi, dword [esp + 0x20]
push edi
call fcn.00461856
add esp, 4
cmp dword [0x4a657c], 0
mov esi, eax
je 0x41f48d
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f483
lea ecx, [esp + 0x28]
push ecx
call eax
mov ax, word [esp + 0x28]
cmp ax, 9
je 0x41f479
cmp ax, 6
jne 0x41f483
mov dword [0x4a99d4], 1
mov dword [0x4a657c], 0
test esi, esi
je 0x41f49f
cmp esi, 1
jne 0x41f4f9
cmp dword [0x4a99d4], 0
jne 0x41f507
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x41f54e
mov ecx, dword [esp + 0x18]
push 0x10020
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x41f51c
lea edx, [esp + 0x28]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41f52c
cmp esi, 2
jne 0x41f507
cmp dword [0x4a99d4], 0
jne 0x41f49f
mov dword [esp + 0x1c], 1
mov byte [esp + 0x54], 0
lea eax, [edi - 0x10]
jmp 0x41f5e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 0x1c], 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0x1c], 0
jne 0x41f5b9
mov eax, dword [esp + 0x60]
cmp edi, 0x4db
jne 0x41f560
mov dword [eax], 1
jmp 0x41f569
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 0x1c], 0
jmp 0x41f53a
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 0x10]
mov dword [eax], edx
lea esi, [esp + 0x24]
call fcn.00414000
mov ecx, dword [esp + 0x5c]
mov byte [esp + 0x54], 4
mov eax, dword [ecx + 0x2c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push edx
push ecx
push eax
push ebp
call fcn.00403800
mov byte [esp + 0x64], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f5d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41f5d9
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov dword [ecx], 2
mov ecx, dword [esp + 0x18]
mov eax, dword [edx + 0x30]
push ecx
push eax
push ebp
call fcn.00403800
add esp, 0xc
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f5fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f626
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret