Function at 0x477030
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 0x47708a
cmp byte [0x4c7ea0], 0
jne 0x47708a
cmp byte [0x4c7ea1], 0
jne 0x47708a
cmp dword [0x4b989c], 0
je 0x47708a
mov eax, dword [0x4c7754]
cmp eax, 1
je 0x477072
cmp eax, 2
jne 0x47708a
mov cl, 1
mov edx, 0xa2
mov eax, dword [0x4b989c]
call fcn.004686f4
mov byte [0x4c7ea0], 1
cmp dword [0x4b989c], 0
je 0x477863
cmp esi, 1
jne 0x4770ad
cmp byte [0x4c7ea0], 0
jne 0x4770ad
test bl, bl
je 0x477863
cmp dword [0x4c7754], 7
je 0x477863
cmp dword [0x4c7754], 0xa
je 0x477863
cmp dword [ebp - 4], 0
jne 0x477109
test esi, esi
jne 0x4770d8
mov edx, 0x32
jmp 0x4770dd
mov edx, 0xc8
mov eax, esi
call fcn.00444c28
test al, al
jne 0x477109
cmp dword [0x4c7754], 8
jne 0x477863
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x477103
cmp eax, dword [ebp + 8]
jne 0x477863
cmp dword [ebp + 0xc], 0
jne 0x477125
cmp dword [ebp + 8], 0
jne 0x477125
cmp dword [ebp + 0x14], 0
jne 0x477125
cmp dword [ebp + 0x10], 0
jne 0x477125
xor ecx, ecx
jmp 0x47712a
mov ecx, 1
mov byte [ebp - 5], cl
cmp byte [0x4c7ed0], 0
jne 0x477146
cmp byte [ebp - 5], 0
jne 0x477146
call fcn.00495d7c
mov dword [0x4c7e9c], eax
cmp dword [ebp + 0xc], 0
jne 0x477160
cmp dword [ebp + 8], 0
jne 0x477160
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.0040e400
mov edi, eax
cmp dword [0x4c7754], 0
je 0x477217
cmp dword [0x4c7750], 0
je 0x477217
cmp dword [ebp + 0x14], 0
jne 0x477217
cmp dword [ebp + 0x10], 0
jne 0x477217
mov dword [ebp - 0x214], 0x1e8
mov eax, dword [0x4b989c]
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 0x4c7c58
lea ecx, [ebp - 0x1fc]
push ecx
call fcn.0048d89c
add esp, 8
test eax, eax
je 0x477217
lea eax, [ebp - 0x214]
push eax
push 1
call sub.SHELL32.DLL_Shell_NotifyIconA
push 0x1ff
lea edx, [ebp - 0x1fc]
push edx
push 0x4c7c58
call fcn.0048db38
add esp, 0xc
cmp byte [0x4c7ea0], 0
je 0x4773ab
cmp dword [0x4c7750], 0
je 0x4773ab
cmp esi, 1
jne 0x4773ab
cmp edi, dword [0x4c7ecc]
je 0x4773ab
mov eax, edi
shl eax, 4
mov ecx, 0x64
cdq
idiv ecx
mov dword [ebp - 0xc], eax
mov eax, dword [0x4c7ecc]
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 0x47732e
lea edx, [ebp - 0x228]
push edx
push dword [0x4c7750]
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 0x4772da
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 0x4772a9
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 [0x4c7750]
mov ebx, eax
call sub.USER32.DLL_DestroyIcon
push dword [ebp - 0x21c]
mov dword [0x4c7750], ebx
call sub.GDI32.DLL_DeleteObject
push dword [ebp - 0x218]
call sub.GDI32.DLL_DeleteObject
mov dword [ebp - 0x410], 0x1e8
mov eax, dword [0x4b989c]
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 0x477366
or dword [ebp - 0x404], 2
mov dword [ebp - 0x400], 0x47b
mov ecx, dword [0x4c7750]
mov dword [ebp - 0x3fc], ecx
push edi
mov eax, 0x2f8
call fcn.004116e8
push eax
lea edx, [ebp - 0x3f8]
push edx
call fcn.004908b8
add esp, 0xc
lea ecx, [ebp - 0x410]
push ecx
push 1
call sub.SHELL32.DLL_Shell_NotifyIconA
mov dword [0x4c7ecc], edi
test esi, esi
jne 0x47740d
mov eax, dword [ebp + 0x10]
mov dword [0x4c7eac], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4c7eb0], eax
mov edx, dword [ebp + 8]
mov dword [0x4c7eb4], edx
mov edx, dword [ebp + 0xc]
mov dword [0x4c7eb8], edx
cmp dword [0x4c7754], 0
je 0x477431
cmp byte [0x4c7ed0], 0
je 0x477431
cmp dword [ebp + 0x14], 0
jne 0x477431
cmp dword [ebp + 0x10], 0
jne 0x477431
cmp dword [ebp + 0xc], 0
jne 0x477406
cmp dword [ebp + 8], 0x10000
jb 0x477863
jmp 0x477431
jge 0x477431
jmp 0x477863
mov ecx, dword [ebp + 0x10]
mov dword [0x4c7ebc], ecx
mov ecx, dword [ebp + 0x14]
mov dword [0x4c7ec0], ecx
mov eax, dword [ebp + 8]
mov dword [0x4c7ec4], eax
mov eax, dword [ebp + 0xc]
mov dword [0x4c7ec8], eax
push edi
push str._4d__
lea edx, [ebp - 0x24]
push edx
call fcn.004908b8
add esp, 0xc
test esi, esi
jne 0x477468
push 0x9e
push dword [0x4b989c]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
lea edx, [ebp - 0x24]
mov eax, 0x99
call fcn.00475d7a
jmp 0x477487
push 0x9d
push dword [0x4b989c]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
lea edx, [ebp - 0x24]
mov eax, 0x98
call fcn.00475d7a
test ebx, ebx
jne 0x4774a0
push 0x10
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.0048d768
add esp, 0xc
jmp 0x4774c2
lea eax, [ebp - 0x420]
push eax
push ebx
call sub.USER32.DLL_GetClientRect
push 2
lea edx, [ebp - 0x420]
push edx
push dword [0x4b989c]
push ebx
call sub.USER32.DLL_MapWindowPoints
cmp dword [ebp - 4], 0
jne 0x4774d7
push dword [0x4b989c]
call sub.USER32.DLL_GetDC
mov ebx, eax
jmp 0x4774da
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x4774ec
cmp eax, dword [ebp + 8]
jbe 0x4774fa
jmp 0x4774ee
jle 0x4774fa
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 [0x4c7754], 0
jne 0x477537
dec esi
jne 0x477537
push dword [0x4c7ea8]
push dword [0x4c7ea4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e400
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.0040e400
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 0x477566
mov edi, esi
push dword [0x4c7ee0]
push ebx
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x28], eax
push dword [0x4c7efc]
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 0x4775b2
mov edx, 2
jmp 0x4775b4
xor edx, edx
sub eax, edx
push eax
push ebx
call sub.GDI32.DLL_Rectangle
test edi, edi
jle 0x4775fc
push dword [0x4c7f00]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [0x4c7eec]
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 [0x4c7ee4]
push ebx
call sub.GDI32.DLL_SelectObject
push 0
push dword [ebp - 0x41c]
test esi, esi
jle 0x477619
lea eax, [esi - 1]
jmp 0x47761b
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 0x47765f
push dword [0x4c7ee8]
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 [0x4c7ed8]
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 [0x4c7ef4]
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 [0x4c7edc]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [0x4c7ef8]
push ebx
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x477707
cmp eax, dword [ebp + 8]
jae 0x477733
jmp 0x477709
jge 0x477733
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 0x4777b6
mov eax, dword [ebp - 0x418]
sub eax, dword [ebp - 0x420]
dec eax
cmp esi, eax
jge 0x4777b6
push dword [0x4c7ed8]
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 [0x4c7ef4]
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 0x4777c8
cmp eax, dword [ebp + 8]
jae 0x477832
jmp 0x4777ca
jge 0x477832
push dword [0x4c7ef0]
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 0x477856
push ebx
push dword [0x4b989c]
call sub.USER32.DLL_ReleaseDC
cmp byte [ebp - 5], 0
je 0x477863
mov byte [0x4c7ed0], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10