Function at 0x40f270
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40f28e
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40f360
mov ebx, dword [sym.imp.user32.dll_GetSystemMetrics]
mov dword [esp], 0x31
call ebx
sub esp, 4
add eax, 4
mov dword [0x41b418], eax
mov dword [esp], 0x32
call ebx
lea edx, [ebp - 0x3c]
mov ecx, 9
mov dword [0x41b420], esi
add eax, 4
mov edi, edx
sub esp, 4
mov dword [ebp - 0x48], 0x30
mov dword [0x41b414], eax
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x48]
mov dword [ebp - 0x44], 0xa
mov dword [0x41b41c], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebp - 0x40], dbg.tray_wndproc
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadIconW]
sub esp, 8
mov dword [ebp - 0x30], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadCursorW]
mov dword [ebp - 0x28], 5
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], str.Shell_TrayWnd
mov dword [esp], esi
call dword [sym.imp.user32.dll_RegisterClassExW]
sub esp, 4
test ax, ax
jne 0x40f388
test byte [global___dbch.1], 2
jne 0x40f4d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.wine_notify_icon
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x41b434], eax
sub esp, 8
jmp 0x40f28e
lea edi, [ebp - 0x78]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0x30
call dword [sym.imp.user32.dll_SystemParametersInfoW]
sub esp, 0x10
mov dword [esp], 1
call ebx
sub esp, 4
mov esi, eax
mov dword [esp], 0
call ebx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], eax
sub esp, 4
lea eax, [ebp - 0x68]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], esi
mov dword [esp + 4], eax
lea eax, [ebp - 0x58]
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [sym.imp.user32.dll_SubtractRect]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
sub esp, 0xc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov eax, dword [ebp - 0x4c]
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x14], ecx
sub eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0x80000000
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x20]
mov dword [esp], 0x8000000
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [0x41b430], eax
sub esp, 0x30
test eax, eax
je 0x40f500
mov dword [esp + 0xc], 0x32
mov dword [esp + 8], 0x41b3a0
mov dword [esp + 4], 3
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadStringW]
mov ecx, dword [0x41b420]
sub esp, 0x10
test ecx, ecx
jne 0x40f540
xor eax, eax
call sym._add_taskbar_button.part.0
mov edx, dword [0x41b420]
test edx, edx
jne 0x40f540
mov eax, dword [0x41b41c]
test eax, eax
je 0x40f352
call dbg.do_show_systray
jmp 0x40f352
mov dword [esp + 0xc], str.Could_not_register_SysTray_window_class_n
mov dword [esp + 8], str.initialize_systray
mov dword [esp + 4], global___dbch.1
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [global___dbch.1], 2
je 0x40f352
mov dword [esp + 0xc], str.Could_not_create_tray_window_n
mov dword [esp + 8], str.initialize_systray
mov dword [esp + 4], global___dbch.1
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_4
jmp 0x40f352
mov dword [esp + 4], 0
mov eax, dword [0x41b430]
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret