Function at 0x401080
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x90
mov eax, dword [0x405118]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xa4]
mov eax, dword [edi + 0x14]
push eax
mov ebx, ecx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [edi + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [edi + 0x14]
push 0x80
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, dword [esp + 0xa8]
test esi, esi
lea esi, [edi + 0x1c]
jne 0x40112a
mov ecx, dword [esi]
mov edx, dword [esi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x18]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x10]
push eax
push ecx
call fcn.00402480
add esp, 0x18
test ebp, ebp
je 0x40119f
mov edx, dword [edi + 0x18]
push 0xff00
push edx
jmp 0x4011fc
test ebp, ebp
je 0x401153
mov edx, dword [esi]
mov ecx, dword [esi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esi + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 8], edx
mov edx, dword [ebx + 0x14]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x18]
push edx
push eax
jmp 0x40110c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push esi
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4011b0
xor eax, eax
cmp dword [edi + 0x10], eax
sete al
test al, 1
je 0x4011b0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 8]
mov ecx, dword [edi + 0x18]
push eax
push ecx
call fcn.00402480
add esp, 0x18
test byte [edi + 0x10], 4
je 0x4011f6
mov eax, dword [edi + 0x18]
push 0x7d7d7d
push eax
jmp 0x4011fc
sub esp, 0x10
test byte [edi + 0x10], 1
mov eax, esp
je 0x4011db
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov dword [eax], edx
mov edx, dword [esi + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 8], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x18]
push edx
push eax
jmp 0x401197
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [eax], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 4]
jmp 0x401192
mov ecx, dword [edi + 0x18]
push 0
push ecx
mov ebp, dword [sym.imp.GDI32.dll_SetTextColor]
call ebp
mov edx, dword [edi + 0x18]
push 1
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [ebx + 0x18], 0
je 0x40123f
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401221
mov ecx, dword [edi + 0x18]
push 0x25
push esi
sub eax, edx
push eax
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawTextA]
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x18]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402628
add esp, 0x90
ret 8