Function at 0x40e9f0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x7c
test byte [0x412088], 8
jne 0x40ece8
test esi, esi
je 0x40ed22
mov eax, dword [ebx + 0xc]
test al, 8
je 0x40ea32
mov edx, dword [esi + 0x14]
mov eax, dword [ebx + 0x118]
xor eax, edx
and eax, dword [ebx + 0x11c]
xor eax, edx
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0xc]
test al, 2
je 0x40ea6d
mov eax, dword [esi + 8]
test eax, eax
je 0x40ea49
mov dword [esp], eax
call dword [sym.imp.user32.dll_DestroyIcon]
sub esp, 4
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.user32.dll_CopyIcon]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x20]
sub esp, 4
cmp eax, 0xffffffff
je 0x40ea6a
mov edx, eax
call sym._invalidate_icons
mov eax, dword [ebx + 0xc]
test al, 1
jne 0x40ec90
test al, 4
jne 0x40eca1
test al, 0x10
je 0x40ea8d
cmp dword [ebx], 0x1e7
ja 0x40ed70
test byte [esi + 0x14], 1
jne 0x40ec78
test byte [0x412088], 8
jne 0x40ee90
cmp dword [esi + 0x20], 0xffffffff
jne 0x40ec66
mov eax, dword [0x41c428]
mov ebx, dword [0x41c42c]
mov edx, dword [0x41c424]
cmp eax, ebx
jb 0x40eb23
add ebx, ebx
mov eax, 0x20
cmp ebx, 0x20
cmovb ebx, eax
lea eax, [ebx*4]
test edx, edx
je 0x40ef20
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
mov edx, eax
test edx, edx
je 0x40ec66
mov dword [0x41c424], edx
mov eax, dword [0x41c428]
mov dword [0x41c42c], ebx
mov dword [esi + 0x20], eax
lea ecx, [eax + 1]
mov dword [edx + eax*4], esi
mov eax, esi
mov dword [0x41c428], ecx
call sym._update_tooltip_position
mov eax, dword [0x41c428]
dec eax
mov edx, eax
call sym._invalidate_icons
cmp dword [0x41c428], 1
je 0x40eed0
mov edx, dword [0x41c380]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], eax
test edx, edx
je 0x40eef0
mov eax, dword [0x41c430]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0x80000001
mov dword [esp + 8], 0
mov dword [esp + 4], str.tooltips_class32
mov dword [esp], 8
call dword [sym.imp.user32.dll_CreateWindowExW]
lea edx, [ebp - 0x44]
mov ecx, 0xb
mov dword [esi + 0x10], eax
mov ebx, eax
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [0x41c430]
mov dword [ebp - 0x48], 0x30
sub esp, 0x30
mov dword [ebp - 0x40], eax
lea eax, [esi + 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x40ec3c
mov edi, dword [0x41c418]
mov edx, dword [0x41c410]
mov ecx, dword [0x41c40c]
sub ecx, dword [0x41c414]
imul eax, edi
sub edx, eax
mov eax, ecx
shr eax, 0x1f
mov dword [ebp - 0x30], edx
add eax, ecx
mov ecx, edx
sar eax, 1
sub ecx, edi
mov dword [ebp - 0x34], eax
add eax, dword [0x41c414]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x432
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, esi
sub esp, 0x10
call sym._update_balloon
lea esp, [ebp - 0xc]
mov esi, 1
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, esi
mov esi, 1
call sym._hide_icon.isra.0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
test al, 4
je 0x40ea7d
lea edi, [esi + 0x24]
lea eax, [ebx + 0x18]
mov dword [ebp - 0x50], edi
mov edx, edi
lea edi, [ebx + 0x116]
lea esi, [esi]
movzx ecx, word [eax]
test cx, cx
je 0x40ecce
add eax, 2
add edx, 2
mov word [edx - 2], cx
cmp edi, eax
jne 0x40ecb8
xor eax, eax
mov word [edx], ax
cmp dword [esi + 0x20], 0xffffffff
jne 0x40ee30
mov eax, dword [ebx + 0xc]
jmp 0x40ea7d
mov eax, dword [edx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 8]
mov dword [esp + 0xc], str.id0x_x__hwnd_p_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.modify_icon
mov dword [esp + 4], 0x412088
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
test esi, esi
jne 0x40ea12
test byte [0x412088], 4
je 0x40ec84
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], str.Invalid_icon_ID__0x_x__for_HWND__p_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.modify_icon
mov dword [esp + 4], 0x412088
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x40ec84
lea eax, [ebx + 0x120]
lea edx, [esi + 0x124]
lea edi, [ebx + 0x31e]
lea esi, [esi]
movzx ecx, word [eax]
test cx, cx
je 0x40ed9e
add eax, 2
add edx, 2
mov word [edx - 2], cx
cmp edi, eax
jne 0x40ed88
xor ecx, ecx
lea eax, [ebx + 0x324]
lea edi, [ebx + 0x3a2]
mov word [edx], cx
lea edx, [esi + 0x324]
lea esi, [esi]
movzx ecx, word [eax]
test cx, cx
je 0x40edce
add eax, 2
add edx, 2
mov word [edx - 2], cx
cmp edi, eax
jne 0x40edb8
xor edi, edi
mov word [edx], di
mov eax, dword [ebx + 0x3a4]
mov edx, 0x2710
mov dword [esi + 0x3a4], eax
mov eax, 0x7530
cmp dword [ebx + 0x320], 0x7530
cmovbe eax, dword [ebx + 0x320]
cmp eax, 0x2710
cmovb eax, edx
mov dword [esi + 0x3a8], eax
mov eax, dword [ebx + 0x3b8]
mov dword [esi + 0x3ac], eax
mov eax, esi
call sym._update_balloon
test byte [esi + 0x14], 1
je 0x40ea97
jmp 0x40ec78
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x44]
mov ecx, 0xb
mov dword [ebp - 0x4c], eax
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [0x41c430]
mov edi, dword [ebp - 0x50]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x439
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], 0x30
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x24], edi
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [ebx + 0xc]
sub esp, 0x10
jmp 0x40ea7d
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0xc], str.id0x_x__hwnd_p_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.show_icon
mov dword [esp + 4], 0x412088
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x40eaa4
mov ecx, dword [0x41c420]
test ecx, ecx
jne 0x40eb53
call sym._do_show_systray
jmp 0x40eb53
mov dword [ebp - 0x48], 8
mov dword [ebp - 0x44], 0x4008
mov dword [esp], eax
call dword [0x41d460]
mov dword [0x41c380], 1
sub esp, 4
jmp 0x40eb67
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edx, eax
jmp 0x40eb0a