Function at 0x4216e0
Capabilities:
Query service status

Disassembly:
push 0xffffffffffffffff
push 0x4caa92
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
lea eax, [esp + 0x44]
mov esi, 1
xor ebp, ebp
push eax
mov dword [esp + 0x8c], esi
mov dword [esp + 0x1c], ebp
call fcn.00437980
mov edi, dword [esp + 0x98]
mov ecx, edi
mov byte [esp + 0x88], 2
mov dword [esp + 0x14], ebp
call fcn.004024c0
lea eax, [esp + 0x44]
call fcn.00437a10
test eax, eax
jne 0x421756
mov dword [esp + 0x18], esi
jmp case.default.0x4219de
mov ecx, dword [esp + 0x50]
cmp dword [ecx - 0xc], ebp
je 0x4219b3
cmp dword [esp + 0x14], ebp
jne 0x4219d2
lea esi, [esp + 0x1c]
lea eax, [esp + 0x44]
call fcn.0043d1c0
mov byte [esp + 0x88], 3
mov edx, dword [esp + 0x94]
xor ecx, ecx
cmp edx, ebp
setne cl
cmp ecx, ebp
je 0x4219c3
mov eax, dword [eax]
push edx
push eax
call fcn.004a30dd
add esp, 8
cmp eax, ebp
mov byte [esp + 0x88], 2
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4217d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x421834
cmp dword [esp + 0x48], ebp
jne 0x4217f8
push 0xf01ff
lea esi, [esp + 0x48]
call fcn.0043d1e0
test eax, eax
jne 0x4217f8
push 4
call fcn.0043d1e0
test eax, eax
je 0x421827
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, ebp
je 0x42181d
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x14], 1
jmp 0x421925
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], 2
jmp 0x421925
lea esi, [esp + 0x24]
lea eax, [esp + 0x44]
call fcn.0043d1c0
mov byte [esp + 0x88], 4
mov eax, dword [eax]
push eax
lea edi, [esp + 0x24]
call fcn.0043d5e0
add esp, 4
mov byte [esp + 0x88], 5
mov edx, dword [esp + 0x90]
xor ecx, ecx
cmp edx, ebp
setne cl
cmp ecx, ebp
je 0x4219c3
mov eax, dword [eax]
push edx
push eax
call fcn.004a30dd
add esp, 8
cmp eax, ebp
mov byte [esp + 0x88], 4
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4218af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4218d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x42191e
cmp dword [esp + 0x48], ebp
jne 0x4218fe
push 0xf01ff
lea esi, [esp + 0x48]
call fcn.0043d1e0
test eax, eax
jne 0x4218fe
push 4
call fcn.0043d1e0
test eax, eax
je 0x421959
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, ebp
je 0x42194f
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x98]
mov eax, dword [esp + 0x7c]
cmp eax, 0xfffffffe
je 0x4219a0
cmp eax, dword [esp + 0x5c]
je 0x4219a0
mov eax, dword [esp + 0x48]
cmp eax, ebp
je 0x421967
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, ebp
jne 0x421963
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x421967
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], 2
jmp 0x42191e
mov dword [esp + 0x48], ebp
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], ebp
call fcn.004024c0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x5c]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x7c], eax
je 0x4219a0
cmp eax, ebp
jl 0x4219cd
cmp eax, ecx
jge 0x4219cd
mov ecx, dword [esp + 0x58]
lea eax, [ecx + eax*4]
push eax
lea ecx, [esp + 0x54]
call fcn.004028f0
mov edx, dword [esp + 0x50]
cmp dword [edx - 0xc], ebp
jne 0x421763
cmp dword [esp + 0x14], ebp
jne 0x4219d2
push 9
push str.NOT_FOUND
mov ecx, edi
call fcn.00402430
jmp case.default.0x4219de
push 0x80004005
call fcn.004021e0
call fcn.00484c83
mov eax, dword [esp + 0x2c]
add eax, 0xffffffff
cmp eax, 6
ja case.default.0x4219de
jmp dword [eax*4 + 0x421aac]
push str.STOPPED
jmp 0x421a14
push str.START_PENDING
jmp 0x421a14
push str.STOP_PENDING
jmp 0x421a14
push str.RUNNING
jmp 0x421a14
push str.CONTINUE_PENDING
jmp 0x421a14
push str.PAUSE_PENDING
jmp 0x421a14
push str.PAUSED
mov ecx, edi
call fcn.004023b0
lea esi, [esp + 0x44]
call fcn.00437ba0
mov eax, esi
push eax
mov byte [esp + 0x8c], 1
call fcn.00421ad0
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421a5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x94]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421a8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0xc