Function at 0x4702a0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov dword [ebp - 0x82c], eax
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x828], eax
xor eax, eax
push 0xf003f
push eax
push eax
mov dword [ebp - 0x838], eax
mov dword [ebp - 0x830], 1
movups xmmword [ebp - 0x824], xmm0
mov dword [ebp - 0x80c], eax
movq qword [ebp - 0x814], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
mov esi, eax
mov dword [ebp - 0x834], esi
test esi, esi
je 0x470520
nop word [eax + eax]
push 0xf01ff
push dword [ebp - 0x828]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x470520
cmp dword [ebp - 0x830], 0
je 0x47035e
push dword [ebp - 0x828]
push str.STOPPING
push dword [ebp - 0x82c]
call fcn.004721e0
add esp, 0xc
mov dword [ebp - 0x83c], 0
nop dword [eax + eax]
xor esi, esi
lea eax, [ebp - 0x824]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x47051a
mov eax, dword [ebp - 0x820]
cmp eax, 2
je 0x47039d
cmp eax, 3
je 0x47039d
cmp eax, 5
jne 0x4703b0
push 0x3e8
call ebx
inc esi
cmp esi, 3
jl 0x470372
mov eax, dword [ebp - 0x820]
cmp dword [ebp - 0x83c], 0
jne 0x4703de
cmp eax, 1
je 0x4703ec
lea eax, [ebp - 0x824]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4703ec
mov dword [ebp - 0x83c], 1
jmp 0x470370
cmp eax, 1
je 0x4703ec
cmp eax, 3
jne 0x47051a
cmp dword [ebp - 0x830], 0
je 0x47047b
cmp dword [0x571500], 0
jne 0x47047b
push dword [ebp - 0x828]
push str.REMOVING
call fcn.004bb8b0
add esp, 4
push eax
lea eax, [ebp - 0x808]
push str._s__s
push eax
call fcn.004054c0
mov esi, dword [ebp - 0x82c]
lea eax, [ebp - 0x808]
add esp, 0x10
push eax
push 0
push 0x180
push 0x651
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x18b
push 0x651
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0
dec eax
push eax
push 0x197
push 0x651
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
mov eax, dword [ebp - 0x834]
xor edi, edi
test eax, eax
je 0x470493
push eax
call esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x470520
push 0xf01ff
push dword [ebp - 0x828]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x470520
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x47052d
cmp dword [ebp - 0x830], eax
je 0x470520
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x430
jne 0x470520
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
push 0x3e8
xor edi, edi
call ebx
push 0xf003f
push edi
push edi
mov dword [ebp - 0x830], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x834], eax
test esi, esi
jne 0x470320
jmp 0x470520
mov esi, dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x424
jne 0x470539
mov dword [ebp - 0x838], 1
jmp 0x470557
push dword [ebp - 0x82c]
call fcn.00417c00
push dword [ebp - 0x82c]
push str.SERVICE_UINSTALL_FAILED
call fcn.00419a00
add esp, 0xc
test edi, edi
je 0x470566
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x47056c
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x470573
push esi
call edi
mov eax, dword [ebp - 0x838]
test eax, eax
je 0x470627
push 0x3e8
call ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x470612
push 0xf01ff
push dword [ebp - 0x828]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
call ebx
mov dword [ebp - 0x83c], eax
test esi, esi
jne 0x4705fe
call ebx
cmp eax, 0x424
jne 0x4705fe
xor ebx, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
test ebx, ebx
jne 0x470612
mov eax, dword [ebp - 0x838]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
mov ebx, 1
test esi, esi
je 0x4705ce
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
jmp 0x4705d4
push dword [ebp - 0x82c]
push str.SERVICE_UINSTALL_FAILED
call fcn.00419a00
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret