Function at 0x4f0b30
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b3fa
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5fae30]
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 ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xa0], edi
cmp dword [ebx + 0x10], edi
jne 0x4f0b91
push 0x1a
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edi
push str.CWFP::StopWFP___Wrong_data
mov ecx, esi
mov byte [esi], 0
call fcn.00402a36
jmp 0x4f0d2f
lea eax, [ebp - 0x2c]
push eax
call fcn.00408940
cmp dword [ebp - 0x18], 0x10
jb 0x4f0bac
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0053ed60
add esp, 4
push 2
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4f0bdb
push 0x22
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
push str.CWFP::StopWFP___Failed_to_open_SCM
mov ecx, esi
mov byte [esi], al
call fcn.00402a36
jmp 0x4f0d2f
cmp dword [ebx + 0x14], 8
jb 0x4f0be3
mov ebx, dword [ebx]
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x4f0c8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea edx, [ebp - 0x64]
push ebx
push edx
call fcn.004080a8
add esp, 8
mov edi, eax
xor ebx, ebx
push 0x34
push str.CWFP::StopWFP___Failed_to_open_service_with_error:
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00402a36
push edi
lea eax, [ebp - 0x2c]
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00407cd9
mov edi, 0x10
add esp, 0xc
cmp dword [ebp - 0x18], edi
jb 0x4f0c63
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x50], edi
jb 0x4f0d2f
mov edx, dword [ebp - 0x64]
push edx
call fcn.0053ed60
add esp, 4
jmp 0x4f0d2f
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x48]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4f0cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa0], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
push edi
call ebx
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x4f0d23
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.004080a8
add esp, 8
mov edi, eax
push str.Failed_to_stop_service_with_error
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 2
call fcn.00403dfa
push edi
push eax
push esi
mov byte [ebp - 4], 3
call fcn.00407cd9
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.0040583f
lea ecx, [ebp - 0x9c]
call fcn.0040583f
jmp 0x4f0d2f
push 0x5bd6d3
mov ecx, esi
call fcn.00403dfa
mov eax, esi
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.0053fd20
mov esp, ebp
pop ebp
ret 8