Function at 0x474860
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 0x474883
mov edx, dword [0x4c6ef8]
jmp 0x474885
mov edx, eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], 1
jne 0x4748ef
cmp byte [0x4d42bc], 0
jne 0x4748ef
cmp byte [0x4d42bd], 0
jne 0x4748ef
cmp dword [0x4c6ef8], 0
je 0x4748ef
cmp dword [0x4d3b70], 1
je 0x4748bb
cmp dword [0x4d3b70], 2
jne 0x4748ef
mov cl, 1
mov edx, 0xa2
mov eax, dword [ebp - 0xc]
call fcn.00464eac
mov cl, 1
mov edx, 0xa6
mov eax, dword [ebp - 0xc]
call fcn.00464eac
mov cl, 1
mov edx, 0xa1
mov eax, dword [ebp - 0xc]
call fcn.00464eac
mov byte [0x4d42bc], 1
cmp dword [ebp - 0xc], 0
je 0x475304
cmp dword [ebp - 4], 1
jne 0x474910
cmp byte [0x4d42bc], 0
jne 0x474910
test bl, bl
je 0x475304
cmp dword [0x4d3b70], 7
je 0x475304
cmp dword [0x4d3b70], 0xa
je 0x475304
cmp dword [ebp - 8], 0
jne 0x47496e
cmp dword [ebp - 4], 0
mov edx, 0x32
je 0x474941
add edx, 0x96
mov eax, dword [ebp - 4]
call fcn.0047e418
test al, al
jne 0x47496e
cmp dword [0x4d3b70], 8
jne 0x475304
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 0x10]
jne 0x474968
cmp eax, dword [ebp + 0xc]
jne 0x475304
cmp dword [ebp + 0x10], 0
jne 0x47498a
cmp dword [ebp + 0xc], 0
jne 0x47498a
cmp dword [ebp + 0x18], 0
jne 0x47498a
cmp dword [ebp + 0x14], 0
jne 0x47498a
xor ecx, ecx
jmp 0x47498f
mov ecx, 1
mov byte [ebp - 0xd], cl
cmp byte [0x4d430c], 0
jne 0x4749b4
cmp byte [0x4d430d], 0
jne 0x4749b4
cmp byte [ebp - 0xd], 0
jne 0x4749b4
call fcn.004a127c
mov dword [0x4d42b8], eax
cmp dword [ebp + 0x10], 0
jne 0x4749ce
cmp dword [ebp + 0xc], 0
jne 0x4749ce
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.0040f31c
mov dword [ebp - 0x14], eax
cmp dword [0x4d3b70], 0
je 0x474a7e
cmp dword [0x4d3b6c], 0
je 0x474a7e
cmp dword [ebp + 0x18], 0
jne 0x474a7e
cmp dword [ebp + 0x14], 0
jne 0x474a7e
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 0x4d4074
lea edx, [ebp - 0x228]
push edx
call fcn.00498e30
add esp, 8
test eax, eax
je 0x474a7e
lea ecx, [ebp - 0x240]
push ecx
push 1
call sub.SHELL32.DLL_Shell_NotifyIconA
lea edx, [ebp - 0x228]
mov eax, 0x4d4074
mov ecx, pe_nt_image_headers32
call fcn.0040f778
cmp byte [0x4d42bc], 0
je 0x474d69
cmp dword [0x4d3b6c], 0
je 0x474d69
cmp dword [ebp - 4], 1
jne 0x474d69
mov eax, dword [0x4d4308]
cmp eax, dword [ebp - 0x14]
jne 0x474ac3
mov edx, 0xbb8
mov eax, 5
call fcn.0047e418
test al, al
je 0x474d69
mov eax, dword [ebp - 0x14]
shl eax, 4
mov ecx, 0x64
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, dword [0x4d4308]
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 0x474c89
call fcn.00464c18
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 [0x4d3b6c]
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 0x474b9d
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x244], edx
mov ecx, 1
cmp dword [0x4c7840], 0xffffffff
setne al
and eax, 1
test al, al
jne 0x474bb4
dec ecx
mov dword [ebp - 0x3c], ecx
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x474c22
xor ebx, ebx
jmp 0x474c19
mov eax, edi
shr eax, 1
sub eax, dword [ebp - 0x3c]
cmp eax, ebx
ja 0x474c03
mov edx, edi
shr edx, 1
add edx, 2
sub edx, dword [ebp - 0x3c]
cmp edx, ebx
jb 0x474c03
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x18]
cmp ecx, esi
ja 0x474c03
push 0xffff
push esi
push ebx
cmp byte [ebp - 0x1d], 0
je 0x474bf8
mov eax, dword [ebp - 0x24]
jmp 0x474bfb
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.DLL_SetPixel
jmp 0x474c18
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 0x474bc3
dec esi
test esi, esi
jge 0x474bbf
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 [0x4d3b6c]
call sub.USER32.DLL_DestroyIcon
mov ecx, dword [ebp - 0x40]
push dword [ebp - 0x248]
mov dword [0x4d3b6c], 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 0x474cbf
or dword [ebp - 0x448], 2
mov dword [ebp - 0x444], 0x47b
mov ecx, dword [0x4d3b6c]
mov dword [ebp - 0x440], ecx
mov byte [ebp - 0x554], 0
cmp byte [0x4d42bf], 0
je 0x474d09
push 0x4d42bf
mov eax, 0x5aa
call fcn.004129c8
push eax
push str._s:__s_r_n
lea edx, [ebp - 0x554]
push edx
call fcn.0049bdcc
add esp, 0x10
push dword [ebp - 0x14]
mov eax, 0x2f8
call fcn.004129c8
push eax
lea edx, [ebp - 0x554]
push edx
call fcn.00498eac
pop ecx
lea ecx, [ebp - 0x554]
add eax, ecx
push eax
call fcn.0049bdcc
add esp, 0xc
lea edx, [ebp - 0x554]
lea eax, [ebp - 0x43c]
mov ecx, 0x80
call fcn.0040f778
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 [0x4d4308], edx
cmp dword [ebp - 4], 0
jne 0x474dcd
mov ecx, dword [ebp + 0x14]
mov dword [0x4d42e8], ecx
mov ecx, dword [ebp + 0x18]
mov dword [0x4d42ec], ecx
mov eax, dword [ebp + 0xc]
mov dword [0x4d42f0], eax
mov eax, dword [ebp + 0x10]
mov dword [0x4d42f4], eax
cmp dword [0x4d3b70], 0
je 0x474df1
cmp byte [0x4d430c], 0
je 0x474df1
cmp dword [ebp + 0x18], 0
jne 0x474df1
cmp dword [ebp + 0x14], 0
jne 0x474df1
cmp dword [ebp + 0x10], 0
jne 0x474dc6
cmp dword [ebp + 0xc], 0x10000
jb 0x475304
jmp 0x474df1
jge 0x474df1
jmp 0x475304
mov edx, dword [ebp + 0x14]
mov dword [0x4d42f8], edx
mov edx, dword [ebp + 0x18]
mov dword [0x4d42fc], edx
mov ecx, dword [ebp + 0xc]
mov dword [0x4d4300], ecx
mov ecx, dword [ebp + 0x10]
mov dword [0x4d4304], ecx
push dword [ebp - 0x14]
push str._4d__
lea eax, [ebp - 0x4c]
push eax
call fcn.0049bdcc
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x474e29
push 0x9e
push dword [ebp - 0xc]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
lea edx, [ebp - 0x4c]
mov eax, 0x99
call fcn.00473468
jmp 0x474e8a
push 0x9d
push dword [ebp - 0xc]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
lea edx, [ebp - 0x4c]
mov eax, 0x98
call fcn.00473468
cmp dword [0x4d3b70], 0
jne 0x474e8a
cmp dword [ebp - 4], 1
jne 0x474e8a
push dword [0x4d42e4]
push dword [0x4d42e0]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040f31c
push eax
push str._4d__
lea edx, [ebp - 0x4c]
push edx
call fcn.0049bdcc
add esp, 0xc
lea edx, [ebp - 0x4c]
mov eax, 0xa4
call fcn.00473468
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 0x10]
jne 0x474e9c
cmp eax, dword [ebp + 0xc]
jbe 0x474eaa
jmp 0x474e9e
jle 0x474eaa
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x18], ecx
cmp byte [0x4d42be], 0
je 0x474f21
cmp byte [0x4d430c], 0
jne 0x474ec2
cmp dword [ebp - 4], 0
je 0x474ed1
cmp byte [0x4d430d], 0
jne 0x474efd
cmp dword [ebp - 4], 1
jne 0x474efd
cmp dword [0x4d3b70], 0
je 0x474ef5
cmp dword [0x4d3b70], 1
je 0x474ef5
cmp dword [0x4d3b70], 2
je 0x474ef5
cmp dword [0x4d3b70], 8
jne 0x474efd
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.0040f31c
push eax
push 0x402
push ebx
call sub.USER32.DLL_SendMessageA
jmp 0x4752e8
test ebx, ebx
jne 0x474f3a
push 0x10
push 0
lea ecx, [ebp - 0x564]
push ecx
call fcn.00498cfc
add esp, 0xc
jmp 0x474f5f
lea eax, [ebp - 0x564]
push eax
push ebx
call sub.USER32.DLL_GetClientRect
push 2
lea edx, [ebp - 0x564]
push edx
push dword [ebp - 0xc]
push ebx
call sub.USER32.DLL_MapWindowPoints
inc dword [ebp - 0x558]
cmp dword [ebp - 8], 0
jne 0x474f71
push dword [ebp - 0xc]
call sub.USER32.DLL_GetDC
mov ebx, eax
jmp 0x474f74
mov ebx, dword [ebp - 8]
xor eax, eax
cmp dword [0x4d3b70], 0
mov dword [ebp - 0x50], eax
jne 0x474fb8
cmp dword [ebp - 4], 1
jne 0x474fb8
push dword [0x4d42e4]
push dword [0x4d42e0]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040f31c
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.0040f31c
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 0x474fe9
mov dword [ebp - 0x50], esi
push dword [0x4d431c]
push ebx
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x54], eax
push dword [0x4d4338]
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 0x475038
add edx, 0xfffffffe
sub eax, edx
push eax
push ebx
call sub.GDI32.DLL_Rectangle
cmp dword [ebp - 0x50], 0
jle 0x475087
push dword [0x4d433c]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [0x4d4328]
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 [0x4d4320]
push ebx
call sub.GDI32.DLL_SelectObject
push 0
push dword [ebp - 0x560]
test esi, esi
jle 0x4750a4
lea eax, [esi - 1]
jmp 0x4750a6
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 0x4750ed
push dword [0x4d4324]
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 [0x4d4314]
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 [0x4d4330]
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 [0x4d4318]
push ebx
call sub.GDI32.DLL_SelectObject
push dword [0x4d4334]
push ebx
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 0x10]
jne 0x475195
cmp eax, dword [ebp + 0xc]
jae 0x4751c1
jmp 0x475197
jge 0x4751c1
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 0x47524b
mov eax, dword [ebp - 0x55c]
sub eax, dword [ebp - 0x564]
dec eax
cmp esi, eax
jge 0x47524b
push dword [0x4d4314]
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 [0x4d4330]
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 0x47525d
cmp eax, dword [ebp + 0xc]
jae 0x4752c7
jmp 0x47525f
jge 0x4752c7
push dword [0x4d432c]
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 0x4752e8
push ebx
push dword [ebp - 0xc]
call sub.USER32.DLL_ReleaseDC
cmp byte [ebp - 0xd], 0
je 0x475304
cmp dword [ebp - 4], 0
jne 0x4752fd
mov byte [0x4d430c], 1
jmp 0x475304
mov byte [0x4d430d], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14