Function at 0x4ba240
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f58cb
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x52de80]
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 0x4ba286
mov al, 1
jmp 0x4ba4cf
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 0x4ba465
cmp dword [ebp - 0x38], ebx
je 0x4ba465
call fcn.00403b80
test eax, eax
jg 0x4ba316
push 0
push 0x26f
push str.RepairService_repair.cc
lea ecx, [ebp - 0x13c]
call fcn.00403b90
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.00402a60
add esp, 8
mov ecx, eax
call fcn.00404910
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4ba32d
lea ecx, [ebp - 0x13c]
call fcn.00403be0
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 0x4ba371
cmp edi, 0xffffffff
je 0x4ba371
mov dword [ebp - 0x14], edi
call fcn.00410210
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.00412c00
mov esi, dword [ebp - 0x14]
add esp, 0x10
mov dword [ebp - 4], 2
test esi, esi
je 0x4ba42e
cmp esi, 0xffffffff
je 0x4ba42e
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.0040d3f0
add esp, 8
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x4ba3d3
lea ecx, [ebp - 0x30]
xor bl, bl
call fcn.00402120
mov esi, dword [ebp - 0x14]
jmp 0x4ba430
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x74]
call fcn.00408670
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00408c20
push dword [ebp - 0x5c]
mov byte [ebp - 4], 5
push eax
call fcn.00409140
add esp, 8
mov byte [ebp - 4], 4
test eax, eax
lea ecx, [ebp - 0x8c]
sete bl
call fcn.004086c0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 3
call fcn.004086c0
lea ecx, [ebp - 0x30]
call fcn.00402120
mov esi, dword [ebp - 0x14]
jmp 0x4ba430
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4ba461
cmp esi, 0xffffffff
je 0x4ba461
call fcn.00410210
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
call fcn.00412cd0
push dword [ebp - 0x14]
call fcn.00412bc0
add esp, 0x14
mov al, bl
jmp 0x4ba4cf
call fcn.00403b80
cmp eax, 2
jg 0x4ba4b6
push 2
push 0x26b
push str.RepairService_repair.cc
lea ecx, [ebp - 0x1ec]
call fcn.00403b90
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.00402a60
add esp, 8
mov ecx, eax
call fcn.00404910
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4ba4cd
lea ecx, [ebp - 0x1ec]
call fcn.00403be0
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.004bc45f
mov esp, ebp
pop ebp
ret 4