Function at 0x407e30
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 [0x412114], 8
jne 0x408128
test esi, esi
je 0x408162
mov eax, dword [ebx + 0xc]
test al, 8
je 0x407e72
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 0x407ead
mov eax, dword [esi + 8]
test eax, eax
je 0x407e89
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 0x407eaa
mov edx, eax
call sym._invalidate_icons
mov eax, dword [ebx + 0xc]
test al, 1
jne 0x4080d0
test al, 4
jne 0x4080e1
test al, 0x10
je 0x407ecd
cmp dword [ebx], 0x1e7
ja 0x4081b0
test byte [esi + 0x14], 1
jne 0x4080b8
test byte [0x412114], 8
jne 0x4082d0
cmp dword [esi + 0x20], 0xffffffff
jne 0x4080a6
mov eax, dword [0x4124ac]
mov ebx, dword [0x412134]
mov edx, dword [0x4123b0]
cmp eax, ebx
jb 0x407f63
add ebx, ebx
mov eax, 0x20
cmp ebx, 0x20
cmovb ebx, eax
lea eax, [ebx*4]
test edx, edx
je 0x408360
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 0x4080a6
mov dword [0x4123b0], edx
mov eax, dword [0x4124ac]
mov dword [0x412134], ebx
mov dword [esi + 0x20], eax
lea ecx, [eax + 1]
mov dword [edx + eax*4], esi
mov eax, esi
mov dword [0x4124ac], ecx
call sym._update_tooltip_position
mov eax, dword [0x4124ac]
dec eax
mov edx, eax
call sym._invalidate_icons
cmp dword [0x4124ac], 1
je 0x408310
mov edx, dword [0x4123ec]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], eax
test edx, edx
je 0x408330
mov eax, dword [0x412664]
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 [0x412664]
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 0x40807c
mov edi, dword [0x4123d0]
mov edx, dword [0x412660]
mov ecx, dword [0x41265c]
sub ecx, dword [0x4123d8]
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 [0x4123d8]
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 0x407ebd
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 0x40810e
add eax, 2
add edx, 2
mov word [edx - 2], cx
cmp edi, eax
jne 0x4080f8
xor eax, eax
mov word [edx], ax
cmp dword [esi + 0x20], 0xffffffff
jne 0x408270
mov eax, dword [ebx + 0xc]
jmp 0x407ebd
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], 0x412114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
test esi, esi
jne 0x407e52
test byte [0x412114], 4
je 0x4080c4
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], 0x412114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x4080c4
lea eax, [ebx + 0x120]
lea edx, [esi + 0x124]
lea edi, [ebx + 0x31e]
lea esi, [esi]
movzx ecx, word [eax]
test cx, cx
je 0x4081de
add eax, 2
add edx, 2
mov word [edx - 2], cx
cmp edi, eax
jne 0x4081c8
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 0x40820e
add eax, 2
add edx, 2
mov word [edx - 2], cx
cmp edi, eax
jne 0x4081f8
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 0x407ed7
jmp 0x4080b8
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 [0x412664]
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 0x407ebd
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], 0x412114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x407ee4
mov ecx, dword [0x4123c8]
test ecx, ecx
jne 0x407f93
call sym._do_show_systray
jmp 0x407f93
mov dword [ebp - 0x48], 8
mov dword [ebp - 0x44], 0x4008
mov dword [esp], eax
call dword [0x41c460]
mov dword [0x4123ec], 1
sub esp, 4
jmp 0x407fa7
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 0x407f4a