Function at 0x4895ad
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49c239
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4d4028]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
mov ecx, dword [ebp + 8]
lea edi, [esp + 0x10]
call fcn.0048e233
xor edi, edi
mov dword [esp + 0x80], edi
push dword [eax]
mov eax, SysReAllocString
push str.CEmfBmpCaptionMgr::HandleWndMsg__s__n
mov ecx, 0x7f6050
call fcn.004012c0
or dword [esp + 0x88], 0xffffffff
pop ecx
pop ecx
lea ecx, [esp + 0x10]
call dword [0x4a2ee8]
mov eax, dword [ebp + 8]
sub eax, 5
je 0x4898f3
dec eax
je 0x489891
sub eax, 0x7e
je 0x489793
sub eax, 0x20
je 0x48974f
sub eax, 0x6d
jne 0x489ad4
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test ax, ax
jne 0x489ad4
movzx eax, word [ebp + 0xc]
cmp eax, edi
je 0x489ad4
cmp eax, dword [ebx + 0x28]
jne 0x489682
mov eax, dword [ebx + 0x2fec]
push edi
push edi
push 0x53
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x489ad4
cmp eax, dword [ebx + 0x24]
jne 0x4896c0
mov eax, dword [ebx + 0x2fec]
push edi
push 0xf020
push 0x112
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call fcn.0047d31b
mov ecx, eax
call fcn.0049015c
push dword [ebx + 0x3000]
push edi
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
jmp 0x489ad4
cmp eax, dword [ebx + 0x18]
jne 0x48970d
cmp dword [ebx + 0x3000], edi
je 0x489705
call fcn.00489aeb
test al, al
je 0x489705
mov eax, dword [ebx + 0x2fec]
push edi
push 0xf020
push 0x112
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call fcn.0047d31b
mov ecx, eax
call fcn.0049015c
push dword [ebx + 0x3000]
jmp 0x4896b4
push edi
push 0xf020
jmp 0x489736
cmp eax, dword [ebx + 0x1c]
jne 0x48971a
push edi
push 0xf030
jmp 0x489736
cmp eax, dword [ebx + 0x14]
jne 0x489727
push edi
push 0xf060
jmp 0x489736
cmp eax, dword [ebx + 0x20]
jne 0x489ad4
push edi
push 0xf120
mov eax, dword [ebx + 0x2fec]
push 0x112
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x489ad4
cmp dword [ebp + 0xc], 3
je 0x48975f
cmp dword [ebp + 0xc], 2
jne 0x489ad4
add ebx, 0x2fec
mov ecx, dword [ebx]
call fcn.004904b0
test eax, 0x80000
je 0x489ad4
mov eax, dword [ebx]
push esi
push edi
push 0x313
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
jmp 0x489867
movsx eax, si
mov dword [esp + 0x24], eax
shr esi, 0x10
movsx eax, si
mov dword [esp + 0x28], eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebx + 0x2fec]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 7
call edi
push 8
mov esi, eax
call edi
mov ecx, dword [ebx + 0x2fec]
mov dword [esp + 0x10], eax
call fcn.004904b0
test eax, 0xc00000
je 0x4897e6
push 4
call edi
add dword [esp + 0x10], eax
call fcn.004900d8
call dword [0x4a2084]
mov ecx, dword [esp + 0x38]
mov eax, dword [ebx + 0x108]
add dword [esp + 0x34], esi
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x38], ecx
add edx, ecx
mov ecx, dword [esp + 0x3c]
neg esi
lea ecx, [ecx + esi*2]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x40], edx
lea esi, [esp + 0x34]
lea edi, [esp + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add eax, ecx
mov ecx, dword [ebx + 0x2fec]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x6c], eax
call fcn.004904b0
test eax, 0x80000
mov esi, dword [sym.imp.USER32.dll_PtInRect]
je 0x48986f
push dword [esp + 0x28]
lea eax, [esp + 0x68]
push dword [esp + 0x28]
push eax
call esi
test eax, eax
je 0x48986f
mov eax, dword [ebp + 0x10]
mov dword [eax], 3
xor eax, eax
inc eax
jmp 0x489ad6
push dword [esp + 0x28]
lea eax, [esp + 0x38]
push dword [esp + 0x28]
push eax
call esi
test eax, eax
je 0x489ad4
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
jmp 0x489867
cmp word [ebp + 0xc], di
mov cl, byte [ebx + 0x10]
setne al
cmp cl, al
mov byte [ebx + 0x10], al
je 0x489ad4
lea eax, [esp + 0x64]
push eax
mov eax, dword [ebx + 0x2ff0]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
push 1
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x108]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x58]
push eax
mov eax, dword [ebx + 0x2ff0]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x489ad4
mov eax, dword [ebx + 0x2ff0]
lea ecx, [esp + 0x44]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [ebx + 0x300e], 0
je 0x489ac9
mov esi, vtable.CRgn.0
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x80], 1
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], vtable.CBitmap.0
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x84], 3
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x20]
call fcn.0049050a
cmp dword [ebx + 0x104], edi
mov edi, dword [sym.imp.GDI32.dll_OffsetRgn]
jle 0x4899da
lea eax, [esp + 0x14]
lea ecx, [ebx + 0xbc]
push eax
call fcn.0048e2e2
pop ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
lea edx, [esp + 0x20]
call fcn.00489b55
lea ecx, [esp + 0x14]
call fcn.00490522
lea eax, [esp + 0x14]
lea ecx, [ebx + 0xdc]
push eax
call fcn.0048e2e2
mov eax, dword [esp + 0x50]
sub eax, dword [ebx + 0x114]
pop ecx
sub eax, dword [esp + 0x44]
push 0
push eax
push dword [esp + 0x20]
call edi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
lea edx, [esp + 0x20]
call fcn.00489b55
lea ecx, [esp + 0x14]
call fcn.00490522
cmp dword [ebx + 0x11c], 0
jle 0x489a71
lea eax, [esp + 0x14]
lea ecx, [ebx + 0xec]
push eax
call fcn.0048e2e2
mov eax, dword [esp + 0x54]
sub eax, dword [ebx + 0x120]
pop ecx
sub eax, dword [esp + 0x48]
push eax
push 0
push dword [esp + 0x20]
call edi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
lea edx, [esp + 0x20]
call fcn.00489b55
lea ecx, [esp + 0x14]
call fcn.00490522
lea eax, [esp + 0x14]
lea ecx, [ebx + 0xfc]
push eax
call fcn.0048e2e2
mov eax, dword [esp + 0x54]
sub eax, dword [ebx + 0x130]
pop ecx
mov ecx, dword [esp + 0x4c]
sub ecx, dword [ebx + 0x12c]
sub eax, dword [esp + 0x48]
sub ecx, dword [esp + 0x44]
push eax
push ecx
push dword [esp + 0x20]
call edi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
lea edx, [esp + 0x20]
call fcn.00489b55
mov eax, dword [ebx + 0x2ff0]
push 1
push dword [esp + 0x24]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov byte [esp + 0x80], 2
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.CBitmap.0
call fcn.004311e0
mov byte [esp + 0x80], 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.004311e0
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
call fcn.004311e0
push 1
lea ecx, [esp + 0x48]
call fcn.004892f3
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc