Function at 0x408c50
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x154
push ebx
mov ebx, dword [esp + 0x15c]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x30]
sub ecx, eax
lea eax, [esp + 0x48]
mov dword [0x430b48], ecx
mov ecx, dword [0x4359ec]
push eax
sub edx, ebp
push 0x18
push ecx
mov dword [0x430b4c], edx
call dword [sym.imp.GDI32.dll_GetObjectA]
fild dword [0x430b48]
fimul dword [esp + 0x4c]
call fcn.004188fc
mov edx, dword [0x435a28]
mov ebp, dword [0x435a20]
mov dword [esp + 0x10], eax
sub edx, ebp
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fdivp st(1)
call fcn.004188fc
fild dword [0x430b4c]
mov ebp, eax
mov dword [0x430b50], ebp
fimul dword [esp + 0x50]
call fcn.004188fc
mov edx, dword [0x435a24]
mov dword [esp + 0x10], eax
mov eax, dword [0x435a2c]
fild dword [esp + 0x10]
sub eax, edx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fdivp st(1)
call fcn.004188fc
push eax
push ebp
push edi
mov dword [0x430b54], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
mov dword [esp + 0x18], eax
call ebp
push 0xffffff
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [0x430b54]
mov edx, dword [0x430b50]
push ecx
mov dword [esp + 0x18], eax
push edx
push 0
lea eax, [esp + 0x38]
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
push esi
call dword [sym.imp.USER32.dll_FillRect]
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [esp + 0x16c]
sub eax, 0x1388
cmp ecx, 1
jne 0x408da6
push 0
jmp 0x408dae
mov eax, dword [eax*4 + 0x435b60]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push 0
push 0x31
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push esi
call ebp
lea ecx, [esp + 0x60]
push 0x104
push ecx
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
lea eax, [esp + 0x60]
push edx
push eax
call ebx
lea ecx, [esp + 0x64]
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea edx, [esp + 0x60]
push edx
call ebx
push eax
lea eax, [esp + 0x64]
push eax
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [esp + 0x170]
test eax, eax
je 0x408e9b
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [0x430b4c]
mov edx, dword [0x430b48]
push ecx
push edx
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [esp + 0x28], eax
call ebp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [0x430b54]
mov eax, dword [0x430b50]
mov ecx, dword [0x430b4c]
push 0xcc0020
push edx
mov edx, dword [0x430b48]
push eax
push 0
push 0
push esi
push ecx
push edx
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x3c]
push eax
push ebx
call ebp
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x28]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x1c]
push edx
push esi
call ebp
mov eax, dword [esp + 0x18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x24]
push edi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call esi
mov eax, dword [esp + 0x170]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x408eed
push eax
call esi
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x154
ret