Function at 0x12724e0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x12fceb0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200010
call fcn.01294390
add esp, 4
test eax, eax
je 0x1272520
push str.Entering_vboxTrayServiceMain_n
push str.int___cdecl_vboxTrayServiceMain_void_
push str._Rfn:__M
push 0x20
push 0x10
push eax
call fcn.012952b0
add esp, 0x18
push ebx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x12fd814], eax
test eax, eax
jne 0x127257d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0128c1e0
push 0x200010
mov ebx, eax
call fcn.01294390
add esp, 8
test eax, eax
je 0x12728c7
push ebx
push str.CreateEvent_for_stopping_VBoxTray_failed__rc_Rrc_n
push str.int___cdecl_vboxTrayServiceMain_void_
push str._Rfn:__M
push 0x20
push 0x10
push eax
call fcn.012952b0
add esp, 0x1c
jmp 0x12728c7
mov eax, dword [0x12fd80c]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x90]
push eax
call fcn.01275000
lea eax, [ebp - 0x94]
push eax
call fcn.012729f0
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x12728ac
push esi
push edi
call fcn.01291dc0
mov esi, eax
mov edi, edx
call fcn.01271ea0
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
js 0x127287d
cmp edi, 0x500000
jb 0x12725f0
ja 0x12725d8
test esi, esi
jb 0x12725f0
push 0
push 0x2710
push 0x3e8
push dword [0x12fd810]
call dword [sym.imp.USER32.dll_SetTimer]
push 0x32
call fcn.0127eea0
add esp, 4
push 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
mov ebx, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [0x12fd814]
mov dword [ebp - 0x14], eax
mov eax, dword [0x12fda18]
test eax, eax
je 0x1272632
mov dword [ebp - 0x10], eax
mov ebx, 2
mov eax, dword [0x12fda1c]
test eax, eax
je 0x1272640
mov dword [ebp + ebx*4 - 0x14], eax
inc ebx
call fcn.01274a70
test eax, eax
je 0x1272653
call fcn.01274a70
mov dword [ebp + ebx*4 - 0x14], eax
inc ebx
push 0x200002
call fcn.01294390
add esp, 4
test eax, eax
je 0x1272681
push ebx
push str.Number_of_events_to_wait_in_main_loop:__ld_n
push str.int___cdecl_vboxTrayServiceMain_void_
push str._Rfn:__M
push 0x20
push 2
push eax
call fcn.012952b0
add esp, 0x1c
push 0
push 0x1cff
push 0x1f4
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
test eax, eax
je 0x1272820
xor esi, esi
cmp eax, 4
jae 0x127277d
lea edi, [ebp - 0x14]
lea edi, [edi + eax*4]
mov eax, dword [edi]
test eax, eax
je 0x127277d
cmp eax, dword [0x12fda18]
jne 0x12726fc
push 0x200010
call fcn.01294390
add esp, 4
test eax, eax
je 0x12726f0
push str.Event_Seamless_triggered_n
push str.int___cdecl_vboxTrayServiceMain_void_
push str._Rfn:__M
push 0x20
push 0x10
push eax
call fcn.012952b0
add esp, 0x18
push 0
call fcn.0127b140
add esp, 4
jmp 0x1272778
cmp eax, dword [0x12fda1c]
jne 0x127273d
push 0x200010
call fcn.01294390
add esp, 4
test eax, eax
je 0x1272731
push str.Event_Km_Seamless_triggered_n
push str.int___cdecl_vboxTrayServiceMain_void_
push str._Rfn:__M
push 0x20
push 0x10
push eax
call fcn.012952b0
add esp, 0x18
push 1
call fcn.0127b140
add esp, 4
jmp 0x1272778
call fcn.01274a70
cmp dword [edi], eax
jne 0x127277d
push 0x200010
call fcn.01294390
add esp, 4
test eax, eax
je 0x1272773
push str.Event_Dt_triggered_n
push str.int___cdecl_vboxTrayServiceMain_void_
push str._Rfn:__M
push 0x20
push 0x10
push eax
call fcn.012952b0
add esp, 0x18
call fcn.012749f0
mov esi, 1
test esi, esi
jne 0x1272801
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x1272801
cmp dword [ebp - 0x30], 0x12
jne 0x12727d7
push 0x200010
call fcn.01294390
add esp, 4
test eax, eax
je 0x12727cb
push str.Terminating_..._n
push str.int___cdecl_vboxTrayServiceMain_void_
push str._Rfn:__M
push 0x20
push 0x10
push eax
call fcn.012952b0
add esp, 0x18
push dword [0x12fd814]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x1272798
push 0
push 0x1cff
push 0x1f4
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
test eax, eax
jne 0x12726a0
push 0x200010
call fcn.01294390
add esp, 4
test eax, eax
je 0x127284d
push str.Event_Exit_triggered_n
push str.int___cdecl_vboxTrayServiceMain_void_
push str._Rfn:__M
push 0x20
push 0x10
push eax
call fcn.012952b0
add esp, 0x18
push 0x200010
call fcn.01294390
add esp, 4
test eax, eax
je 0x127287a
push str.Returned_from_main_loop__exiting_..._n
push str.int___cdecl_vboxTrayServiceMain_void_
push str._Rfn:__M
push 0x20
push 0x10
push eax
call fcn.012952b0
add esp, 0x18
mov ebx, dword [ebp - 0x18]
push 0x200010
call fcn.01294390
add esp, 4
pop edi
pop esi
test eax, eax
je 0x12728ac
push str.Waiting_for_services_to_stop_..._n
push str.int___cdecl_vboxTrayServiceMain_void_
push str._Rfn:__M
push 0x20
push 0x10
push eax
call fcn.012952b0
add esp, 0x18
lea eax, [ebp - 0x94]
push eax
call fcn.01272ee0
add esp, 4
push dword [0x12fd814]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x12fd818], 0
jbe 0x1272923
push 0x12fd818
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x127290f
push 0
push str.TrayNotifyWnd
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExA]
test eax, eax
je 0x127290f
push 0
push 0
push 0xf
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x1fc
push 0
push 0x12fd818
call sym.VBoxTray.exe_nocrt_memset
add esp, 0xc
push 0x200010
call fcn.01294390
add esp, 4
test eax, eax
je 0x1272951
push ebx
push str.Leaving_with_rc_Rrc_n
push str.int___cdecl_vboxTrayServiceMain_void_
push str._Rfn:__M
push 0x20
push 0x10
push eax
call fcn.012952b0
add esp, 0x1c
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01271180
mov esp, ebp
pop ebp
ret