Function at 0x414213
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x41b070]
xor eax, dword [ebp + 4]
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebx + 0x64]
mov edi, dword [ebp + 8]
add dword [ebp - 0x24], eax
sub dword [ebp - 0x1c], eax
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebx + 0x5c]
mov dword [ebp - 0x28], eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebx + 0x3c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edi
mov dword [ebp - 0x2c], eax
call esi
mov dword [ebp + 0xc], eax
push 0x104
lea eax, [ebp - 0x244]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x8824
lea eax, [ebp - 0x24]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x244]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4143a0
cmp dword [ebx + 0x60], 0
lea eax, [ebx + 0x44]
jne 0x4142b2
lea eax, [ebx + 0x40]
push dword [eax]
push edi
call esi
mov eax, dword [ebx + 0x30]
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xc20
lea ecx, [ebp - 0x14]
push ecx
movsd dword es:[edi], dword [esi]
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.USER32.dll_DrawTextW]
call esi
mov ecx, dword [ebp - 0x30]
mov eax, ecx
sub eax, dword [ebp - 0x38]
push 0xfffffffffffffffe
cdq
sub eax, edx
sar eax, 1
pop edx
sub edx, eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0xc]
add ecx, edx
sub ecx, dword [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebx + 0x30]
push 0x820
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
sub dword [ebp - 0x14], 0x12
push 3
push 0
push 0
lea eax, [ecx + eax - 0x10]
push 0x10
cdq
push 0x10
push dword [ebx + 0x24]
sub eax, edx
sar eax, 1
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawIconEx]
lea edi, [ebx + 0x4c]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x38]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4143a0
lea edi, [ebx + 0x2c]
push dword [edi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4143a0
push 0
push 1
push 0x401
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi]
lea ecx, [ebx + 0x4c]
push ecx
push ecx
mov ecx, esp
mov dword [ecx], edx
push dword [ebx + 4]
xor eax, eax
inc eax
push edi
call fcn.00414f6b
call fcn.00405478
mov eax, dword [ebx + 0x34]
cmp dword [eax - 0xc], 0
je 0x4143ea
push dword [ebx + 0x48]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
sub eax, ecx
movsd dword es:[edi], dword [esi]
cdq
sub eax, edx
movsd dword es:[edi], dword [esi]
sar eax, 1
lea eax, [eax + ecx + 2]
push 0x822
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push 0xffffffffffffffff
push dword [ebx + 0x34]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x2c]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x28]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00415ab2
pop edi
pop esi
leave
ret 8