Function at 0x44e540
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527a50
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x1b4
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x1c4]
mov ecx, 0x6d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x57a2c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov esi, esp
push 0xf003f
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.00401127
push eax
call fcn.00401604
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp esi, esp
call fcn.0049a060
push eax
lea ecx, [ebp - 0x24]
call fcn.0040151e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00401686
test eax, eax
je 0x44e5dd
mov dword [ebp - 0x1c4], 1
jmp 0x44e5e7
mov dword [ebp - 0x1c4], 0
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x30], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0049a060
push eax
call fcn.004014d8
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x30], 0
je 0x44e626
mov eax, str.hSCM
test eax, eax
je 0x44e626
mov dword [ebp - 0x1c4], 1
jmp 0x44e630
mov dword [ebp - 0x1c4], 0
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0
jne 0x44e667
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00401cb7
mov ecx, dword [eax]
mov dword [ebp - 0x1bc], ecx
push 0x56a314
lea edx, [ebp - 0x1bc]
push edx
call fcn.0049a0a0
xor eax, eax
jne 0x44e60b
xor eax, eax
jne 0x44e5c5
mov esi, esp
push 0x10000
mov ecx, dword [ebp - 0x18]
call fcn.00401127
push eax
lea ecx, [ebp - 0x24]
call fcn.00401686
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp esi, esp
call fcn.0049a060
push eax
lea ecx, [ebp - 0x54]
call fcn.0040151e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.00401686
test eax, eax
je 0x44e6be
mov dword [ebp - 0x1c4], 1
jmp 0x44e6c8
mov dword [ebp - 0x1c4], 0
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x60], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0049a060
push eax
call fcn.004014d8
add esp, 4
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x60], 0
je 0x44e707
mov eax, str.hService
test eax, eax
je 0x44e707
mov dword [ebp - 0x1c4], 1
jmp 0x44e711
mov dword [ebp - 0x1c4], 0
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x78], 0
jne 0x44e748
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x198]
call fcn.00401cb7
mov ecx, dword [eax]
mov dword [ebp - 0x1a4], ecx
push 0x56a314
lea edx, [ebp - 0x1a4]
push edx
call fcn.0049a0a0
xor eax, eax
jne 0x44e6ec
xor eax, eax
jne 0x44e6a6
lea ecx, [ebp - 0x54]
call fcn.00401686
mov esi, esp
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp esi, esp
call fcn.0049a060
test eax, eax
je 0x44e77c
mov dword [ebp - 0x1c4], 1
jmp 0x44e786
mov dword [ebp - 0x1c4], 0
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x84], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0049a060
push eax
call fcn.004014d8
add esp, 4
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x84], 0
je 0x44e7ce
mov eax, str.::DeleteService_hService_
test eax, eax
je 0x44e7ce
mov dword [ebp - 0x1c4], 1
jmp 0x44e7d8
mov dword [ebp - 0x1c4], 0
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x9c], ecx
cmp dword [ebp - 0x9c], 0
jne 0x44e818
mov eax, dword [ebp - 0x90]
push eax
lea ecx, [ebp - 0x180]
call fcn.00401cb7
mov ecx, dword [eax]
mov dword [ebp - 0x18c], ecx
push 0x56a314
lea edx, [ebp - 0x18c]
push edx
call fcn.0049a0a0
xor eax, eax
jne 0x44e7b0
xor eax, eax
jne 0x44e754
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00401bcc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00401bcc
jmp 0x44e85b
mov dword [ebp - 4], 0xffffffff
jmp 0x44e873
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x44e8a8]
call fcn.0049a000
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c4
cmp ebp, esp
call fcn.0049a060
mov esp, ebp
pop ebp
ret