Function at 0x477590
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa9c
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 0x4775b3
mov edx, dword [0x4cfe40]
jmp 0x4775b5
mov edx, eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], 1
jne 0x47761f
cmp byte [0x4ddad0], 0
jne 0x47761f
cmp byte [0x4ddad1], 0
jne 0x47761f
cmp dword [0x4cfe40], 0
je 0x47761f
cmp dword [0x4dcb84], 1
je 0x4775eb
cmp dword [0x4dcb84], 2
jne 0x47761f
mov cl, 1
mov edx, 0xa2
mov eax, dword [ebp - 0xc]
call fcn.00467644
mov cl, 1
mov edx, 0xa6
mov eax, dword [ebp - 0xc]
call fcn.00467644
mov cl, 1
mov edx, 0xa1
mov eax, dword [ebp - 0xc]
call fcn.00467644
mov byte [0x4ddad0], 1
cmp dword [ebp - 0xc], 0
je 0x47803a
cmp dword [ebp - 4], 1
jne 0x477640
cmp byte [0x4ddad0], 0
jne 0x477640
test bl, bl
je 0x47803a
cmp dword [0x4dcb84], 7
je 0x47803a
cmp dword [0x4dcb84], 0xa
je 0x47803a
cmp dword [ebp - 8], 0
jne 0x47769e
cmp dword [ebp - 4], 0
mov edx, 0x32
je 0x477671
add edx, 0x96
mov eax, dword [ebp - 4]
call fcn.004811dc
test al, al
jne 0x47769e
cmp dword [0x4dcb84], 8
jne 0x47803a
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 0x10]
jne 0x477698
cmp eax, dword [ebp + 0xc]
jne 0x47803a
cmp dword [ebp + 0x10], 0
jne 0x4776ba
cmp dword [ebp + 0xc], 0
jne 0x4776ba
cmp dword [ebp + 0x18], 0
jne 0x4776ba
cmp dword [ebp + 0x14], 0
jne 0x4776ba
xor ecx, ecx
jmp 0x4776bf
mov ecx, 1
mov byte [ebp - 0xd], cl
cmp byte [0x4ddb20], 0
jne 0x4776e4
cmp byte [0x4ddb21], 0
jne 0x4776e4
cmp byte [ebp - 0xd], 0
jne 0x4776e4
call fcn.004a82c8
mov dword [0x4ddacc], eax
cmp dword [ebp + 0x10], 0
jne 0x4776fe
cmp dword [ebp + 0xc], 0
jne 0x4776fe
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.0040fb80
mov dword [ebp - 0x14], eax
cmp dword [0x4dcb84], 0
je 0x4777ae
cmp dword [0x4dcb80], 0
je 0x4777ae
cmp dword [ebp + 0x18], 0
jne 0x4777ae
cmp dword [ebp + 0x14], 0
jne 0x4777ae
mov dword [ebp - 0x240], 0x1e8
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x228]
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x238], 0x7b
mov dword [ebp - 0x234], 4
push 0x80
push eax
push dword [ebp - 0xc]
call sub.USER32.DLL_GetWindowTextA
push 0x4dd888
lea edx, [ebp - 0x228]
push edx
call fcn.0049fd88
add esp, 8
test eax, eax
je 0x4777ae
lea ecx, [ebp - 0x240]
push ecx
push 1
call sub.SHELL32.DLL_Shell_NotifyIconA
lea edx, [ebp - 0x228]
mov eax, 0x4dd888
mov ecx, pe_nt_image_headers32
call fcn.0040ffdc
cmp byte [0x4ddad0], 0
je 0x477a99
cmp dword [0x4dcb80], 0
je 0x477a99
cmp dword [ebp - 4], 1
jne 0x477a99
mov eax, dword [0x4ddb1c]
cmp eax, dword [ebp - 0x14]
jne 0x4777f3
mov edx, 0xbb8
mov eax, 5
call fcn.004811dc
test al, al
je 0x477a99
mov eax, dword [ebp - 0x14]
shl eax, 4
mov ecx, 0x64
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, dword [0x4ddb1c]
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 0x4779b9
call fcn.00467308
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 - 0x254]
push ecx
push dword [0x4dcb80]
call sub.USER32.DLL_GetIconInfo
mov edi, dword [ebp - 0x250]
mov eax, dword [ebp - 0x24c]
add edi, edi
add eax, eax
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x244]
push dword [ebp - 0x24]
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x26c]
push edx
push 0x18
push dword [ebp - 0x244]
call sub.GDI32.DLL_GetObjectA
push 0
movzx ecx, word [ebp - 0x25a]
push ecx
movzx eax, word [ebp - 0x25c]
push eax
push dword [ebp - 0x2c]
push edi
call sub.GDI32.DLL_CreateBitmap
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
push dword [ebp - 0x28]
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x38], eax
cmp byte [ebp - 0x1d], 0
jne 0x4778cd
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x244], edx
mov ecx, 1
cmp dword [0x4d0788], 0xffffffff
setne al
and eax, 1
test al, al
jne 0x4778e4
dec ecx
mov dword [ebp - 0x3c], ecx
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x477952
xor ebx, ebx
jmp 0x477949
mov eax, edi
shr eax, 1
sub eax, dword [ebp - 0x3c]
cmp eax, ebx
ja 0x477933
mov edx, edi
shr edx, 1
add edx, 2
sub edx, dword [ebp - 0x3c]
cmp edx, ebx
jb 0x477933
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x18]
cmp ecx, esi
ja 0x477933
push 0xffff
push esi
push ebx
cmp byte [ebp - 0x1d], 0
je 0x477928
mov eax, dword [ebp - 0x24]
jmp 0x47792b
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.DLL_SetPixel
jmp 0x477948
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 edi, ebx
ja 0x4778f3
dec esi
test esi, esi
jge 0x4778ef
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call sub.GDI32.DLL_SelectObject
push dword [ebp - 0x38]
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 - 0x254]
push edx
call sub.USER32.DLL_CreateIconIndirect
mov dword [ebp - 0x40], eax
push dword [0x4dcb80]
call sub.USER32.DLL_DestroyIcon
mov ecx, dword [ebp - 0x40]
push dword [ebp - 0x248]
mov dword [0x4dcb80], ecx
call sub.GDI32.DLL_DeleteObject
push dword [ebp - 0x244]
call sub.GDI32.DLL_DeleteObject
push dword [ebp - 0x34]
call sub.GDI32.DLL_DeleteObject
mov dword [ebp - 0x454], 0x1e8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], 0x7b
mov dword [ebp - 0x448], 5
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x1c]
je 0x4779ef
or dword [ebp - 0x448], 2
mov dword [ebp - 0x444], 0x47b
mov ecx, dword [0x4dcb80]
mov dword [ebp - 0x440], ecx
mov byte [ebp - 0x554], 0
cmp byte [0x4ddad3], 0
je 0x477a39
push 0x4ddad3
mov eax, 0x5aa
call fcn.00413388
push eax
push str._s:__s_r_n
lea edx, [ebp - 0x554]
push edx
call fcn.004a2e18
add esp, 0x10
push dword [ebp - 0x14]
mov eax, 0x2f8
call fcn.00413388
push eax
lea edx, [ebp - 0x554]
push edx
call fcn.0049fe04
pop ecx
lea ecx, [ebp - 0x554]
add eax, ecx
push eax
call fcn.004a2e18
add esp, 0xc
lea edx, [ebp - 0x554]
lea eax, [ebp - 0x43c]
mov ecx, 0x80
call fcn.0040ffdc
mov byte [ebp - 0x3bd], 0
lea eax, [ebp - 0x454]
push eax
push 1
call sub.SHELL32.DLL_Shell_NotifyIconA
mov edx, dword [ebp - 0x14]
mov dword [0x4ddb1c], edx
cmp dword [ebp - 4], 0
jne 0x477afd
mov ecx, dword [ebp + 0x14]
mov dword [0x4ddafc], ecx
mov ecx, dword [ebp + 0x18]
mov dword [0x4ddb00], ecx
mov eax, dword [ebp + 0xc]
mov dword [0x4ddb04], eax
mov eax, dword [ebp + 0x10]
mov dword [0x4ddb08], eax
cmp dword [0x4dcb84], 0
je 0x477b21
cmp byte [0x4ddb20], 0
je 0x477b21
cmp dword [ebp + 0x18], 0
jne 0x477b21
cmp dword [ebp + 0x14], 0
jne 0x477b21
cmp dword [ebp + 0x10], 0
jne 0x477af6
cmp dword [ebp + 0xc], 0x10000
jb 0x47803a
jmp 0x477b21
jge 0x477b21
jmp 0x47803a
mov edx, dword [ebp + 0x14]
mov dword [0x4ddb0c], edx
mov edx, dword [ebp + 0x18]
mov dword [0x4ddb10], edx
mov ecx, dword [ebp + 0xc]
mov dword [0x4ddb14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [0x4ddb18], ecx
push dword [ebp - 0x14]
push str._4d__
lea eax, [ebp - 0x4c]
push eax
call fcn.004a2e18
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x477b5b
push 0x9e
push dword [ebp - 0xc]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
lea edx, [ebp - 0x4c]
xor ecx, ecx
mov eax, 0x99
call fcn.00476154
jmp 0x477bc0
push 0x9d
push dword [ebp - 0xc]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
lea edx, [ebp - 0x4c]
xor ecx, ecx
mov eax, 0x98
call fcn.00476154
cmp dword [0x4dcb84], 0
jne 0x477bc0
cmp dword [ebp - 4], 1
jne 0x477bc0
push dword [0x4ddaf8]
push dword [0x4ddaf4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040fb80
push eax
push str._4d__
lea ecx, [ebp - 0x4c]
push ecx
call fcn.004a2e18
add esp, 0xc
lea edx, [ebp - 0x4c]
xor ecx, ecx
mov eax, 0xa4
call fcn.00476154
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 0x10]
jne 0x477bd2
cmp eax, dword [ebp + 0xc]
jbe 0x477be0
jmp 0x477bd4
jle 0x477be0
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x18], eax
cmp byte [0x4ddad2], 0
je 0x477c57
cmp byte [0x4ddb20], 0
jne 0x477bf8
cmp dword [ebp - 4], 0
je 0x477c07
cmp byte [0x4ddb21], 0
jne 0x477c33
cmp dword [ebp - 4], 1
jne 0x477c33
cmp dword [0x4dcb84], 0
je 0x477c2b
cmp dword [0x4dcb84], 1
je 0x477c2b
cmp dword [0x4dcb84], 2
je 0x477c2b
cmp dword [0x4dcb84], 8
jne 0x477c33
push 9
push ebx
call sub.USER32.DLL_ShowWindow
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040fb80
push eax
push 0x402
push ebx
call sub.USER32.DLL_SendMessageA
jmp 0x47801e
test ebx, ebx
jne 0x477c70
push 0x10
push 0
lea eax, [ebp - 0x564]
push eax
call fcn.0049fc54
add esp, 0xc
jmp 0x477c95
lea edx, [ebp - 0x564]
push edx
push ebx
call sub.USER32.DLL_GetClientRect
push 2
lea ecx, [ebp - 0x564]
push ecx
push dword [ebp - 0xc]
push ebx
call sub.USER32.DLL_MapWindowPoints
inc dword [ebp - 0x558]
cmp dword [ebp - 8], 0
jne 0x477ca7
push dword [ebp - 0xc]
call sub.USER32.DLL_GetDC
mov ebx, eax
jmp 0x477caa
mov ebx, dword [ebp - 8]
xor eax, eax
cmp dword [0x4dcb84], 0
mov dword [ebp - 0x50], eax
jne 0x477cee
cmp dword [ebp - 4], 1
jne 0x477cee
push dword [0x4ddaf8]
push dword [0x4ddaf4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040fb80
mov edx, dword [ebp - 0x55c]
mov ecx, 0x64
sub edx, dword [ebp - 0x564]
imul edx
cdq
idiv ecx
mov dword [ebp - 0x50], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040fb80
mov edx, dword [ebp - 0x55c]
mov ecx, 0x64
sub edx, dword [ebp - 0x564]
imul edx
cdq
idiv ecx
mov esi, eax
cmp esi, dword [ebp - 0x50]
jge 0x477d1f
mov dword [ebp - 0x50], esi
push dword [0x4ddb30]
push ebx
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x54], eax
push dword [0x4ddb4c]
push ebx
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x558]
dec eax
push eax
mov edx, dword [ebp - 0x564]
add edx, esi
push edx
mov ecx, dword [ebp - 0x560]
inc ecx
push ecx
mov eax, dword [ebp - 0x564]
add eax, dword [ebp - 0x50]
inc eax
mov edx, 2
cmp dword [ebp - 0x50], 1
jg 0x477d6e
add edx, 0xfffffffe
sub eax, edx
push eax
push ebx
call sub.GDI32.DLL_Rectangle
cmp dword [ebp - 0x50], 0
jle 0x477dbd
push dword [0x4ddb50]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [0x4ddb3c]
push ebx
call sub.GDI32.DLL_SelectObject
mov ecx, dword [ebp - 0x558]
dec ecx
push ecx
mov eax, dword [ebp - 0x564]
add eax, dword [ebp - 0x50]
push eax
mov edx, dword [ebp - 0x560]
inc edx
push edx
mov ecx, dword [ebp - 0x564]
inc ecx
push ecx
push ebx
call sub.GDI32.DLL_Rectangle
push dword [0x4ddb34]
push ebx
call sub.GDI32.DLL_SelectObject
push 0
push dword [ebp - 0x560]
test esi, esi
jle 0x477dda
lea eax, [esi - 1]
jmp 0x477ddc
xor eax, eax
add eax, dword [ebp - 0x564]
push eax
push ebx
call sub.GDI32.DLL_MoveToEx
push dword [ebp - 0x560]
mov edx, dword [ebp - 0x564]
add edx, dword [ebp - 0x50]
push edx
push ebx
call sub.GDI32.DLL_LineTo
cmp dword [ebp - 0x50], 0
jle 0x477e23
push dword [0x4ddb38]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [ebp - 0x560]
push dword [ebp - 0x564]
push ebx
call sub.GDI32.DLL_LineTo
mov ecx, dword [ebp - 0x558]
dec ecx
push ecx
push dword [ebp - 0x564]
push ebx
call sub.GDI32.DLL_LineTo
push dword [0x4ddb28]
push ebx
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 0x558]
dec eax
push eax
push dword [ebp - 0x55c]
push ebx
call sub.GDI32.DLL_LineTo
push dword [0x4ddb44]
push ebx
call sub.GDI32.DLL_SelectObject
mov edx, dword [ebp - 0x560]
inc edx
push edx
push dword [ebp - 0x55c]
push ebx
call sub.GDI32.DLL_LineTo
push 0
push dword [ebp - 0x558]
mov ecx, dword [ebp - 0x564]
inc ecx
push ecx
push ebx
call sub.GDI32.DLL_MoveToEx
push dword [ebp - 0x558]
mov eax, dword [ebp - 0x55c]
inc eax
push eax
push ebx
call sub.GDI32.DLL_LineTo
push dword [0x4ddb2c]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [0x4ddb48]
push ebx
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 0x10]
jne 0x477ecb
cmp eax, dword [ebp + 0xc]
jae 0x477ef7
jmp 0x477ecd
jge 0x477ef7
mov ecx, dword [ebp - 0x558]
add ecx, 0xfffffffe
push ecx
mov eax, dword [ebp - 0x55c]
dec eax
push eax
mov edx, dword [ebp - 0x560]
inc edx
push edx
mov ecx, dword [ebp - 0x564]
add ecx, esi
inc ecx
push ecx
push ebx
call sub.GDI32.DLL_Rectangle
test esi, esi
jle 0x477f81
mov eax, dword [ebp - 0x55c]
sub eax, dword [ebp - 0x564]
dec eax
cmp esi, eax
jge 0x477f81
push dword [0x4ddb28]
push ebx
call sub.GDI32.DLL_SelectObject
push 0
push dword [ebp - 0x560]
mov edx, dword [ebp - 0x564]
add edx, esi
push edx
push ebx
call sub.GDI32.DLL_MoveToEx
push dword [ebp - 0x558]
mov ecx, dword [ebp - 0x564]
add ecx, esi
push ecx
push ebx
call sub.GDI32.DLL_LineTo
push dword [0x4ddb44]
push ebx
call sub.GDI32.DLL_SelectObject
push 0
push dword [ebp - 0x558]
mov eax, dword [ebp - 0x564]
add eax, esi
push eax
push ebx
call sub.GDI32.DLL_MoveToEx
push dword [ebp - 0x558]
mov edx, dword [ebp - 0x564]
add edx, dword [ebp - 0x50]
push edx
push ebx
call sub.GDI32.DLL_LineTo
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 0x10]
jne 0x477f93
cmp eax, dword [ebp + 0xc]
jae 0x477ffd
jmp 0x477f95
jge 0x477ffd
push dword [0x4ddb40]
push ebx
call sub.GDI32.DLL_SelectObject
push 0
push dword [ebp - 0x560]
mov ecx, dword [ebp - 0x564]
add ecx, esi
inc ecx
push ecx
push ebx
call sub.GDI32.DLL_MoveToEx
push dword [ebp - 0x560]
mov eax, dword [ebp - 0x55c]
dec eax
push eax
push ebx
call sub.GDI32.DLL_LineTo
mov edx, dword [ebp - 0x558]
add edx, 0xfffffffe
push edx
mov ecx, dword [ebp - 0x55c]
dec ecx
push ecx
push ebx
call sub.GDI32.DLL_LineTo
mov eax, dword [ebp - 0x558]
add eax, 0xfffffffe
push eax
add esi, dword [ebp - 0x564]
inc esi
push esi
push ebx
call sub.GDI32.DLL_LineTo
push dword [ebp - 0x54]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [ebp - 0x58]
push ebx
call sub.GDI32.DLL_SelectObject
cmp dword [ebp - 8], 0
jne 0x47801e
push ebx
push dword [ebp - 0xc]
call sub.USER32.DLL_ReleaseDC
cmp byte [ebp - 0xd], 0
je 0x47803a
cmp dword [ebp - 4], 0
jne 0x478033
mov byte [0x4ddb20], 1
jmp 0x47803a
mov byte [0x4ddb21], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14