Function at 0x412dd0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd1d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx + 0x6c]
xor eax, eax
mov ecx, 6
lea edi, [ebp - 0x54]
neg esi
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
sbb esi, esi
mov eax, 1
and esi, 0xa
push eax
add esi, 0x83
push 0
push 0
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
mov dword [ebp - 0x3c], eax
je 0x4130a0
mov ecx, dword [ebx + 0x60]
push 5
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x28], edi
jne 0x412e6e
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push 0x5002c0
push eax
call fcn.00423785
lea ecx, [ebp - 0x58]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x412f6e
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x578], eax
dec eax
je 0x412eef
sub eax, 3
jne 0x412f10
lea ecx, [ebx + 0x70]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], 0
call fcn.00439020
test eax, eax
je 0x412edd
mov eax, dword [ebx + 0x68]
cmp eax, 3
jne 0x412ec6
mov esi, dword [ebx + 0x6c]
neg esi
sbb esi, esi
and esi, 0xa
add esi, 0x82
jmp 0x412f0d
mov esi, dword [ebx + 0x6c]
cmp eax, 1
jne 0x412ee0
neg esi
sbb esi, esi
and esi, 5
add esi, 0x8b
jmp 0x412f0d
mov esi, dword [ebx + 0x6c]
neg esi
sbb esi, esi
and esi, 9
add esi, 0x86
jmp 0x412f0d
mov esi, dword [ebx + 0x6c]
mov dword [ebp - 0x20], 0
neg esi
sbb esi, esi
mov dword [ebp - 0x24], 1
and esi, 0xa
add esi, 0x84
mov dword [ebp - 0x14], esi
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push edx
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004c4c60
mov edx, dword [ebp - 0x1c]
add esp, 4
lea ecx, [ebp - 0x1c]
mov edi, eax
mov eax, dword [ebp - 0x28]
push ecx
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x412f63
mov eax, dword [edi + 4]
xor ecx, ecx
cmp eax, 2
mov dword [ebx + 0x57c], eax
setne cl
dec ecx
and ecx, 8
mov dword [ebp - 0x2c], ecx
push edi
call fcn.004c4c89
add esp, 4
jmp 0x412f8f
lea edx, [ebp - 0x34]
push 0x5002c0
push edx
mov dword [ebp - 0x34], 0
call fcn.00423785
mov eax, 0x412f89
ret
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x412fa4
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebx + 0x584]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.004caed9
mov edx, dword [ebp - 0x20]
mov edi, eax
push edx
push 0x8007
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [ebp - 0x24]
mov edx, dword [edi + 4]
push ecx
push 0x8008
push edx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x50ee64]
mov dword [ebp - 0x18], eax
mov ecx, dword [edi + 4]
push 0
push 0
push 0
push 0x800a
push ecx
mov dword [ebp - 4], 2
call dword [sym.imp.USER32.dll_GetMenuStringW]
test eax, eax
jle 0x413042
inc eax
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 0x3c], eax
call fcn.004c54e7
mov edx, dword [ebp - 0x3c]
push 0
push edx
push eax
mov eax, dword [edi + 4]
push 0x800a
push eax
call dword [sym.imp.USER32.dll_GetMenuStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004c54be
jmp 0x41304a
lea ecx, [ebp - 0x18]
call fcn.004c4fb1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edi + 4]
push ecx
push 0x800a
push edx
push 0x800a
push eax
call dword [sym.imp.USER32.dll_ModifyMenuW]
call fcn.004d807f
mov eax, dword [eax + 0xc]
and esi, 0xffff
push esi
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebx + 0x1e0], eax
add ebx, 0x1cc
push ebx
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004c5029
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret