Function at 0x476bf0
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 0x476c4a
cmp byte [0x4c9e28], 0
jne 0x476c4a
cmp byte [0x4c9e29], 0
jne 0x476c4a
cmp dword [0x4b9824], 0
je 0x476c4a
mov eax, dword [0x4c96dc]
cmp eax, 1
je 0x476c32
cmp eax, 2
jne 0x476c4a
mov cl, 1
mov edx, 0xa2
mov eax, dword [0x4b9824]
call fcn.004683c8
mov byte [0x4c9e28], 1
cmp dword [0x4b9824], 0
je 0x477423
cmp esi, 1
jne 0x476c6d
cmp byte [0x4c9e28], 0
jne 0x476c6d
test bl, bl
je 0x477423
cmp dword [0x4c96dc], 7
je 0x477423
cmp dword [0x4c96dc], 0xa
je 0x477423
cmp dword [ebp - 4], 0
jne 0x476cc9
test esi, esi
jne 0x476c98
mov edx, 0x32
jmp 0x476c9d
mov edx, 0xc8
mov eax, esi
call fcn.00444c40
test al, al
jne 0x476cc9
cmp dword [0x4c96dc], 8
jne 0x477423
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x476cc3
cmp eax, dword [ebp + 8]
jne 0x477423
cmp dword [ebp + 0xc], 0
jne 0x476ce5
cmp dword [ebp + 8], 0
jne 0x476ce5
cmp dword [ebp + 0x14], 0
jne 0x476ce5
cmp dword [ebp + 0x10], 0
jne 0x476ce5
xor ecx, ecx
jmp 0x476cea
mov ecx, 1
mov byte [ebp - 5], cl
cmp byte [0x4c9e58], 0
jne 0x476d06
cmp byte [ebp - 5], 0
jne 0x476d06
call fcn.004957b8
mov dword [0x4c9e24], eax
cmp dword [ebp + 0xc], 0
jne 0x476d20
cmp dword [ebp + 8], 0
jne 0x476d20
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.0040e4d0
mov edi, eax
cmp dword [0x4c96dc], 0
je 0x476dd7
cmp dword [0x4c96d8], 0
je 0x476dd7
cmp dword [ebp + 0x14], 0
jne 0x476dd7
cmp dword [ebp + 0x10], 0
jne 0x476dd7
mov dword [ebp - 0x214], 0x1e8
mov eax, dword [0x4b9824]
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 0x4c9be0
lea ecx, [ebp - 0x1fc]
push ecx
call fcn.0048d3d8
add esp, 8
test eax, eax
je 0x476dd7
lea eax, [ebp - 0x214]
push eax
push 1
call sub.SHELL32.DLL_Shell_NotifyIconA
push 0x1ff
lea edx, [ebp - 0x1fc]
push edx
push 0x4c9be0
call fcn.0048d674
add esp, 0xc
cmp byte [0x4c9e28], 0
je 0x476f6b
cmp dword [0x4c96d8], 0
je 0x476f6b
cmp esi, 1
jne 0x476f6b
cmp edi, dword [0x4c9e54]
je 0x476f6b
mov eax, edi
shl eax, 4
mov ecx, 0x64
cdq
idiv ecx
mov dword [ebp - 0xc], eax
mov eax, dword [0x4c9e54]
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 0x476eee
lea edx, [ebp - 0x228]
push edx
push dword [0x4c96d8]
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 0x476e9a
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 0x476e69
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 [0x4c96d8]
mov ebx, eax
call sub.USER32.DLL_DestroyIcon
push dword [ebp - 0x21c]
mov dword [0x4c96d8], ebx
call sub.GDI32.DLL_DeleteObject
push dword [ebp - 0x218]
call sub.GDI32.DLL_DeleteObject
mov dword [ebp - 0x410], 0x1e8
mov eax, dword [0x4b9824]
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 0x476f26
or dword [ebp - 0x404], 2
mov dword [ebp - 0x400], 0x47b
mov ecx, dword [0x4c96d8]
mov dword [ebp - 0x3fc], ecx
push edi
mov eax, 0x2f8
call fcn.004117b8
push eax
lea edx, [ebp - 0x3f8]
push edx
call fcn.004902f4
add esp, 0xc
lea ecx, [ebp - 0x410]
push ecx
push 1
call sub.SHELL32.DLL_Shell_NotifyIconA
mov dword [0x4c9e54], edi
test esi, esi
jne 0x476fcd
mov eax, dword [ebp + 0x10]
mov dword [0x4c9e34], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4c9e38], eax
mov edx, dword [ebp + 8]
mov dword [0x4c9e3c], edx
mov edx, dword [ebp + 0xc]
mov dword [0x4c9e40], edx
cmp dword [0x4c96dc], 0
je 0x476ff1
cmp byte [0x4c9e58], 0
je 0x476ff1
cmp dword [ebp + 0x14], 0
jne 0x476ff1
cmp dword [ebp + 0x10], 0
jne 0x476ff1
cmp dword [ebp + 0xc], 0
jne 0x476fc6
cmp dword [ebp + 8], 0x10000
jb 0x477423
jmp 0x476ff1
jge 0x476ff1
jmp 0x477423
mov ecx, dword [ebp + 0x10]
mov dword [0x4c9e44], ecx
mov ecx, dword [ebp + 0x14]
mov dword [0x4c9e48], ecx
mov eax, dword [ebp + 8]
mov dword [0x4c9e4c], eax
mov eax, dword [ebp + 0xc]
mov dword [0x4c9e50], eax
push edi
push 0x4a1aa0
lea edx, [ebp - 0x24]
push edx
call fcn.004902f4
add esp, 0xc
test esi, esi
jne 0x477028
push 0x9e
push dword [0x4b9824]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
lea edx, [ebp - 0x24]
mov eax, 0x99
call fcn.0047593e
jmp 0x477047
push 0x9d
push dword [0x4b9824]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
lea edx, [ebp - 0x24]
mov eax, 0x98
call fcn.0047593e
test ebx, ebx
jne 0x477060
push 0x10
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.0048d2a4
add esp, 0xc
jmp 0x477082
lea eax, [ebp - 0x420]
push eax
push ebx
call sub.USER32.DLL_GetClientRect
push 2
lea edx, [ebp - 0x420]
push edx
push dword [0x4b9824]
push ebx
call sub.USER32.DLL_MapWindowPoints
cmp dword [ebp - 4], 0
jne 0x477097
push dword [0x4b9824]
call sub.USER32.DLL_GetDC
mov ebx, eax
jmp 0x47709a
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x4770ac
cmp eax, dword [ebp + 8]
jbe 0x4770ba
jmp 0x4770ae
jle 0x4770ba
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 [0x4c96dc], 0
jne 0x4770f7
dec esi
jne 0x4770f7
push dword [0x4c9e30]
push dword [0x4c9e2c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e4d0
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.0040e4d0
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 0x477126
mov edi, esi
push dword [0x4c9e68]
push ebx
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x28], eax
push dword [0x4c9e84]
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 0x477172
mov edx, 2
jmp 0x477174
xor edx, edx
sub eax, edx
push eax
push ebx
call sub.GDI32.DLL_Rectangle
test edi, edi
jle 0x4771bc
push dword [0x4c9e88]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [0x4c9e74]
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 [0x4c9e6c]
push ebx
call sub.GDI32.DLL_SelectObject
push 0
push dword [ebp - 0x41c]
test esi, esi
jle 0x4771d9
lea eax, [esi - 1]
jmp 0x4771db
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 0x47721f
push dword [0x4c9e70]
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 [0x4c9e60]
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 [0x4c9e7c]
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 [0x4c9e64]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [0x4c9e80]
push ebx
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x4772c7
cmp eax, dword [ebp + 8]
jae 0x4772f3
jmp 0x4772c9
jge 0x4772f3
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 0x477376
mov eax, dword [ebp - 0x418]
sub eax, dword [ebp - 0x420]
dec eax
cmp esi, eax
jge 0x477376
push dword [0x4c9e60]
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 [0x4c9e7c]
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 0x477388
cmp eax, dword [ebp + 8]
jae 0x4773f2
jmp 0x47738a
jge 0x4773f2
push dword [0x4c9e78]
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 0x477416
push ebx
push dword [0x4b9824]
call sub.USER32.DLL_ReleaseDC
cmp byte [ebp - 5], 0
je 0x477423
mov byte [0x4c9e58], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10