Function at 0x41f2e0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c269d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x10000
push 0xf003f
call fcn.0041ff90
mov edi, eax
mov dword [ebp - 0x20], 0x4e27b8
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x41f506
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x41f435
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.00429720
cmp byte [eax + 0x1c], 0
je 0x41f509
call fcn.00429720
test byte [eax + 0x20], 8
je 0x41f509
call fcn.00429720
mov esi, eax
call fcn.004043d0
test eax, eax
je 0x41f53d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
push 0x21
push str.DeleteService_failed_error_code:
call fcn.00402420
push ebx
lea ecx, [ebp - 0x14]
call fcn.00429420
mov dword [ebp - 0x18], eax
call fcn.004043d0
test eax, eax
je 0x41f53d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10]
push 0
push 0x4df9a0
call fcn.00402420
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push ecx
push eax
mov ecx, esi
call fcn.00429a60
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f410
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41f509
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41f509
call fcn.00429720
cmp byte [eax + 0x1c], 0
je 0x41f502
call fcn.00429720
test byte [eax + 0x20], 8
je 0x41f502
call fcn.00429720
mov esi, eax
call fcn.004043d0
test eax, eax
je 0x41f53d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x10]
push 0x15
push str.DeleteService_SUCCESS
call fcn.00402420
call fcn.004043d0
test eax, eax
je 0x41f53d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x14]
push 0
push 0x4df9a0
call fcn.00402420
push ecx
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00429a60
mov byte [ebp - 4], 0xd
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f4e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41f502
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
jmp 0x41f509
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x4e27b8
test edi, edi
je 0x41f529
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1c], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402570
int3