Function at 0x47ded4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x47def7
mov edx, dword [0x4c244c]
jmp 0x47def9
mov edx, eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], 1
jne 0x47df42
cmp byte [0x4d16c8], 0
jne 0x47df42
cmp byte [0x4d16c9], 0
jne 0x47df42
cmp dword [0x4c244c], 0
je 0x47df42
mov eax, dword [0x4d0f7c]
cmp eax, 1
je 0x47df2c
cmp eax, 2
jne 0x47df42
mov cl, 1
mov edx, 0xa2
mov eax, dword [ebp - 0xc]
call fcn.0046f174
mov byte [0x4d16c8], 1
cmp dword [ebp - 0xc], 0
je 0x47e7f1
cmp dword [ebp - 4], 1
jne 0x47df63
cmp byte [0x4d16c8], 0
jne 0x47df63
test bl, bl
je 0x47e7f1
cmp dword [0x4d0f7c], 7
je 0x47e7f1
cmp dword [0x4d0f7c], 0xa
je 0x47e7f1
cmp dword [ebp - 8], 0
jne 0x47dfc2
cmp dword [ebp - 4], 0
jne 0x47df90
mov edx, 0x32
jmp 0x47df95
mov edx, 0xc8
mov eax, dword [ebp - 4]
call fcn.00448d94
test al, al
jne 0x47dfc2
cmp dword [0x4d0f7c], 8
jne 0x47e7f1
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 0x10]
jne 0x47dfbc
cmp eax, dword [ebp + 0xc]
jne 0x47e7f1
cmp dword [ebp + 0x10], 0
jne 0x47dfde
cmp dword [ebp + 0xc], 0
jne 0x47dfde
cmp dword [ebp + 0x18], 0
jne 0x47dfde
cmp dword [ebp + 0x14], 0
jne 0x47dfde
xor ecx, ecx
jmp 0x47dfe3
mov ecx, 1
mov byte [ebp - 0xd], cl
cmp byte [0x4d16f8], 0
jne 0x47dfff
cmp byte [ebp - 0xd], 0
jne 0x47dfff
call fcn.0049d37c
mov dword [0x4d16c4], eax
cmp dword [ebp + 0x10], 0
jne 0x47e019
cmp dword [ebp + 0xc], 0
jne 0x47e019
mov dword [ebp + 0xc], 1
mov dword [ebp + 0x10], 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040ebdc
mov dword [ebp - 0x14], eax
cmp dword [0x4d0f7c], 0
je 0x47e0d1
cmp dword [0x4d0f78], 0
je 0x47e0d1
cmp dword [ebp + 0x18], 0
jne 0x47e0d1
cmp dword [ebp + 0x14], 0
jne 0x47e0d1
mov dword [ebp - 0x234], 0x1e8
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], 0x7b
mov dword [ebp - 0x228], 4
push 0x80
push eax
push dword [ebp - 0xc]
call sub.USER32.DLL_GetWindowTextA
push 0x4d1480
lea edx, [ebp - 0x21c]
push edx
call fcn.00494f0c
add esp, 8
test eax, eax
je 0x47e0d1
lea ecx, [ebp - 0x234]
push ecx
push 1
call sub.SHELL32.DLL_Shell_NotifyIconA
push 0x1ff
lea eax, [ebp - 0x21c]
push eax
push 0x4d1480
call fcn.00495138
add esp, 0xc
cmp byte [0x4d16c8], 0
je 0x47e33f
cmp dword [0x4d0f78], 0
je 0x47e33f
cmp dword [ebp - 4], 1
jne 0x47e33f
mov edx, dword [0x4d16f4]
cmp edx, dword [ebp - 0x14]
je 0x47e33f
mov eax, dword [ebp - 0x14]
shl eax, 4
mov ecx, 0x64
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, dword [0x4d16f4]
shl eax, 4
mov ecx, 0x64
cdq
idiv ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
je 0x47e2c0
call fcn.0046f108
cmp eax, 0x20
setl dl
and edx, 1
mov byte [ebp - 0x1d], dl
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 0x24], eax
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x248]
push ecx
push dword [0x4d0f78]
call sub.USER32.DLL_GetIconInfo
mov ebx, dword [ebp - 0x244]
mov esi, dword [ebp - 0x240]
push dword [ebp - 0x238]
push dword [ebp - 0x24]
add ebx, ebx
add esi, esi
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x260]
push eax
push 0x18
push dword [ebp - 0x238]
call sub.GDI32.DLL_GetObjectA
push 0
movzx edx, word [ebp - 0x24e]
push edx
movzx ecx, word [ebp - 0x250]
push ecx
push esi
push ebx
call sub.GDI32.DLL_CreateBitmap
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x34], eax
cmp byte [ebp - 0x1d], 0
jne 0x47e1d9
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x238], eax
cmp dword [0x4c2d94], 0xffffffff
setne dl
and edx, 1
test dl, dl
je 0x47e1f1
mov edi, 1
jmp 0x47e1f3
xor edi, edi
mov esi, 0xf
xor ebx, ebx
mov eax, 8
sub eax, edi
cmp ebx, eax
jl 0x47e239
mov edx, 0xa
sub edx, edi
cmp ebx, edx
jg 0x47e239
mov ecx, 0x10
sub ecx, dword [ebp - 0x18]
cmp esi, ecx
jl 0x47e239
push 0xffff
push esi
push ebx
cmp byte [ebp - 0x1d], 0
je 0x47e22e
mov eax, dword [ebp - 0x24]
jmp 0x47e231
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.DLL_SetPixel
jmp 0x47e24e
push esi
push ebx
push dword [ebp - 0x24]
call sub.GDI32.DLL_GetPixel
push eax
push esi
push ebx
push dword [ebp - 0x28]
call sub.GDI32.DLL_SetPixel
inc ebx
cmp ebx, 0x10
jl 0x47e1fa
dec esi
test esi, esi
jge 0x47e1f8
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call sub.GDI32.DLL_SelectObject
push dword [ebp - 0x34]
push dword [ebp - 0x28]
call sub.GDI32.DLL_SelectObject
push dword [ebp - 0x24]
call sub.GDI32.DLL_DeleteDC
push dword [ebp - 0x28]
call sub.GDI32.DLL_DeleteDC
lea edx, [ebp - 0x248]
push edx
call sub.USER32.DLL_CreateIconIndirect
mov dword [ebp - 0x38], eax
push dword [0x4d0f78]
call sub.USER32.DLL_DestroyIcon
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x23c]
mov dword [0x4d0f78], ecx
call sub.GDI32.DLL_DeleteObject
push dword [ebp - 0x238]
call sub.GDI32.DLL_DeleteObject
push dword [ebp - 0x30]
call sub.GDI32.DLL_DeleteObject
mov dword [ebp - 0x448], 0x1e8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], 0x7b
mov dword [ebp - 0x43c], 5
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x1c]
je 0x47e2f6
or dword [ebp - 0x43c], 2
mov dword [ebp - 0x438], 0x47b
mov ecx, dword [0x4d0f78]
mov dword [ebp - 0x434], ecx
push dword [ebp - 0x14]
mov eax, 0x2f8
call fcn.0041202c
push eax
lea edx, [ebp - 0x430]
push edx
call fcn.00497eb8
add esp, 0xc
lea ecx, [ebp - 0x448]
push ecx
push 1
call sub.SHELL32.DLL_Shell_NotifyIconA
mov eax, dword [ebp - 0x14]
mov dword [0x4d16f4], eax
cmp dword [ebp - 4], 0
jne 0x47e3a3
mov edx, dword [ebp + 0x14]
mov dword [0x4d16d4], edx
mov edx, dword [ebp + 0x18]
mov dword [0x4d16d8], edx
mov ecx, dword [ebp + 0xc]
mov dword [0x4d16dc], ecx
mov ecx, dword [ebp + 0x10]
mov dword [0x4d16e0], ecx
cmp dword [0x4d0f7c], 0
je 0x47e3c7
cmp byte [0x4d16f8], 0
je 0x47e3c7
cmp dword [ebp + 0x18], 0
jne 0x47e3c7
cmp dword [ebp + 0x14], 0
jne 0x47e3c7
cmp dword [ebp + 0x10], 0
jne 0x47e39c
cmp dword [ebp + 0xc], 0x10000
jb 0x47e7f1
jmp 0x47e3c7
jge 0x47e3c7
jmp 0x47e7f1
mov eax, dword [ebp + 0x14]
mov dword [0x4d16e4], eax
mov eax, dword [ebp + 0x18]
mov dword [0x4d16e8], eax
mov edx, dword [ebp + 0xc]
mov dword [0x4d16ec], edx
mov edx, dword [ebp + 0x10]
mov dword [0x4d16f0], edx
push dword [ebp - 0x14]
push str._4d__
lea ecx, [ebp - 0x44]
push ecx
call fcn.00497eb8
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x47e3ff
push 0x9e
push dword [ebp - 0xc]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
lea edx, [ebp - 0x44]
mov eax, 0x99
call fcn.0047cc12
jmp 0x47e41b
push 0x9d
push dword [ebp - 0xc]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
lea edx, [ebp - 0x44]
mov eax, 0x98
call fcn.0047cc12
test ebx, ebx
jne 0x47e434
push 0x10
push 0
lea ecx, [ebp - 0x458]
push ecx
call fcn.00494dd8
add esp, 0xc
jmp 0x47e453
lea eax, [ebp - 0x458]
push eax
push ebx
call sub.USER32.DLL_GetClientRect
push 2
lea edx, [ebp - 0x458]
push edx
push dword [ebp - 0xc]
push ebx
call sub.USER32.DLL_MapWindowPoints
cmp dword [ebp - 8], 0
jne 0x47e465
push dword [ebp - 0xc]
call sub.USER32.DLL_GetDC
mov ebx, eax
jmp 0x47e468
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 0x10]
jne 0x47e47a
cmp eax, dword [ebp + 0xc]
jbe 0x47e488
jmp 0x47e47c
jle 0x47e488
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x18], ecx
xor edi, edi
cmp dword [0x4d0f7c], 0
jne 0x47e4c8
cmp dword [ebp - 4], 1
jne 0x47e4c8
push dword [0x4d16d0]
push dword [0x4d16cc]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040ebdc
mov ecx, dword [ebp - 0x450]
sub ecx, dword [ebp - 0x458]
imul ecx
mov ecx, 0x64
cdq
idiv ecx
mov edi, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040ebdc
mov ecx, dword [ebp - 0x450]
sub ecx, dword [ebp - 0x458]
imul ecx
mov ecx, 0x64
cdq
idiv ecx
mov esi, eax
cmp esi, edi
jge 0x47e4f7
mov edi, esi
push dword [0x4d1708]
push ebx
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x48], eax
push dword [0x4d1724]
push ebx
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44c]
dec eax
push eax
mov edx, dword [ebp - 0x458]
add edx, esi
push edx
mov ecx, dword [ebp - 0x454]
inc ecx
push ecx
mov eax, dword [ebp - 0x458]
add eax, edi
inc eax
cmp edi, 1
jle 0x47e543
mov edx, 2
jmp 0x47e545
xor edx, edx
sub eax, edx
push eax
push ebx
call sub.GDI32.DLL_Rectangle
test edi, edi
jle 0x47e58d
push dword [0x4d1728]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [0x4d1714]
push ebx
call sub.GDI32.DLL_SelectObject
mov ecx, dword [ebp - 0x44c]
dec ecx
push ecx
mov eax, dword [ebp - 0x458]
mov edx, eax
add edx, edi
push edx
mov ecx, dword [ebp - 0x454]
inc ecx
inc eax
push ecx
push eax
push ebx
call sub.GDI32.DLL_Rectangle
push dword [0x4d170c]
push ebx
call sub.GDI32.DLL_SelectObject
push 0
push dword [ebp - 0x454]
test esi, esi
jle 0x47e5aa
lea eax, [esi - 1]
jmp 0x47e5ac
xor eax, eax
add eax, dword [ebp - 0x458]
push eax
push ebx
call sub.GDI32.DLL_MoveToEx
push dword [ebp - 0x454]
mov edx, dword [ebp - 0x458]
add edx, edi
push edx
push ebx
call sub.GDI32.DLL_LineTo
test edi, edi
jle 0x47e5f0
push dword [0x4d1710]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [ebp - 0x454]
push dword [ebp - 0x458]
push ebx
call sub.GDI32.DLL_LineTo
mov ecx, dword [ebp - 0x44c]
dec ecx
push ecx
push dword [ebp - 0x458]
push ebx
call sub.GDI32.DLL_LineTo
push dword [0x4d1700]
push ebx
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 0x44c]
dec eax
push eax
push dword [ebp - 0x450]
push ebx
call sub.GDI32.DLL_LineTo
push dword [0x4d171c]
push ebx
call sub.GDI32.DLL_SelectObject
mov edx, dword [ebp - 0x454]
inc edx
push edx
push dword [ebp - 0x450]
push ebx
call sub.GDI32.DLL_LineTo
push 0
push dword [ebp - 0x44c]
mov ecx, dword [ebp - 0x458]
inc ecx
push ecx
push ebx
call sub.GDI32.DLL_MoveToEx
push dword [ebp - 0x44c]
mov eax, dword [ebp - 0x450]
inc eax
push eax
push ebx
call sub.GDI32.DLL_LineTo
push dword [0x4d1704]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [0x4d1720]
push ebx
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 0x10]
jne 0x47e698
cmp eax, dword [ebp + 0xc]
jae 0x47e6c4
jmp 0x47e69a
jge 0x47e6c4
mov ecx, dword [ebp - 0x44c]
add ecx, 0xfffffffe
push ecx
mov eax, dword [ebp - 0x450]
dec eax
push eax
mov edx, dword [ebp - 0x454]
inc edx
push edx
mov ecx, dword [ebp - 0x458]
add ecx, esi
inc ecx
push ecx
push ebx
call sub.GDI32.DLL_Rectangle
test esi, esi
jle 0x47e747
mov eax, dword [ebp - 0x450]
sub eax, dword [ebp - 0x458]
dec eax
cmp esi, eax
jge 0x47e747
push dword [0x4d1700]
push ebx
call sub.GDI32.DLL_SelectObject
push 0
push dword [ebp - 0x454]
mov edx, dword [ebp - 0x458]
add edx, esi
push edx
push ebx
call sub.GDI32.DLL_MoveToEx
push dword [ebp - 0x44c]
mov ecx, dword [ebp - 0x458]
add ecx, esi
push ecx
push ebx
call sub.GDI32.DLL_LineTo
push dword [0x4d171c]
push ebx
call sub.GDI32.DLL_SelectObject
push 0
push dword [ebp - 0x44c]
mov eax, dword [ebp - 0x458]
add eax, esi
push eax
push ebx
call sub.GDI32.DLL_MoveToEx
push dword [ebp - 0x44c]
add edi, dword [ebp - 0x458]
push edi
push ebx
call sub.GDI32.DLL_LineTo
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 0x10]
jne 0x47e759
cmp eax, dword [ebp + 0xc]
jae 0x47e7c3
jmp 0x47e75b
jge 0x47e7c3
push dword [0x4d1718]
push ebx
call sub.GDI32.DLL_SelectObject
push 0
push dword [ebp - 0x454]
mov ecx, dword [ebp - 0x458]
add ecx, esi
inc ecx
push ecx
push ebx
call sub.GDI32.DLL_MoveToEx
push dword [ebp - 0x454]
mov eax, dword [ebp - 0x450]
dec eax
push eax
push ebx
call sub.GDI32.DLL_LineTo
mov edx, dword [ebp - 0x44c]
add edx, 0xfffffffe
push edx
mov ecx, dword [ebp - 0x450]
dec ecx
push ecx
push ebx
call sub.GDI32.DLL_LineTo
mov eax, dword [ebp - 0x44c]
add eax, 0xfffffffe
push eax
add esi, dword [ebp - 0x458]
inc esi
push esi
push ebx
call sub.GDI32.DLL_LineTo
push dword [ebp - 0x48]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [ebp - 0x4c]
push ebx
call sub.GDI32.DLL_SelectObject
cmp dword [ebp - 8], 0
jne 0x47e7e4
push ebx
push dword [ebp - 0xc]
call sub.USER32.DLL_ReleaseDC
cmp byte [ebp - 0xd], 0
je 0x47e7f1
mov byte [0x4d16f8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14