Function at 0x4f258c
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f29bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
sub dword [esi + 0xc], 1
jno 0x4f25cf
call fcn.00403b58
cmp dword [esi + 0xc], 0
jl 0x4f2942
lea eax, [ebp - 0x34]
push eax
mov eax, dword [0x543fa4]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4f28be
test bl, bl
je 0x4f25fe
cmp dword [ebp - 0x30], 4
jne 0x4f25fe
mov byte [ebp - 1], 1
test bl, bl
jne 0x4f260c
cmp dword [ebp - 0x30], 1
jne 0x4f260c
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 0
je 0x4f2885
xor edx, edx
mov eax, esi
call fcn.0043ac34
mov eax, dword [0x543fa8]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [0x543fa4]
push eax
call sub.advapi32.dll_CloseServiceHandle
test bl, bl
je 0x4f264d
lea ecx, [ebp - 8]
mov edx, 0x4f29d8
mov eax, 0x4f29e8
call fcn.00510c34
jmp 0x4f265f
lea ecx, [ebp - 8]
mov edx, 0x4f29f8
mov eax, 0x4f29e8
call fcn.00510c34
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0047fe48
test bl, bl
je 0x4f270e
mov eax, dword [0x544048]
mov eax, dword [eax]
call fcn.0041c2f8
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x4f2707
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 8]
sub ebx, 1
jno 0x4f269e
call fcn.00403b58
cmp ebx, 0
jl 0x4f26df
mov edx, ebx
mov eax, dword [ebp - 0x18]
call fcn.0041bbc4
cmp byte [eax], 1
jne 0x4f26d9
mov edx, ebx
mov eax, dword [ebp - 0x18]
call fcn.0041bbc4
imul edx, dword [eax + 8], 0x44
jno 0x4f26c7
call fcn.00403b58
mov eax, dword [eax + 0x70]
call fcn.00402800
mov edx, ebx
mov eax, dword [ebp - 0x18]
call fcn.0041bab4
dec ebx
cmp ebx, 0xffffffff
jne 0x4f26a3
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x18]
call fcn.0041bd80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f287b
mov eax, dword [0x544048]
mov eax, dword [eax]
call fcn.0041c35c
ret
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x38]
xor eax, eax
call fcn.00402b68
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0xc]
call fcn.00409ce8
lea eax, [ebp - 0xc]
call fcn.004d61f4
lea eax, [ebp - 0xc]
mov edx, 0x4f2a08
call fcn.00404cf4
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, dword [ebp - 0xc]
call fcn.00404eec
push eax
call sub.kernel32.dll_CreateFileA_1
mov edx, dword [0x54449c]
mov dword [edx], eax
mov eax, dword [0x54449c]
cmp dword [eax], 0xffffffff
je 0x4f287b
mov eax, dword [0x544048]
mov eax, dword [eax]
call fcn.0041c2f8
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4f280f
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x18]
mov eax, dword [0x54449c]
mov eax, dword [eax]
call fcn.004c124c
test al, al
je 0x4f27ec
lea ecx, [ebp - 0x3c]
mov edx, 0x4f2a18
mov eax, 0x4f29e8
call fcn.00510c34
push dword [ebp - 0x3c]
push 0x4f2a28
lea ecx, [ebp - 0x40]
mov edx, 0x4f2a34
mov eax, 0x4f29e8
call fcn.00510c34
push dword [ebp - 0x40]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404dac
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0047fe48
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2816
mov eax, dword [0x544048]
mov eax, dword [eax]
call fcn.0041c35c
ret
call fcn.0040e9fc
jmp 0x4f2995
add dword [edi + 0xc], 1
jno 0x4f2890
call fcn.00403b58
lea eax, [ebp - 8]
call fcn.00404a2c
mov ebx, dword [edi + 0xc]
test ebx, ebx
jle 0x4f28af
lea eax, [ebp - 8]
mov edx, 0x4f2a44
call fcn.00404cf4
dec ebx
jne 0x4f289f
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0047fe48
jmp 0x4f2995
xor edx, edx
mov eax, esi
call fcn.0043ac34
mov eax, dword [0x543fa8]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [0x543fa4]
push eax
call sub.advapi32.dll_CloseServiceHandle
test bl, bl
je 0x4f28f5
lea ecx, [ebp - 8]
mov edx, 0x4f2a50
mov eax, 0x4f29e8
call fcn.00510c34
jmp 0x4f2907
lea ecx, [ebp - 8]
mov edx, 0x4f2a60
mov eax, 0x4f29e8
call fcn.00510c34
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x48]
call fcn.0040d718
push dword [ebp - 0x48]
push 0x4f2a70
push dword [ebp - 8]
push 0x4f2a7c
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.00404dac
mov edx, dword [ebp - 0x44]
mov eax, edi
call fcn.0047fe48
call fcn.0040e9fc
jmp 0x4f2995
xor edx, edx
mov eax, esi
call fcn.0043ac34
mov eax, dword [0x543fa8]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [0x543fa4]
push eax
call sub.advapi32.dll_CloseServiceHandle
test bl, bl
je 0x4f2979
lea ecx, [ebp - 8]
mov edx, 0x4f2a50
mov eax, 0x4f29e8
call fcn.00510c34
jmp 0x4f298b
lea ecx, [ebp - 8]
mov edx, 0x4f2a60
mov eax, 0x4f29e8
call fcn.00510c34
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0047fe48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f29c4
lea eax, [ebp - 0x48]
mov edx, 5
call fcn.00404a50
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404a50
ret