Function at 0x408130
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x144
mov eax, dword [0x428990]
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 0x4081e8
mov ecx, dword [ebx + 0x310]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x24]
push edx
jmp 0x4081fb
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.00408390
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x408215
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x40821f
push ebx
lea esi, [esp + 0x28]
call fcn.004084e0
push ebp
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40828a
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40828a
mov eax, dword [ebx + 0x80]
test eax, eax
mov ebp, dword [esp + 0x3c]
jne 0x40826a
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 0x408283
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 0x4082ba
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 0x4082b0
lea eax, [ebx + 0x98]
mov dword [esp + 0x20], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4082c7
sub eax, edx
mov dword [esp + 0xc], eax
je 0x40836e
mov eax, dword [ebx + 0x84]
test eax, eax
je 0x4082ea
mov edx, dword [ebx + 0x78]
push edx
jmp 0x4082f3
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 0x408316
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, eax
jmp 0x40831a
mov ebp, dword [esp + 0x20]
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x408349
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.0040b285
add esp, 0x144
ret