Function at 0x418c90
Capabilities:
Query service status

Disassembly:
push 0xffffffffffffffff
push 0x4a8520
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_5
lea esi, [ebx + 0xa0]
xor edi, edi
or ebp, 0xffffffff
push 2
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x18], ebp
call fcn.004147d0
inc eax
je 0x418ce9
lea ebp, [eax - 1]
push 2
push ebp
mov ecx, esi
call fcn.004147d0
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], 0x4b2e54
mov dword [esp + 0x2c], edi
mov byte [esp + 0x5c], 1
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CMenu::Attach
mov eax, dword [0x545f7c]
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
mov eax, dword [eax*4 + 0x4cef90]
push eax
push 0x85fc
push edi
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edi
push edi
push 0x800
push edx
call esi
mov eax, dword [0x545f7c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax*4 + 0x4cef9c]
push eax
push 0x85fd
push edi
push ecx
call esi
mov edx, dword [esp + 0x2c]
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 1
push 0x85fd
push edx
call edi
mov eax, dword [0x545f7c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax*4 + 0x4cefa8]
push eax
push 0x85fe
push 0
push ecx
call esi
mov edx, dword [esp + 0x2c]
push 1
push 0x85fe
push edx
call edi
mov eax, dword [0x545f7c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax*4 + 0x4cefb4]
push eax
push 0x85ff
push 0
push ecx
call esi
mov edx, dword [esp + 0x2c]
push 1
push 0x85ff
push edx
call edi
mov eax, dword [0x545f7c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax*4 + 0x4cefc0]
push eax
push 0x8600
push 0
push ecx
call esi
mov edx, dword [esp + 0x2c]
push 1
push 0x8600
push edx
call edi
mov eax, dword [0x545f7c]
mov eax, dword [eax*4 + 0x4cefcc]
push eax
push 0x8601
push 0
mov ecx, dword [esp + 0x38]
push ecx
call esi
mov edx, dword [esp + 0x2c]
push 1
push 0x8601
push edx
call edi
mov eax, dword [0x545f7c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax*4 + 0x4cefd8]
push eax
push 0x8602
push 0
push ecx
call esi
mov edx, dword [esp + 0x2c]
push 0
push 0x8602
push edx
call edi
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0x800
push eax
call esi
mov ecx, dword [0x545f7c]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx*4 + 0x4cefe4]
push eax
push 0x8603
push 0
push edx
call esi
mov eax, dword [esp + 0x2c]
push 1
push 0x8603
push eax
call edi
mov ecx, dword [0x545f7c]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx*4 + 0x4ceff0]
push eax
push 0x8604
push 0
push edx
call esi
mov eax, dword [esp + 0x2c]
push 1
push 0x8604
push eax
call edi
mov ecx, dword [0x545f7c]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx*4 + 0x4ceffc]
push eax
push 0x8605
push 0
push edx
call esi
mov eax, dword [esp + 0x2c]
push 1
push 0x8605
push eax
call edi
test ebp, ebp
jl 0x419038
push 0
lea ecx, [esp + 0x1c]
push ebp
push ecx
lea ecx, [ebx + 0xa0]
call fcn.00404170
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 2
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 1
call sub.MFC42u.DLL_CString::CString
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, ebx
call fcn.00418a50
cmp eax, 1
jne 0x418f76
mov eax, dword [esp + 0x1c]
cmp eax, 2
jne 0x418f34
mov ecx, dword [esp + 0x2c]
push 0
push 0x8604
push ecx
call edi
mov edx, dword [esp + 0x2c]
push 0
push 0x8605
push edx
jmp 0x418f74
cmp eax, 3
jne 0x418f55
mov eax, dword [esp + 0x2c]
push 0
push 0x8603
push eax
call edi
mov ecx, dword [esp + 0x2c]
push 0
push 0x8605
push ecx
jmp 0x418f74
cmp eax, 4
jne 0x418f76
mov edx, dword [esp + 0x2c]
push 0
push 0x8603
push edx
call edi
mov eax, dword [esp + 0x2c]
push 0
push 0x8604
push eax
call edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
mov dword [esp + 0x24], eax
je 0x419038
mov ecx, dword [esp + 0x14]
push 5
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [esp + 0x20], eax
je 0x41902d
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x419022
mov eax, dword [esp + 0x3c]
dec eax
je 0x419014
sub eax, 3
je 0x418fdc
sub eax, 3
jne 0x419022
test byte [esp + 0x40], 2
je 0x418ff1
push 0
push 0x8600
jmp 0x418fea
test byte [esp + 0x40], 2
je 0x418ff1
push 0
push 0x85ff
mov eax, dword [esp + 0x34]
push eax
call edi
test byte [esp + 0x40], 1
je 0x419022
mov ecx, dword [esp + 0x2c]
push 0
push 0x85fe
push ecx
call edi
mov edx, dword [esp + 0x2c]
push 0
push 0x8601
push edx
jmp 0x419020
mov eax, dword [esp + 0x2c]
push 0
push 0x85fd
push eax
call edi
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0x800
push eax
call esi
mov ecx, dword [0x545f7c]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx*4 + 0x4cf008]
push eax
push 0x8606
push 0
push edx
call esi
mov ecx, dword [esp + 0x2c]
xor eax, eax
test ebp, ebp
setl al
mov ebp, eax
push ebp
push 0x8606
push ecx
call edi
mov edx, dword [0x545f7c]
mov eax, dword [edx*4 + 0x4cf014]
push eax
mov eax, dword [esp + 0x30]
push 0x8607
push 0
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ebp
push 0x8607
push ecx
call edi
mov edx, dword [0x545f7c]
mov eax, dword [edx*4 + 0x4cf020]
push eax
mov eax, dword [esp + 0x30]
push 0x8608
push 0
push eax
call esi
mov ecx, dword [ebx + 0xc0]
push 0
push 0
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
test eax, eax
mov eax, dword [esp + 0x2c]
sete dl
push edx
push 0x8608
push eax
call edi
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0x800
push ecx
call esi
mov edx, dword [0x545f7c]
mov eax, dword [edx*4 + 0x4cf02c]
push eax
mov eax, dword [esp + 0x30]
push 0x8609
push 0
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ebp
push 0x8609
push ecx
call edi
mov edx, dword [0x545f7c]
mov eax, dword [edx*4 + 0x4cf038]
push eax
push 0x860a
mov eax, dword [esp + 0x34]
push 0
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ebp
push 0x860a
push ecx
call edi
mov edx, dword [esp + 0x2c]
push 0
push 0
push 0x800
push edx
call esi
mov eax, dword [0x545f7c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax*4 + 0x4cf044]
push eax
push 0x860b
push 0
push ecx
call esi
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x41919d
mov edx, dword [ebx + 0xc0]
push 0
push 0
push 0x1032
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
ja 0x41919d
xor eax, eax
jmp 0x4191a2
mov eax, 1
push eax
mov eax, dword [esp + 0x30]
push 0x860b
push eax
call edi
mov ecx, dword [0x545f7c]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx*4 + 0x4cf050]
push eax
push 0x860c
push 0
push edx
call esi
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x4191f2
mov eax, dword [ebx + 0xc0]
push 0
push 0
push 0x1032
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
ja 0x4191f2
xor eax, eax
jmp 0x4191f7
mov eax, 1
mov ecx, dword [esp + 0x2c]
push eax
push 0x860c
push ecx
call edi
mov edx, dword [esp + 0x2c]
push 0
push 0
push 0x800
push edx
call esi
mov eax, dword [0x545f7c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax*4 + 0x4cf05c]
push eax
push 0x860d
push 0
push ecx
call esi
mov edx, dword [esp + 0x2c]
push ebp
push 0x860d
push edx
call edi
mov eax, dword [0x545f7c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax*4 + 0x4cf068]
push eax
push 0x860f
push 0
push ecx
call esi
mov edx, dword [esp + 0x2c]
push ebp
push 0x860f
push edx
call edi
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0x800
push eax
call esi
mov ecx, dword [0x545f7c]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx*4 + 0x4cf074]
push eax
push 0x860e
push 0
push edx
call esi
mov eax, dword [esp + 0x2c]
push ebp
push 0x860e
push eax
call edi
mov ecx, dword [0x545f7c]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx*4 + 0x4cf080]
push eax
push 0x8610
push 0
push edx
call esi
mov eax, dword [esp + 0x2c]
push ebp
push 0x8610
push eax
call edi
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0x800
push ecx
call esi
mov edx, dword [0x545f7c]
mov eax, dword [edx*4 + 0x4cf08c]
push eax
mov eax, dword [esp + 0x30]
push 0x8611
push 0
push eax
call esi
mov ecx, dword [ebx + 0xc0]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1032
push ecx
call ebp
xor edx, edx
cmp eax, 1
mov eax, dword [esp + 0x2c]
setne dl
push edx
push 0x8611
push eax
call edi
mov ecx, dword [0x545f7c]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx*4 + 0x4cf098]
push eax
push 0x8612
push 0
push edx
call esi
mov eax, dword [ebx + 0xc0]
push 0
push 0
push 0x1032
push eax
call ebp
mov edx, dword [esp + 0x2c]
xor ecx, ecx
cmp eax, 1
setne cl
push ecx
push 0x8612
push edx
call edi
mov eax, dword [0x545f7c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax*4 + 0x4cf0a4]
push eax
push 0x8613
push 0
push ecx
call esi
mov edx, dword [ebx + 0xc0]
push 0
push 0
push 0x1032
push edx
call ebp
mov edx, dword [esp + 0x2c]
xor ecx, ecx
cmp eax, 1
setne cl
push ecx
push 0x8613
push edx
call edi
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0x800
push eax
call esi
mov ecx, dword [0x545f7c]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx*4 + 0x4cbb88]
push eax
push 0x8614
push 0
push edx
call esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x34]
push 0
push ebx
mov edx, dword [esp + 0x38]
push ecx
push edx
push 0
lea ecx, [esp + 0x3c]
call sub.MFC42u.DLL_CMenu::TrackPopupMenu
mov eax, dword [esp + 0x68]
mov dword [esp + 0x28], 0x4b2e54
mov dword [eax], 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x5c], 3
call sub.MFC42u.DLL_CMenu::DestroyMenu
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0x4b29a0
mov dword [esp + 0x5c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 8