Function at 0x4b9f00
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f559b
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 0x4b9f46
mov al, 1
jmp 0x4ba18f
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 0x4ba125
cmp dword [ebp - 0x38], ebx
je 0x4ba125
call fcn.00403b40
test eax, eax
jg 0x4b9fd6
push 0
push 0x26f
push str.RepairService_repair.cc
lea ecx, [ebp - 0x13c]
call fcn.00403b50
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.004048d0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4b9fed
lea ecx, [ebp - 0x13c]
call fcn.00403ba0
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 0x4ba031
cmp edi, 0xffffffff
je 0x4ba031
mov dword [ebp - 0x14], edi
call fcn.00412bb0
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.00412c50
mov esi, dword [ebp - 0x14]
add esp, 0x10
mov dword [ebp - 4], 2
test esi, esi
je 0x4ba0ee
cmp esi, 0xffffffff
je 0x4ba0ee
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.0040d500
add esp, 8
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x4ba093
lea ecx, [ebp - 0x30]
xor bl, bl
call fcn.00402120
mov esi, dword [ebp - 0x14]
jmp 0x4ba0f0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x74]
call fcn.00408630
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00408be0
push dword [ebp - 0x5c]
mov byte [ebp - 4], 5
push eax
call fcn.00409100
add esp, 8
mov byte [ebp - 4], 4
test eax, eax
lea ecx, [ebp - 0x8c]
sete bl
call fcn.00408680
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 3
call fcn.00408680
lea ecx, [ebp - 0x30]
call fcn.00402120
mov esi, dword [ebp - 0x14]
jmp 0x4ba0f0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4ba121
cmp esi, 0xffffffff
je 0x4ba121
call fcn.00412bb0
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
call fcn.00412d20
push dword [ebp - 0x14]
call fcn.00412c10
add esp, 0x14
mov al, bl
jmp 0x4ba18f
call fcn.00403b40
cmp eax, 2
jg 0x4ba176
push 2
push 0x26b
push str.RepairService_repair.cc
lea ecx, [ebp - 0x1ec]
call fcn.00403b50
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.004048d0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4ba18d
lea ecx, [ebp - 0x1ec]
call fcn.00403ba0
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.004bc11d
mov esp, ebp
pop ebp
ret 4