Function at 0x404341
Capabilities:
Delete service
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
xor ebx, ebx
mov esi, 0x4000
push edi
push esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], esi
call fcn.00441ddc
mov edi, eax
mov dword [ebp - 0x14], ebx
pop ecx
mov dword [ebp - 0xc], edi
jmp 0x404370
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push esi
push edi
push 2
push 0x10
push ebx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x4043ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40443d
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4043d1
push dword [ebp - 4]
push edi
call fcn.00441e27
mov esi, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
jmp 0x40442b
mov eax, dword [ebp - 8]
test eax, eax
je 0x40436e
mov esi, edi
mov edi, dword [ebp + 8]
push 6
push str.frida_
push dword [esi]
call fcn.004bb3ac
add esp, 0xc
test eax, eax
jne 0x404418
push dword [esi]
call fcn.004bb0d4
pop ecx
cmp eax, 0x29
jne 0x404418
push 0x10001
push dword [esi]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x404418
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0044c17e
pop ecx
pop ecx
mov eax, dword [ebp - 8]
inc ebx
add esi, 0x2c
cmp ebx, eax
jne 0x4043d6
mov edi, dword [ebp - 0xc]
xor ebx, ebx
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x404370
cmp dword [ebp - 0x14], 0
jne 0x404370
push edi
call fcn.00441dce
lea eax, [ebp - 0x24]
push eax
call fcn.0044c0d1
pop ecx
pop ecx
test eax, eax
jne 0x404559
push ebx
push fcn.00441dce
push 0x44b15d
push fcn.0044b172
call fcn.0044ad85
mov edi, dword [ebp - 0x24]
mov esi, eax
xor eax, eax
mov dword [ebp + 8], esi
add esp, 0x10
mov dword [ebp - 0x10], eax
test edi, edi
je 0x4044fc
mov esi, dword [edi]
mov dword [ebp - 0x18], esi
jmp 0x4044a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4044e1
push dword [ebp - 4]
push ebx
call fcn.00441e27
pop ecx
mov ebx, eax
mov eax, dword [ebp - 4]
pop ecx
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x404486
xor eax, eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [ebx + 0xc]
call fcn.0044b6eb
mov esi, eax
push esi
call fcn.0044a1b6
push eax
push dword [ebp + 8]
call fcn.0044a8ac
push esi
call fcn.00441dce
mov esi, dword [ebp - 0x18]
add esp, 0x24
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [edi + 4]
mov eax, dword [ebp - 0x10]
test edi, edi
jne 0x40447f
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.0044aba7
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0044abb6
add esp, 0x14
test eax, eax
je 0x40454b
push dword [ebp - 0xc]
call fcn.0040b259
mov esi, eax
push esi
call fcn.004040d8
push esi
call fcn.004760d1
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0044abb6
add esp, 0x18
test eax, eax
jne 0x40451c
mov esi, dword [ebp + 8]
push ebx
call fcn.00441dce
push esi
call fcn.0044b111
pop ecx
pop ecx
lea eax, [ebp - 0x24]
push eax
call fcn.0044bfc6
pop ecx
pop edi
pop esi
pop ebx
leave
ret