Function at 0x40fb72
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x82c]
push esi
push edi
mov edi, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 0x820]
push dword [ebp - 0x824]
push dword [ebp - 0x828]
push dword [ebp - 0x82c]
push ebx
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [ebp - 0x824]
sub eax, dword [ebp - 0x82c]
mov dword [ebp - 0x850], eax
mov eax, dword [ebp - 0x820]
sub eax, dword [ebp - 0x828]
push 0xfffffffffffffff0
push dword [edi + 4]
mov dword [ebp - 0x84c], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi + 4]
mov dword [ebp - 0x830], eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov dword [ebp - 0x874], eax
xor ecx, ecx
mov eax, dword [ebp - 0x830]
test eax, 0x10000
je 0x40fc30
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
xor ecx, ecx
cmp eax, esi
mov eax, dword [ebp - 0x830]
jne 0x40fc30
mov dword [ebp - 0x880], 1
jmp 0x40fc40
mov esi, dword [edi + 4]
mov dword [ebp - 0x880], ecx
test eax, 0x10000
je 0x40fc4e
mov dword [ebp - 0x87c], 1
test al, 1
jne 0x40fc54
mov dword [ebp - 0x87c], ecx
shr eax, 0xf
and eax, 1
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x868], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x864], eax
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x86c], eax
lea eax, [ebp - 0x80c]
push 0x400
push eax
push esi
mov dword [ebp - 0x840], ecx
mov dword [ebp - 0x83c], ecx
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x85c], ecx
mov dword [ebp - 0x854], ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [edi + 0x4c]
mov esi, eax
push ebx
mov dword [ebp - 0x870], esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x878], eax
test esi, esi
je 0x40fe1d
push 0x420
lea eax, [ebp - 0x81c]
xorps xmm0, xmm0
push eax
push esi
lea eax, [ebp - 0x80c]
push eax
push ebx
movups xmmword [ebp - 0x81c], xmm0
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [ebp - 0x814]
mov esi, dword [ebp - 0x810]
sub edx, dword [ebp - 0x81c]
sub esi, dword [ebp - 0x818]
mov eax, dword [ebp - 0x830]
mov dword [ebp - 0x85c], edx
mov dword [ebp - 0x854], esi
test al, al
js 0x40fdf1
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x40fdf1
cmp dword [edi + 0x40], 0
je 0x40fdf1
test al, 0x40
mov eax, dword [ebp - 0x850]
je 0x40fd96
sub eax, dword [ebp - 0x864]
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x834], eax
mov eax, dword [ebp - 0x84c]
sub eax, esi
mov esi, dword [ebp - 0x820]
sub eax, dword [ebp - 0x86c]
sub esi, dword [ebp - 0x854]
sub eax, 4
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x840], eax
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x85c]
inc eax
cdq
sub eax, edx
sar eax, 1
sub esi, 4
mov dword [ebp - 0x83c], eax
jmp 0x40fe15
sub eax, ecx
sub eax, edx
cdq
push 3
pop ecx
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x86c]
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x840], eax
mov eax, dword [ebp - 0x82c]
add eax, ecx
mov dword [ebp - 0x834], eax
mov eax, dword [ebp - 0x84c]
sub eax, esi
inc eax
cdq
sub eax, edx
mov esi, eax
mov eax, dword [edi + 0x3c]
add eax, dword [ebp - 0x834]
sar esi, 1
add eax, ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x83c], eax
jmp 0x40fe53
mov eax, dword [ebp - 0x850]
sub eax, edx
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp - 0x84c]
sub eax, esi
inc eax
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x838], esi
jmp 0x40fe53
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x864]
mov esi, dword [ebp - 0x838]
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x834], eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x86c]
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x840], eax
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
mov dword [ebp - 0x858], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x10
mov dword [ebp - 0x860], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [edi + 0x44]
mov edx, eax
push 5
pop eax
mov dword [ebp - 0x844], eax
push 0xffffffffffffffff
pop eax
sub ecx, 0
je 0x40fea8
sub ecx, 1
je 0x40ff85
sub ecx, 1
je 0x40ff3a
sub ecx, 1
jne 0x40ff7a
cmp dword [ebp - 0x868], 0
push 4
pop esi
cmovne esi, eax
mov eax, dword [ebp - 0x830]
test al, 0x10
je 0x41005f
push 2
push 2
push dword [ebp - 0x820]
push dword [ebp - 0x824]
push dword [ebp - 0x828]
push dword [ebp - 0x82c]
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
cmp dword [edi + 0x44], 2
push 0x10
pop ecx
push 0x15
mov dword [ebp - 0x844], eax
pop eax
cmove ecx, eax
push ecx
call dword [sym.imp.USER32.dll_GetSysColorBrush]
xor esi, esi
mov dword [ebp - 0x848], eax
test byte [ebp - 0x830], 0x20
jne 0x41001d
cmp dword [edi + 0x44], 1
je 0x40ffad
cmp dword [edi + 0x44], esi
je 0x40ffad
push dword [ebp - 0x858]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
jmp 0x40fff9
mov eax, dword [ebp - 0x868]
mov ecx, dword [ebp - 0x860]
xor eax, 1
lea eax, [eax*8 + 2]
mov dword [ebp - 0x844], eax
call fcn.00410659
inc dword [ebp - 0x834]
inc dword [ebp - 0x840]
inc dword [ebp - 0x83c]
inc esi
mov dword [ebp - 0x858], eax
mov dword [ebp - 0x838], esi
mov esi, dword [ebp - 0x844]
jmp 0x40feb5
mov esi, dword [ebp - 0x868]
mov edx, dword [ebp - 0x860]
xor esi, 1
mov ecx, dword [ebp - 0x858]
add esi, 4
call fcn.00410659
mov dword [ebp - 0x858], eax
jmp 0x40feb5
push ecx
push dword [ebp - 0x84c]
mov ecx, dword [ebp - 0x858]
push dword [ebp - 0x850]
push 0xffffffffffffffc0
pop edx
call fcn.00407cdf
mov edx, dword [ebp - 0x858]
mov ecx, dword [ebp - 0x860]
push eax
call fcn.00543f7a
add esp, 0x10
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push esi
mov dword [ebp - 0x860], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp - 0x860]
test esi, esi
je 0x410017
push dword [ebp - 0x84c]
push dword [ebp - 0x850]
push esi
push dword [ebp - 0x844]
push ebx
call dword [sym.imp.GDI32.dll_FrameRgn]
mov eax, dword [ebp - 0x848]
cmp dword [ebp - 0x868], 0
je 0x410034
cmp dword [edi + 0x44], 0
je 0x410046
push 3
pop ecx
cmp dword [edi + 0x44], ecx
je 0x410046
push 1
push 1
push eax
push dword [ebp - 0x844]
push ebx
call dword [sym.imp.GDI32.dll_FrameRgn]
test esi, esi
je 0x410051
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x844]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x410075
cmp esi, 0xffffffff
je 0x41007b
push 0xf
push esi
lea eax, [ebp - 0x82c]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [ebp - 0x830]
test al, al
js 0x410119
cmp dword [edi + 0x28], 0
je 0x410119
push dword [edi + 0x28]
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov eax, dword [edi + 0x44]
xor esi, esi
cmp dword [edi + eax*4 + 0x2c], 0xffffffff
cmovne esi, dword [edi + eax*4 + 0x2c]
cmp dword [ebp - 0x874], 0
jne 0x410100
push 3
pop eax
cmp esi, eax
je 0x410100
push 0
push esi
push dword [edi + 0x28]
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov dword [ebp - 0x848], eax
test eax, eax
je 0x410100
push 0x23
push dword [ebp - 0x86c]
xor ecx, ecx
push dword [ebp - 0x864]
push dword [ebp - 0x840]
push dword [ebp - 0x834]
push ecx
push eax
push ecx
push ecx
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
push dword [ebp - 0x848]
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x410119
push 1
push dword [ebp - 0x840]
push dword [ebp - 0x834]
push ebx
push esi
push dword [edi + 0x28]
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
cmp dword [ebp - 0x870], 0
je 0x410311
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x12
call esi
push 1
push ebx
mov dword [ebp - 0x848], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [edi + 0x44], 1
jne 0x41014f
push 0xd
call esi
mov dword [ebp - 0x848], eax
cmp dword [ebp - 0x874], 0
mov esi, dword [ebp - 0x838]
mov edi, dword [ebp - 0x83c]
jne 0x4101a1
push 0x22
push dword [ebp - 0x854]
lea eax, [ebp - 0x80c]
push dword [ebp - 0x85c]
push esi
push edi
push dword [ebp - 0x870]
push eax
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [ebp - 0x854]
mov edx, dword [ebp - 0x85c]
add ecx, esi
add edx, edi
jmp 0x41025f
mov eax, dword [ebp - 0x85c]
add eax, edi
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x864], eax
mov dword [ebp - 0x814], eax
mov eax, dword [ebp - 0x854]
add eax, esi
mov dword [ebp - 0x818], esi
cmp dword [ebp - 0x87c], 0
mov dword [ebp - 0x874], eax
mov dword [ebp - 0x810], eax
je 0x410229
lea eax, [edi + 1]
mov dword [ebp - 0x81c], eax
lea eax, [esi + 1]
push 0x10
mov dword [ebp - 0x818], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
lea eax, [ebp - 0x81c]
push eax
push dword [ebp - 0x870]
lea eax, [ebp - 0x80c]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
dec dword [ebp - 0x81c]
dec dword [ebp - 0x818]
push dword [ebp - 0x848]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
lea eax, [ebp - 0x81c]
push eax
push dword [ebp - 0x870]
lea eax, [ebp - 0x80c]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [ebp - 0x874]
mov edx, dword [ebp - 0x864]
cmp dword [ebp - 0x880], 0
je 0x410311
mov eax, dword [ebp - 0x830]
lea esi, [ebp - 0x82c]
lea edi, [ebp - 0x81c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test al, 0x20
je 0x4102a9
mov eax, dword [ebp - 0x838]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x83c]
push eax
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 1
push 1
jmp 0x4102dd
test al, 0x10
je 0x4102cc
push 0xfffffffffffffffe
push 0xfffffffffffffffe
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
dec dword [ebp - 0x814]
dec dword [ebp - 0x810]
jmp 0x4102ea
test eax, 0x8000
je 0x4102d9
push 0xfffffffffffffffe
push 0xfffffffffffffffe
jmp 0x4102dd
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x81c]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push dword [ebp - 0x878]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret 4