Function at 0x4b9fa0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5ecb
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x52fe80]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x58], ebx
cmp dword [ecx + 0x38], 0x10
mov dword [ebp - 0x5c], eax
je 0x4b9fe6
mov al, 1
jmp 0x4ba22f
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 0x4ba1c5
cmp dword [ebp - 0x38], ebx
je 0x4ba1c5
call fcn.00406510
test eax, eax
jg 0x4ba076
push 0
push 0x26f
push str.RepairService_repair.cc
lea ecx, [ebp - 0x13c]
call fcn.00406520
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.00404060
add esp, 8
mov ecx, eax
call fcn.00406e60
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4ba08d
lea ecx, [ebp - 0x13c]
call fcn.00406570
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 0x4ba0d1
cmp edi, 0xffffffff
je 0x4ba0d1
mov dword [ebp - 0x14], edi
call fcn.00414c50
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.00415b60
mov esi, dword [ebp - 0x14]
add esp, 0x10
mov dword [ebp - 4], 2
test esi, esi
je 0x4ba18e
cmp esi, 0xffffffff
je 0x4ba18e
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.0040d620
add esp, 8
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x4ba133
lea ecx, [ebp - 0x30]
xor bl, bl
call fcn.00402a40
mov esi, dword [ebp - 0x14]
jmp 0x4ba190
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x74]
call fcn.004086d0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00408c80
push dword [ebp - 0x5c]
mov byte [ebp - 4], 5
push eax
call fcn.004091a0
add esp, 8
mov byte [ebp - 4], 4
test eax, eax
lea ecx, [ebp - 0x8c]
sete bl
call fcn.00408720
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 3
call fcn.00408720
lea ecx, [ebp - 0x30]
call fcn.00402a40
mov esi, dword [ebp - 0x14]
jmp 0x4ba190
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4ba1c1
cmp esi, 0xffffffff
je 0x4ba1c1
call fcn.00414c50
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
call fcn.00415c20
push dword [ebp - 0x14]
call fcn.00415b20
add esp, 0x14
mov al, bl
jmp 0x4ba22f
call fcn.00406510
cmp eax, 2
jg 0x4ba216
push 2
push 0x26b
push str.RepairService_repair.cc
lea ecx, [ebp - 0x1ec]
call fcn.00406520
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.00404060
add esp, 8
mov ecx, eax
call fcn.00406e60
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4ba22d
lea ecx, [ebp - 0x1ec]
call fcn.00406570
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.004bc1bd
mov esp, ebp
pop ebp
ret 4