Function at 0x497069
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 0x4974a8
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 [0x6caf04]
mov dword [esp + 0x24], ebx
cmp eax, dword [ebx + 4]
jle 0x49710f
mov edi, 0x6caf04
push edi
call fcn.0049a991
cmp dword [0x6caf04], 0xffffffff
pop ecx
jne 0x49710f
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
push edi
mov dword [0x6caf08], eax
call fcn.0049a952
pop ecx
mov eax, dword [0x6caf0c]
cmp eax, dword [ebx + 4]
jle 0x497145
mov edi, 0x6caf0c
push edi
call fcn.0049a991
cmp dword [0x6caf0c], 0xffffffff
pop ecx
jne 0x497145
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push edi
mov dword [0x6caf10], eax
call fcn.0049a952
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0x18]
push 0x12
pop edi
test ecx, ecx
jne 0x497157
xor eax, eax
jmp 0x497160
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 0x497176
xor eax, eax
jmp 0x497182
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.005e26d0
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 [0x6caf14]
cmp ecx, dword [eax + 4]
jle 0x49726e
push 0x6caf14
call fcn.0049a991
cmp dword [0x6caf14], 0xffffffff
pop ecx
jne 0x49726e
lea eax, [esp + 0x30]
mov ecx, 0x6caf18
push eax
push dword [esp + 0xa4]
call fcn.0048e775
push 0x614403
call fcn.0049ace8
mov dword [esp], 0x6caf14
call fcn.0049a952
pop ecx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x49739c
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 [0x6cabac], ebx
mov dword [0x6cabb0], ebx
cmp dword [esp + 0x48], ecx
jne 0x4972d4
cmp dword [esp + 0x4c], eax
je 0x4972e4
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x40], ecx
jne 0x4972f7
cmp dword [esp + 0x4c], eax
jne 0x4972f7
sub ecx, dword [esp + 0x10]
mov eax, ecx
push 0x12
cdq
pop ecx
idiv ecx
mov dword [0x6cabac], eax
jmp 0x497324
cmp dword [esp + 0x48], ecx
jne 0x497324
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x4c], ecx
jne 0x49730f
sub ecx, dword [esp + 0x14]
mov eax, ecx
jmp 0x497319
cmp dword [esp + 0x44], eax
jne 0x497324
sub eax, dword [esp + 0x14]
push 0x12
cdq
pop ecx
idiv ecx
mov dword [0x6cabb0], 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 [0x6caf18]
call ebx
push dword [esp + 0x24]
push dword [esp + 0x58]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ebx, dword [esp + 0x58]
jmp 0x4973ce
push 0x12
pop ecx
cmp eax, ecx
jg 0x4973ce
push 0xcc0020
push dword [0x6caf10]
push dword [0x6caf08]
push 0
push 0
push dword [0x6caf18]
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 [0x6cabac]
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 [0x6cabb0]
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 [0x6a1b00]
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 0x4974a1
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