Function at 0x40ec50
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x420261
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0x44]
push edi
mov eax, dword [esi + 4]
xor ebp, ebp
push ecx
push eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x40], eax
mov edx, dword [0x42505c]
mov dword [esp + 0xcc], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x8c]
mov dword [esp + 0x88], ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x88]
push eax
push 0x3c
push ecx
mov byte [esp + 0xd8], 2
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp dword [esi + 0x24], ebp
je 0x40ecff
mov byte [esp + 0x9d], 1
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x28]
cmp eax, ebp
je 0x40ed21
mov eax, dword [esi + 0x30]
mov dword [esp + 0x34], eax
jmp 0x40ed28
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x34], ecx
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x40]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
mov ebx, 0x3e8
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp ecx, 1
jg 0x40ed54
cmp dword [eax - 4], ebx
jge 0x40ed95
mov ebp, dword [eax - 8]
cmp ebp, ebx
jle 0x40ed5d
mov ebx, ebp
push ebx
lea ecx, [esp + 0x14]
call fcn.004037d0
test eax, eax
je 0x40ed93
mov edx, dword [esp + 0x10]
lea eax, [ebp + 1]
lea ecx, [edi + 0xc]
push eax
inc ebx
push ecx
push ebx
push edx
call fcn.00407120
mov eax, dword [esp + 0x20]
add esp, 0x10
push edi
mov dword [eax - 8], ebp
call fcn.004088c0
mov eax, dword [esp + 0x10]
xor ebp, ebp
mov ecx, dword [esi + 4]
push 0x3e8
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x10]
call fcn.00408780
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov byte [eax + edx], 0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x40]
push 1
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_DrawTextA]
mov dword [esp + 0x1c], edx
mov edx, dword [eax - 8]
lea ecx, [esp + 0x14]
push 0x420
push ecx
push edx
push eax
mov eax, dword [esp + 0x50]
push eax
call edi
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [esi + 0x40], ebp
je 0x40ee52
push 2
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
push edx
call edi
jmp 0x40eead
cmp dword [esi + 0x44], ebp
je 0x40ee5e
push 0x8210
jmp 0x40ee3b
lea eax, [esp + 0x24]
mov edx, dword [esp + 0x40]
push ebp
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
push edx
call edi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x40eead
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub edx, ebx
push 2
sub eax, ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x38]
pop edi
pop esi
cmp eax, ebp
pop ebp
pop ebx
je 0x40eed0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp]
mov edx, dword [0x425060]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40eeff
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40eeff
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.00419d30
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
add esp, 0xc0
ret 4