Function at 0x40dc20
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, edx
push ebx
mov ebx, eax
sub esp, 0x7c
test byte [global___dbch.1], 8
jne 0x40df18
test ebx, ebx
je 0x40df52
mov eax, dword [esi + 0xc]
test al, 8
je 0x40dc62
mov edx, dword [ebx + 0x14]
mov eax, dword [esi + 0x118]
xor eax, edx
and eax, dword [esi + 0x11c]
xor eax, edx
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0xc]
test al, 2
je 0x40dc9b
mov eax, dword [ebx + 8]
test eax, eax
je 0x40dc78
mov dword [esp], eax
call sym._DestroyIcon_4
sub esp, 4
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sym._CopyIcon_4
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0x20]
sub esp, 4
cmp eax, 0xffffffff
je 0x40dc98
mov edx, eax
call dbg.invalidate_icons
mov eax, dword [esi + 0xc]
test al, 1
jne 0x40dec0
test al, 4
jne 0x40ded1
test al, 0x10
je 0x40dcbb
cmp dword [esi], 0x1e7
ja 0x40dfa0
test byte [ebx + 0x14], 1
jne 0x40dea8
test byte [global___dbch.1], 8
jne 0x40e0c0
cmp dword [ebx + 0x20], 0xffffffff
jne 0x40de94
mov eax, dword [0x41b428]
mov esi, dword [0x41b42c]
mov edx, dword [0x41b424]
cmp eax, esi
jb 0x40dd51
add esi, esi
mov eax, 0x20
cmp esi, 0x20
cmovb esi, eax
lea eax, [esi*4]
test edx, edx
je 0x40e150
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 0x40de94
mov dword [0x41b424], edx
mov eax, dword [0x41b428]
mov dword [0x41b42c], esi
mov dword [ebx + 0x20], eax
lea ecx, [eax + 1]
mov dword [edx + eax*4], ebx
mov eax, ebx
mov dword [0x41b428], ecx
call dbg.update_tooltip_position
mov eax, dword [0x41b428]
sub eax, 1
mov edx, eax
call dbg.invalidate_icons
cmp dword [0x41b428], 1
je 0x40e100
mov edx, dword [0x41b380]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], eax
test edx, edx
je 0x40e120
mov eax, dword [0x41b430]
mov dword [esp + 0x2c], 0
lea esi, [ebp - 0x44]
mov dword [esp + 0x28], 0
mov edi, esi
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 sym._CreateWindowExW_48
mov ecx, 0xb
mov dword [ebx + 0x10], eax
mov edx, eax
xor eax, eax
sub esp, 0x30
rep stosd dword es:[edi], eax
mov eax, dword [0x41b430]
mov dword [ebp - 0x48], 0x30
mov dword [ebp - 0x40], eax
lea eax, [ebx + 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x20]
cmp eax, 0xffffffff
je 0x40de6b
mov edi, dword [0x41b418]
mov ecx, dword [0x41b410]
mov esi, dword [0x41b40c]
sub esi, dword [0x41b414]
imul eax, edi
sub ecx, eax
mov eax, esi
shr eax, 0x1f
mov dword [ebp - 0x30], ecx
add eax, esi
mov esi, ecx
sar eax, 1
sub esi, edi
mov dword [ebp - 0x34], eax
add eax, dword [0x41b414]
mov dword [ebp - 0x38], esi
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], edx
call sym._SendMessageW_16
mov eax, ebx
sub esp, 0x10
call dbg.update_balloon
lea esp, [ebp - 0xc]
mov ebx, 1
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
mov ebx, 1
call sym._hide_icon.isra.0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0xc]
test al, 4
je 0x40dcab
lea edi, [ebx + 0x24]
lea eax, [esi + 0x18]
mov dword [ebp - 0x50], edi
mov edx, edi
lea edi, [esi + 0x116]
lea esi, [esi]
movzx ecx, word [eax]
test cx, cx
je 0x40defe
add eax, 2
add edx, 2
mov word [edx - 2], cx
cmp edi, eax
jne 0x40dee8
xor eax, eax
mov word [edx], ax
cmp dword [ebx + 0x20], 0xffffffff
jne 0x40e060
mov eax, dword [esi + 0xc]
jmp 0x40dcab
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], global___dbch.1
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
test ebx, ebx
jne 0x40dc42
test byte [global___dbch.1], 4
je 0x40deb4
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 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], global___dbch.1
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x40deb4
lea eax, [esi + 0x120]
lea edx, [ebx + 0x124]
lea edi, [esi + 0x31e]
lea esi, [esi]
movzx ecx, word [eax]
test cx, cx
je 0x40dfce
add eax, 2
add edx, 2
mov word [edx - 2], cx
cmp edi, eax
jne 0x40dfb8
xor ecx, ecx
lea eax, [esi + 0x324]
lea edi, [esi + 0x3a2]
mov word [edx], cx
lea edx, [ebx + 0x324]
lea esi, [esi]
movzx ecx, word [eax]
test cx, cx
je 0x40dffe
add eax, 2
add edx, 2
mov word [edx - 2], cx
cmp edi, eax
jne 0x40dfe8
xor edi, edi
mov word [edx], di
mov eax, dword [esi + 0x3a4]
mov edx, 0x2710
mov dword [ebx + 0x3a4], eax
mov eax, 0x7530
cmp dword [esi + 0x320], 0x7530
cmovbe eax, dword [esi + 0x320]
cmp eax, 0x2710
cmovb eax, edx
mov dword [ebx + 0x3a8], eax
mov eax, dword [esi + 0x3b8]
mov dword [ebx + 0x3ac], eax
mov eax, ebx
call dbg.update_balloon
test byte [ebx + 0x14], 1
je 0x40dcc5
jmp 0x40dea8
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 [0x41b430]
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 [ebx + 0x10]
mov dword [ebp - 0x24], edi
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [esi + 0xc]
sub esp, 0x10
jmp 0x40dcab
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 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], global___dbch.1
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x40dcd2
mov ecx, dword [0x41b420]
test ecx, ecx
jne 0x40dd83
call dbg.do_show_systray
jmp 0x40dd83
mov dword [esp], eax
mov dword [ebp - 0x48], 8
mov dword [ebp - 0x44], 0x4008
call sym._InitCommonControlsEx_4
mov dword [0x41b380], 1
sub esp, 4
jmp 0x40dd97
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 0x40dd38