Function at 0x476ea0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
cmp esi, 1
jne 0x476efa
cmp byte [0x4c9e30], 0
jne 0x476efa
cmp byte [0x4c9e31], 0
jne 0x476efa
cmp dword [0x4b982c], 0
je 0x476efa
mov eax, dword [0x4c96e4]
cmp eax, 1
je 0x476ee2
cmp eax, 2
jne 0x476efa
mov cl, 1
mov edx, 0xa2
mov eax, dword [0x4b982c]
call fcn.00468564
mov byte [0x4c9e30], 1
cmp dword [0x4b982c], 0
je 0x4776d3
cmp esi, 1
jne 0x476f1d
cmp byte [0x4c9e30], 0
jne 0x476f1d
test bl, bl
je 0x4776d3
cmp dword [0x4c96e4], 7
je 0x4776d3
cmp dword [0x4c96e4], 0xa
je 0x4776d3
cmp dword [ebp - 4], 0
jne 0x476f79
test esi, esi
jne 0x476f48
mov edx, 0x32
jmp 0x476f4d
mov edx, 0xc8
mov eax, esi
call fcn.00444b74
test al, al
jne 0x476f79
cmp dword [0x4c96e4], 8
jne 0x4776d3
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x476f73
cmp eax, dword [ebp + 8]
jne 0x4776d3
cmp dword [ebp + 0xc], 0
jne 0x476f95
cmp dword [ebp + 8], 0
jne 0x476f95
cmp dword [ebp + 0x14], 0
jne 0x476f95
cmp dword [ebp + 0x10], 0
jne 0x476f95
xor ecx, ecx
jmp 0x476f9a
mov ecx, 1
mov byte [ebp - 5], cl
cmp byte [0x4c9e60], 0
jne 0x476fb6
cmp byte [ebp - 5], 0
jne 0x476fb6
call fcn.00495aec
mov dword [0x4c9e2c], eax
cmp dword [ebp + 0xc], 0
jne 0x476fd0
cmp dword [ebp + 8], 0
jne 0x476fd0
mov dword [ebp + 8], 1
mov dword [ebp + 0xc], 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e3f8
mov edi, eax
cmp dword [0x4c96e4], 0
je 0x477087
cmp dword [0x4c96e0], 0
je 0x477087
cmp dword [ebp + 0x14], 0
jne 0x477087
cmp dword [ebp + 0x10], 0
jne 0x477087
mov dword [ebp - 0x214], 0x1e8
mov eax, dword [0x4b982c]
lea edx, [ebp - 0x1fc]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], 0x7b
mov dword [ebp - 0x208], 4
push 0x80
push edx
push eax
call sub.USER32.DLL_GetWindowTextA
push 0x4c9be8
lea ecx, [ebp - 0x1fc]
push ecx
call fcn.0048d70c
add esp, 8
test eax, eax
je 0x477087
lea eax, [ebp - 0x214]
push eax
push 1
call sub.SHELL32.DLL_Shell_NotifyIconA
push 0x1ff
lea edx, [ebp - 0x1fc]
push edx
push 0x4c9be8
call fcn.0048d9a8
add esp, 0xc
cmp byte [0x4c9e30], 0
je 0x47721b
cmp dword [0x4c96e0], 0
je 0x47721b
cmp esi, 1
jne 0x47721b
cmp edi, dword [0x4c9e5c]
je 0x47721b
mov eax, edi
shl eax, 4
mov ecx, 0x64
cdq
idiv ecx
mov dword [ebp - 0xc], eax
mov eax, dword [0x4c9e5c]
shl eax, 4
mov ecx, 0x64
cdq
idiv ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x47719e
lea edx, [ebp - 0x228]
push edx
push dword [0x4c96e0]
call sub.USER32.DLL_GetIconInfo
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 0x14], eax
push dword [ebp - 0x218]
push dword [ebp - 0x14]
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x18], eax
mov ebx, 0xf
jmp 0x47714a
push 0xffff
push ebx
push 8
push dword [ebp - 0x14]
call sub.GDI32.DLL_SetPixel
push 0xffff
push ebx
push 9
push dword [ebp - 0x14]
call sub.GDI32.DLL_SetPixel
push 0xffff
push ebx
push 0xa
push dword [ebp - 0x14]
call sub.GDI32.DLL_SetPixel
dec ebx
mov eax, 0x10
sub eax, dword [ebp - 0xc]
cmp ebx, eax
jge 0x477119
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call sub.GDI32.DLL_SelectObject
push dword [ebp - 0x14]
call sub.GDI32.DLL_DeleteDC
lea edx, [ebp - 0x228]
push edx
call sub.USER32.DLL_CreateIconIndirect
push dword [0x4c96e0]
mov ebx, eax
call sub.USER32.DLL_DestroyIcon
push dword [ebp - 0x21c]
mov dword [0x4c96e0], ebx
call sub.GDI32.DLL_DeleteObject
push dword [ebp - 0x218]
call sub.GDI32.DLL_DeleteObject
mov dword [ebp - 0x410], 0x1e8
mov eax, dword [0x4b982c]
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x408], 0x7b
mov dword [ebp - 0x404], 5
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
je 0x4771d6
or dword [ebp - 0x404], 2
mov dword [ebp - 0x400], 0x47b
mov ecx, dword [0x4c96e0]
mov dword [ebp - 0x3fc], ecx
push edi
mov eax, 0x2f8
call fcn.004116e0
push eax
lea edx, [ebp - 0x3f8]
push edx
call fcn.00490628
add esp, 0xc
lea ecx, [ebp - 0x410]
push ecx
push 1
call sub.SHELL32.DLL_Shell_NotifyIconA
mov dword [0x4c9e5c], edi
test esi, esi
jne 0x47727d
mov eax, dword [ebp + 0x10]
mov dword [0x4c9e3c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4c9e40], eax
mov edx, dword [ebp + 8]
mov dword [0x4c9e44], edx
mov edx, dword [ebp + 0xc]
mov dword [0x4c9e48], edx
cmp dword [0x4c96e4], 0
je 0x4772a1
cmp byte [0x4c9e60], 0
je 0x4772a1
cmp dword [ebp + 0x14], 0
jne 0x4772a1
cmp dword [ebp + 0x10], 0
jne 0x4772a1
cmp dword [ebp + 0xc], 0
jne 0x477276
cmp dword [ebp + 8], 0x10000
jb 0x4776d3
jmp 0x4772a1
jge 0x4772a1
jmp 0x4776d3
mov ecx, dword [ebp + 0x10]
mov dword [0x4c9e4c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [0x4c9e50], ecx
mov eax, dword [ebp + 8]
mov dword [0x4c9e54], eax
mov eax, dword [ebp + 0xc]
mov dword [0x4c9e58], eax
push edi
push str._4d__
lea edx, [ebp - 0x24]
push edx
call fcn.00490628
add esp, 0xc
test esi, esi
jne 0x4772d8
push 0x9e
push dword [0x4b982c]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
lea edx, [ebp - 0x24]
mov eax, 0x99
call fcn.00475bea
jmp 0x4772f7
push 0x9d
push dword [0x4b982c]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
lea edx, [ebp - 0x24]
mov eax, 0x98
call fcn.00475bea
test ebx, ebx
jne 0x477310
push 0x10
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.0048d5d8
add esp, 0xc
jmp 0x477332
lea eax, [ebp - 0x420]
push eax
push ebx
call sub.USER32.DLL_GetClientRect
push 2
lea edx, [ebp - 0x420]
push edx
push dword [0x4b982c]
push ebx
call sub.USER32.DLL_MapWindowPoints
cmp dword [ebp - 4], 0
jne 0x477347
push dword [0x4b982c]
call sub.USER32.DLL_GetDC
mov ebx, eax
jmp 0x47734a
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x47735c
cmp eax, dword [ebp + 8]
jbe 0x47736a
jmp 0x47735e
jle 0x47736a
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x14], ecx
xor edi, edi
cmp dword [0x4c96e4], 0
jne 0x4773a7
dec esi
jne 0x4773a7
push dword [0x4c9e38]
push dword [0x4c9e34]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e3f8
mov ecx, dword [ebp - 0x418]
sub ecx, dword [ebp - 0x420]
imul ecx
mov ecx, 0x64
cdq
idiv ecx
mov edi, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e3f8
mov ecx, dword [ebp - 0x418]
sub ecx, dword [ebp - 0x420]
imul ecx
mov ecx, 0x64
cdq
idiv ecx
mov esi, eax
cmp esi, edi
jge 0x4773d6
mov edi, esi
push dword [0x4c9e70]
push ebx
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x28], eax
push dword [0x4c9e8c]
push ebx
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x414]
dec eax
push eax
mov edx, dword [ebp - 0x420]
add edx, esi
push edx
mov ecx, dword [ebp - 0x41c]
inc ecx
push ecx
mov eax, dword [ebp - 0x420]
add eax, edi
inc eax
cmp edi, 1
jle 0x477422
mov edx, 2
jmp 0x477424
xor edx, edx
sub eax, edx
push eax
push ebx
call sub.GDI32.DLL_Rectangle
test edi, edi
jle 0x47746c
push dword [0x4c9e90]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [0x4c9e7c]
push ebx
call sub.GDI32.DLL_SelectObject
mov ecx, dword [ebp - 0x414]
dec ecx
push ecx
mov eax, dword [ebp - 0x420]
mov edx, eax
add edx, edi
push edx
mov ecx, dword [ebp - 0x41c]
inc ecx
inc eax
push ecx
push eax
push ebx
call sub.GDI32.DLL_Rectangle
push dword [0x4c9e74]
push ebx
call sub.GDI32.DLL_SelectObject
push 0
push dword [ebp - 0x41c]
test esi, esi
jle 0x477489
lea eax, [esi - 1]
jmp 0x47748b
xor eax, eax
add eax, dword [ebp - 0x420]
push eax
push ebx
call sub.GDI32.DLL_MoveToEx
push dword [ebp - 0x41c]
mov edx, dword [ebp - 0x420]
add edx, edi
push edx
push ebx
call sub.GDI32.DLL_LineTo
test edi, edi
jle 0x4774cf
push dword [0x4c9e78]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push ebx
call sub.GDI32.DLL_LineTo
mov ecx, dword [ebp - 0x414]
dec ecx
push ecx
push dword [ebp - 0x420]
push ebx
call sub.GDI32.DLL_LineTo
push dword [0x4c9e68]
push ebx
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 0x414]
dec eax
push eax
push dword [ebp - 0x418]
push ebx
call sub.GDI32.DLL_LineTo
push dword [0x4c9e84]
push ebx
call sub.GDI32.DLL_SelectObject
mov edx, dword [ebp - 0x41c]
inc edx
push edx
push dword [ebp - 0x418]
push ebx
call sub.GDI32.DLL_LineTo
push 0
push dword [ebp - 0x414]
mov ecx, dword [ebp - 0x420]
inc ecx
push ecx
push ebx
call sub.GDI32.DLL_MoveToEx
push dword [ebp - 0x414]
mov eax, dword [ebp - 0x418]
inc eax
push eax
push ebx
call sub.GDI32.DLL_LineTo
push dword [0x4c9e6c]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [0x4c9e88]
push ebx
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x477577
cmp eax, dword [ebp + 8]
jae 0x4775a3
jmp 0x477579
jge 0x4775a3
mov ecx, dword [ebp - 0x414]
add ecx, 0xfffffffe
push ecx
mov eax, dword [ebp - 0x418]
dec eax
push eax
mov edx, dword [ebp - 0x41c]
inc edx
push edx
mov ecx, dword [ebp - 0x420]
add ecx, esi
inc ecx
push ecx
push ebx
call sub.GDI32.DLL_Rectangle
test esi, esi
jle 0x477626
mov eax, dword [ebp - 0x418]
sub eax, dword [ebp - 0x420]
dec eax
cmp esi, eax
jge 0x477626
push dword [0x4c9e68]
push ebx
call sub.GDI32.DLL_SelectObject
push 0
push dword [ebp - 0x41c]
mov edx, dword [ebp - 0x420]
add edx, esi
push edx
push ebx
call sub.GDI32.DLL_MoveToEx
push dword [ebp - 0x414]
mov ecx, dword [ebp - 0x420]
add ecx, esi
push ecx
push ebx
call sub.GDI32.DLL_LineTo
push dword [0x4c9e84]
push ebx
call sub.GDI32.DLL_SelectObject
push 0
push dword [ebp - 0x414]
mov eax, dword [ebp - 0x420]
add eax, esi
push eax
push ebx
call sub.GDI32.DLL_MoveToEx
push dword [ebp - 0x414]
add edi, dword [ebp - 0x420]
push edi
push ebx
call sub.GDI32.DLL_LineTo
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x477638
cmp eax, dword [ebp + 8]
jae 0x4776a2
jmp 0x47763a
jge 0x4776a2
push dword [0x4c9e80]
push ebx
call sub.GDI32.DLL_SelectObject
push 0
push dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x420]
add ecx, esi
inc ecx
push ecx
push ebx
call sub.GDI32.DLL_MoveToEx
push dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
dec eax
push eax
push ebx
call sub.GDI32.DLL_LineTo
mov edx, dword [ebp - 0x414]
add edx, 0xfffffffe
push edx
mov ecx, dword [ebp - 0x418]
dec ecx
push ecx
push ebx
call sub.GDI32.DLL_LineTo
mov eax, dword [ebp - 0x414]
add eax, 0xfffffffe
push eax
add esi, dword [ebp - 0x420]
inc esi
push esi
push ebx
call sub.GDI32.DLL_LineTo
push dword [ebp - 0x28]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [ebp - 0x2c]
push ebx
call sub.GDI32.DLL_SelectObject
cmp dword [ebp - 4], 0
jne 0x4776c6
push ebx
push dword [0x4b982c]
call sub.USER32.DLL_ReleaseDC
cmp byte [ebp - 5], 0
je 0x4776d3
mov byte [0x4c9e60], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10