Function at 0x496166
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
and dword [esp + 0x94], 0
push ebx
push esi
mov ebx, ecx
lea ecx, [esp + 0xa4]
push edi
push ecx
mov dword [esp + 0x30], ebx
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0xac], eax
call dword [sym.imp.USER32.dll_BeginPaint]
push eax
mov dword [esp + 0xa4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x4965a5
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push dword [ebx + 4]
movups xmmword [esp + 0x18], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword fs:[0x2c]
mov ebx, dword [eax]
mov eax, dword [0x6c8e5c]
mov dword [esp + 0x24], ebx
cmp eax, dword [ebx + 4]
jle 0x49620c
mov edi, 0x6c8e5c
push edi
call fcn.00499a91
cmp dword [0x6c8e5c], 0xffffffff
pop ecx
jne 0x49620c
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
push edi
mov dword [0x6c8e60], eax
call fcn.00499a52
pop ecx
mov eax, dword [0x6c8e64]
cmp eax, dword [ebx + 4]
jle 0x496242
mov edi, 0x6c8e64
push edi
call fcn.00499a91
cmp dword [0x6c8e64], 0xffffffff
pop ecx
jne 0x496242
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push edi
mov dword [0x6c8e68], eax
call fcn.00499a52
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0x18]
push 0x12
pop edi
test ecx, ecx
jne 0x496254
xor eax, eax
jmp 0x49625d
mov eax, ebx
sub eax, dword [esp + 0x10]
cdq
idiv edi
mov edi, dword [esp + 0x1c]
sub ebx, eax
sub ebx, dword [esp + 0x10]
mov dword [esp + 0x58], ebx
test ecx, ecx
jne 0x496273
xor eax, eax
jmp 0x49627f
mov eax, edi
sub eax, dword [esp + 0x14]
push 0x12
cdq
pop ecx
idiv ecx
and dword [esp + 0x50], 0
sub edi, eax
sub edi, dword [esp + 0x14]
lea eax, [esp + 0x78]
push 0x28
push 0
push eax
mov dword [esp + 0x34], edi
call fcn.005e1780
add esp, 0xc
mov dword [esp + 0x78], 0x28
xor eax, eax
mov dword [esp + 0x7c], ebx
inc eax
mov dword [esp + 0x80], edi
xor ecx, ecx
mov word [esp + 0x84], ax
push 0x20
pop eax
push ecx
push ecx
mov word [esp + 0x8e], ax
lea eax, [esp + 0x58]
push eax
push ecx
lea eax, [esp + 0x88]
mov dword [esp + 0x98], ecx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, eax
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
and dword [esp + 0x30], 0
and dword [esp + 0x34], 0
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov ecx, dword [0x6c8e6c]
cmp ecx, dword [eax + 4]
jle 0x49636b
push 0x6c8e6c
call fcn.00499a91
cmp dword [0x6c8e6c], 0xffffffff
pop ecx
jne 0x49636b
lea eax, [esp + 0x30]
mov ecx, 0x6c8e70
push eax
push dword [esp + 0xa4]
call fcn.0048dc15
push 0x6132ef
call fcn.00499de8
mov dword [esp], 0x6c8e6c
call fcn.00499a52
pop ecx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x496499
xor ebx, ebx
push ebx
push str.Shell_TrayWnd
push ebx
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
lea ecx, [esp + 0x40]
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [esp + 0x48], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push ebx
lea eax, [esp + 0x34]
xorps xmm0, xmm0
push eax
push ebx
push 0x30
movups xmmword [esp + 0x40], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
mov dword [0x6c8b18], ebx
mov dword [0x6c8b1c], ebx
cmp dword [esp + 0x48], ecx
jne 0x4963d1
cmp dword [esp + 0x4c], eax
je 0x4963e1
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x40], ecx
jne 0x4963f4
cmp dword [esp + 0x4c], eax
jne 0x4963f4
sub ecx, dword [esp + 0x10]
mov eax, ecx
push 0x12
cdq
pop ecx
idiv ecx
mov dword [0x6c8b18], eax
jmp 0x496421
cmp dword [esp + 0x48], ecx
jne 0x496421
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x4c], ecx
jne 0x49640c
sub ecx, dword [esp + 0x14]
mov eax, ecx
jmp 0x496416
cmp dword [esp + 0x44], eax
jne 0x496421
sub eax, dword [esp + 0x14]
push 0x12
cdq
pop ecx
idiv ecx
mov dword [0x6c8b1c], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x30]
push eax
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
push 0xcc0020
push ebx
push ebx
push eax
push ecx
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
push ecx
push ebx
push ebx
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push esi
mov dword [esp + 0x48], eax
call ebx
mov eax, dword [esp + 0x1c]
xor ecx, ecx
sub eax, dword [esp + 0x14]
push 0xcc0020
push ecx
push ecx
push dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push ecx
push ecx
push dword [0x6c8e70]
call ebx
push dword [esp + 0x24]
push dword [esp + 0x58]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ebx, dword [esp + 0x58]
jmp 0x4964cb
push 0x12
pop ecx
cmp eax, ecx
jg 0x4964cb
push 0xcc0020
push dword [0x6c8e68]
push dword [0x6c8e60]
push 0
push 0
push dword [0x6c8e70]
push dword [esp + 0x40]
push ebx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
sub eax, ebx
mov ecx, dword [esp + 0x28]
cdq
sub eax, edx
mov dword [esp + 0x6c], ecx
sar eax, 1
add eax, dword [esp + 0x10]
add eax, dword [0x6c8b18]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
sub eax, ecx
mov dword [esp + 0x68], ebx
cdq
sub eax, edx
mov byte [esp + 0x23], 1
sar eax, 1
add eax, dword [esp + 0x14]
add eax, dword [0x6c8b1c]
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov word [esp + 0x20], ax
imul eax, dword [ebp + 8], 0x50
push 0x12
pop ecx
push 0x64
cdq
idiv ecx
pop ecx
sub ecx, eax
push 2
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x6a03c8]
cvttsd2si eax, xmm0
mov byte [esp + 0x26], al
lea eax, [esp + 0x24]
push eax
push 0
lea eax, [esp + 0x6c]
push eax
push esi
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x48]
push dword [esp + 0xbc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
push dword [esp + 0x5c]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call ebx
xor ecx, ecx
test eax, eax
cmovne edi, ecx
test edi, edi
je 0x49659e
push edi
call ebx
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
lea eax, [esp + 0xa8]
push eax
push dword [esp + 0xa8]
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4