Function at 0x408460
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x144
mov eax, dword [0x429990]
push ebp
push esi
push edi
mov dword [esp + 0x14c], eax
lea eax, [esp + 0x10]
mov edi, ecx
mov ecx, dword [ebx + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x2d
call ebp
push 0x2e
mov esi, eax
call ebp
mov edx, dword [ebx + 0x2ec]
push edx
push edi
mov ebp, eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 5
push 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_RoundRect]
mov ecx, dword [esp + 0xc]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub edx, ebp
push edx
mov edx, dword [esp + 0x14]
sub eax, esi
push eax
add ecx, ebp
push ecx
add edx, esi
push edx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x408518
mov ecx, dword [ebx + 0x310]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x24]
push edx
jmp 0x40852b
mov eax, dword [ebx + 0x314]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x24]
push ecx
push edi
push ebx
mov ebp, eax
call fcn.004086c0
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x408545
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x40854f
push ebx
lea esi, [esp + 0x28]
call fcn.00408810
push ebp
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4085ba
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4085ba
mov eax, dword [ebx + 0x80]
test eax, eax
mov ebp, dword [esp + 0x3c]
jne 0x40859a
mov eax, dword [ebx + 0x48]
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
sub eax, ebp
push eax
add ecx, 4
push ecx
jmp 0x4085b3
mov edx, dword [ebx + 0x48]
mov eax, dword [esp + 0x1c]
push edx
cdq
sub eax, edx
sar eax, 1
sub eax, ebp
inc eax
push eax
mov eax, dword [esp + 0x18]
add eax, 5
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIcon]
mov edx, dword [ebx + 8]
push 0x100
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4085ea
lea eax, [esp + 0x48]
lea edx, [ebx + 0x98]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4085e0
lea eax, [ebx + 0x98]
mov dword [esp + 0x20], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4085f7
sub eax, edx
mov dword [esp + 0xc], eax
je 0x40869e
mov eax, dword [ebx + 0x84]
test eax, eax
je 0x40861a
mov edx, dword [ebx + 0x78]
push edx
jmp 0x408623
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
push edi
call esi
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x298]
test eax, eax
je 0x408646
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, eax
jmp 0x40864a
mov ebp, dword [esp + 0x20]
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x408679
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
add edx, 2
push edx
add eax, 2
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x20]
push 0x25
lea edx, [esp + 0x28]
push edx
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0xc]
push ecx
push edi
call esi
push ebp
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
mov eax, 1
pop ebp
call fcn.0040b693
add esp, 0x144
ret