Function at 0x442490
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd878
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x51b170]
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 ebx, ecx
mov eax, dword [0x5266b8]
test al, 1
jne 0x442600
or eax, 1
mov dword [0x5266b8], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
push 0xc
push str.Rstrtmgr.dll
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], al
call fcn.004180a0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x44254e
cmp dword [ebp - 0x58], 0x10
lea edi, [ebp - 0x6c]
mov ecx, dword [ebp - 0x6c]
cmovae edi, ecx
add edi, esi
cmp dword [ebp - 0x58], 0x10
lea esi, [ebp - 0x6c]
cmovae esi, ecx
call fcn.004583a0
push eax
lea eax, [ebp - 0x84]
push eax
push edi
push esi
call fcn.00457b80
add esp, 0x10
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x58]
cmp edx, 0x10
jb 0x442586
mov ecx, dword [ebp - 0x6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x44257c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44292a
push edx
push ecx
call fcn.00499ae0
add esp, 8
mov dword [0x5266bc], 0
push ecx
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 4
push eax
mov ecx, 0x5266bc
call fcn.0043d620
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x70]
cmp edx, 8
jb 0x4425e7
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4425dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44292f
push edx
push ecx
call fcn.00499ae0
add esp, 8
push 0x4e4c20
call fcn.00499acb
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [0x5266b8]
cmp dword [0x5266bc], 0
je 0x44290e
test al, 2
jne 0x442640
or eax, 2
mov dword [0x5266b8], eax
push str.RmStartSession
mov ecx, 0x5266bc
mov dword [ebp - 4], 5
call fcn.0043d680
mov dword [0x5266c4], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5266b8]
test al, 4
jne 0x442673
or eax, 4
mov dword [0x5266b8], eax
push str.RmRegisterResources
mov ecx, 0x5266bc
mov dword [ebp - 4], 6
call fcn.0043d680
mov dword [0x5266c8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5266b8]
test al, 8
jne 0x4426a1
or eax, 8
mov dword [0x5266b8], eax
push str.RmGetList
mov ecx, 0x5266bc
mov dword [ebp - 4], 7
call fcn.0043d680
mov dword [0x5266c0], eax
mov dword [ebp - 4], 0xffffffff
push 0x42
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.004b1bf0
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
lea eax, [ebp - 0xb4]
push eax
call dword [0x5266c4]
test eax, eax
jne 0x44290e
cmp dword [ebx + 0x14], 8
jb 0x4426d4
mov ebx, dword [ebx]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], ebx
push eax
push 1
push dword [ebp - 0xb4]
call dword [0x5266c8]
test eax, eax
jne 0x44290e
sub esp, 8
mov dword [ebp - 0xb8], eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
call fcn.00442950
lea eax, [ebp - 0xb8]
mov dword [ebp - 4], 8
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xb4]
call dword [0x5266c0]
test eax, eax
je 0x442756
cmp eax, 0xea
jne 0x442906
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x442906
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xac], eax
push ecx
push eax
call fcn.00442a20
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xb4]
call dword [0x5266c0]
test eax, eax
jne 0x442906
mov eax, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0xc8], eax
cmp edi, eax
je 0x442906
push dword [edi]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0xc4], esi
test esi, esi
je 0x4428f4
lea ecx, [edi + 0x20c]
push ecx
lea ecx, [ebp - 0x84]
call fcn.00413b10
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0xc0], ebx
test ebx, ebx
je 0x4428b4
cmp dword [ebp - 0x70], 8
lea ecx, [ebp - 0x84]
push 0x2c
cmovae ecx, dword [ebp - 0x84]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4428a7
mov edx, ebx
mov ecx, esi
call fcn.004422b0
lea eax, [ebp - 0xa8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0xa4], 1
mov ebx, eax
je 0x44289a
nop dword [eax]
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0xcc]
push eax
push 0x24
lea eax, [ebp - 0xa8]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x44289a
cmp dword [ebp - 0xa4], 1
je 0x44289a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x1388
ja 0x44289a
cmp dword [ebp - 0xa4], 1
jne 0x442850
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [ebp - 0xc0]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x70]
cmp edx, 8
jb 0x4428ed
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4428e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44292a
push edx
push ecx
call fcn.00499ae0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 0x29c
cmp edi, dword [ebp - 0xc8]
jne 0x4427b4
lea ecx, [ebp - 0x60]
call fcn.004429b0
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.004996e8
mov esp, ebp
pop ebp
ret
call fcn.004bbc5b
call fcn.004bbc5b
int3