Function at 0x4ef3a0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5377bb
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x581d10]
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
xor ebx, ebx
mov dword [ebp - 0x58], ebx
cmp dword [ecx + 0x38], 0x10
je 0x4ef3e0
mov al, 1
jmp 0x4ef646
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 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 - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x24
lea eax, [ebp - 0x54]
push eax
push 0
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4ef5dc
cmp dword [ebp - 0x38], ebx
je 0x4ef5dc
call fcn.00422a40
test eax, eax
jg 0x4ef470
push 0
push 0x26f
push str.RepairService_repair.cc
lea ecx, [ebp - 0x138]
call fcn.00422a50
push dword [ebp - 0x38]
add eax, 8
mov dword [ebp - 4], 1
push str.dwProcessId:
mov ebx, 2
push eax
mov dword [ebp - 0x58], ebx
call fcn.004189b0
add esp, 8
mov ecx, eax
call fcn.0041c1a0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4ef487
lea ecx, [ebp - 0x138]
call fcn.00422aa0
push dword [ebp - 0x38]
mov dword [ebp - 0x14], 0
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
xor esi, esi
mov dword [ebp - 0x14], esi
test edi, edi
je 0x4ef4cb
cmp edi, 0xffffffff
je 0x4ef4cb
mov dword [ebp - 0x14], edi
call fcn.0042a570
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0042a990
mov esi, dword [ebp - 0x14]
add esp, 0x10
mov dword [ebp - 4], 2
test esi, esi
je 0x4ef5a5
cmp esi, 0xffffffff
je 0x4ef5a5
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
push 0x104
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
push 0x104
push eax
call fcn.00427860
add esp, 8
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x4ef52d
lea ecx, [ebp - 0x30]
xor bl, bl
call fcn.00417360
mov esi, dword [ebp - 0x14]
jmp 0x4ef5a7
sub esp, 8
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.0041a660
lea ecx, [ebp - 0x88]
call fcn.004195a0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00419a40
mov esi, eax
sub esp, 8
mov byte [ebp - 4], 5
mov ecx, esp
push dword [ebp + 8]
call fcn.0041a660
sub esp, 8
mov ecx, esp
push esi
call fcn.0041a660
call fcn.00419350
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
mov bl, al
call fcn.00419620
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00419620
lea ecx, [ebp - 0x30]
call fcn.00417360
mov esi, dword [ebp - 0x14]
jmp 0x4ef5a7
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4ef5d8
cmp esi, 0xffffffff
je 0x4ef5d8
call fcn.0042a570
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
call fcn.0042a9c0
push dword [ebp - 0x14]
call fcn.0042a960
add esp, 0x14
mov al, bl
jmp 0x4ef646
call fcn.00422a40
cmp eax, 2
jg 0x4ef62d
push 2
push 0x26b
push str.RepairService_repair.cc
lea ecx, [ebp - 0x1e8]
call fcn.00422a50
mov esi, eax
mov ebx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.QueryServiceStatusEx_failed:
push eax
call fcn.004189b0
add esp, 8
mov ecx, eax
call fcn.0041c1a0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4ef644
lea ecx, [ebp - 0x1e8]
call fcn.00422aa0
xor al, al
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.004f1cdb
mov esp, ebp
pop ebp
ret 4