Function at 0x4084b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb64
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x49c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x48]
xor eax, eax
push ebp
push 0x4089f1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x64]
push eax
call sub.gdi32.dll_CreateBrushIndirect
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x7c], eax
mov edx, 0x78
mov eax, dword [ebp - 0x60]
call fcn.00408440
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x7c]
push eax
call sub.gdi32.dll_CreateBrushIndirect
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x88], eax
mov edx, 0x3c
mov eax, dword [ebp - 0x60]
call fcn.00408440
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x88]
push eax
call sub.gdi32.dll_CreateBrushIndirect
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x94], eax
mov edx, 0x1e
mov eax, dword [ebp - 0x60]
call fcn.00408440
mov dword [ebp - 0x90], eax
xor eax, eax
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x94]
push eax
call sub.gdi32.dll_CreateBrushIndirect
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x18]
mov eax, dword [ebp - 4]
push esi
push edi
lea esi, [eax + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
call sub.gdi32.dll_GetBkColor
mov dword [ebp - 0x34], eax
push 0x408a04
mov eax, dword [ebp - 0x18]
push eax
call sub.user32.dll_GetPropA
cmp eax, 1
jne 0x4085cd
mov edx, 0x78
mov eax, dword [ebp + 0xc]
call fcn.00408440
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x60]
push eax
push esi
call sub.gdi32.dll_SetBkColor
mov eax, dword [ebp + 0x10]
push eax
push esi
call sub.gdi32.dll_SetTextColor
cmp dword [ebp + 0xc], 0
jbe 0x408612
mov eax, dword [ebp - 4]
test byte [eax + 0x10], 1
je 0x408600
mov edx, 0x50
mov eax, dword [ebp + 0xc]
call fcn.00408440
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, edi
mov eax, esi
call fcn.00408a10
jmp 0x40861d
mov eax, dword [ebp - 0x1c]
push eax
push edi
push esi
call sub.user32.dll_FillRect
mov eax, dword [ebp - 4]
test byte [eax + 0x10], 0x10
je 0x40863c
mov eax, dword [edi]
mov dword [edi], eax
mov eax, dword [edi + 8]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0xc]
mov dword [edi + 0xc], eax
push esi
push edi
mov esi, edi
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
test bl, bl
ja 0x40866e
mov eax, dword [ebp - 4]
test byte [eax + 0x10], 1
je 0x408663
mov eax, dword [ebp - 0x28]
push eax
push edi
push esi
call sub.user32.dll_FillRect
jmp 0x40866e
mov eax, dword [ebp - 0x2c]
push eax
push edi
push esi
call sub.user32.dll_FillRect
push esi
push edi
lea esi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp - 4]
test byte [eax + 0x10], 1
je 0x40868b
add dword [edi], 2
mov eax, dword [edi + 4]
mov dword [edi + 4], eax
lea eax, [ebp - 0x495]
push eax
push 0x400
push 0xd
mov eax, dword [ebp - 0x18]
push eax
call sub.user32.dll_SendMessageA
cmp dword [ebp + 0xc], 0
jbe 0x4086b0
push 1
push esi
call sub.gdi32.dll_SetBkMode
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x4f97f8]
push eax
call sub.user32.dll_LoadImageA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
test byte [eax + 0x10], 4
je 0x408779
mov eax, dword [ebp + 0x10]
push eax
push esi
call sub.gdi32.dll_SetTextColor
mov eax, dword [edi]
add eax, dword [ebp - 0x14]
add eax, 5
mov dword [edi], eax
mov eax, dword [edi + 4]
mov dword [edi + 4], eax
push 0x25
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x495]
push eax
push esi
call sub.user32.dll_DrawTextA
lea eax, [ebp - 0x49c]
lea edx, [ebp - 0x495]
mov ecx, 0x401
call fcn.00404be0
cmp dword [ebp - 0x49c], 0
jne 0x408733
add dword [edi], 6
add dword [edi + 4], 6
push 3
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [edi + 4]
add eax, 5
push eax
mov eax, dword [edi]
sub eax, dword [ebp - 0x14]
push eax
push esi
call sub.user32.dll_DrawIconEx
mov eax, dword [edi]
mov dword [edi], eax
mov eax, dword [edi + 4]
mov dword [edi + 4], eax
push 1
push esi
call sub.gdi32.dll_SetBkMode
mov eax, dword [ebp + 0x10]
push eax
push esi
call sub.gdi32.dll_SetTextColor
jmp 0x4087f9
cmp dword [ebp + 0xc], 0
jbe 0x4087f9
mov eax, dword [ebp + 0x10]
push eax
push esi
call sub.gdi32.dll_SetTextColor
mov eax, dword [edi]
add eax, dword [ebp - 0x14]
add eax, 5
mov dword [edi], eax
mov eax, dword [edi + 4]
mov dword [edi + 4], eax
cmp dword [ebp - 0x14], 0
jne 0x4087a6
sub dword [edi], 3
sub dword [edi + 4], 2
push 0x25
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x495]
push eax
push esi
call sub.user32.dll_DrawTextA
push 3
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [edi + 4]
add eax, 5
push eax
mov eax, dword [edi]
sub eax, dword [ebp - 0x14]
push eax
push esi
call sub.user32.dll_DrawIconEx
mov eax, dword [edi]
mov dword [edi], eax
mov eax, dword [edi + 4]
mov dword [edi + 4], eax
push 1
push esi
call sub.gdi32.dll_SetBkMode
mov eax, dword [ebp + 0x10]
push eax
push esi
call sub.gdi32.dll_SetTextColor
push 0x25
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x495]
push eax
push esi
call sub.user32.dll_DrawTextA
test bl, bl
jbe 0x4089a0
mov dword [ebp - 0x70], 1
xor eax, eax
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x70]
push eax
call sub.gdi32.dll_CreateBrushIndirect
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push esi
push edi
lea esi, [eax + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov edx, 0x6e
mov eax, dword [ebp - 0x34]
call fcn.00408440
push eax
push 1
push 0
call sub.gdi32.dll_CreatePen
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
push esi
call sub.gdi32.dll_SelectObject
movzx eax, bl
push eax
movzx eax, bl
push eax
mov eax, dword [edi + 0xc]
push eax
mov eax, dword [edi + 8]
push eax
mov eax, dword [edi + 4]
push eax
mov eax, dword [edi]
push eax
push esi
call sub.gdi32.dll_RoundRect
mov eax, dword [ebp - 0x30]
push eax
call sub.gdi32.dll_DeleteObject
inc dword [edi]
dec dword [edi + 8]
inc dword [edi + 4]
dec dword [edi + 0xc]
mov eax, dword [ebp - 4]
test byte [eax + 0x10], 1
je 0x4088bb
mov eax, dword [ebp - 0x90]
push eax
push 1
push 0
call sub.gdi32.dll_CreatePen
mov dword [ebp - 0x30], eax
jmp 0x4088ce
mov eax, dword [ebp - 0x84]
push eax
push 1
push 0
call sub.gdi32.dll_CreatePen
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
push esi
call sub.gdi32.dll_SelectObject
movzx eax, bl
push eax
movzx eax, bl
push eax
mov eax, dword [edi + 0xc]
push eax
mov eax, dword [edi + 8]
push eax
mov eax, dword [edi + 4]
push eax
mov eax, dword [edi]
push eax
push esi
call sub.gdi32.dll_RoundRect
mov eax, dword [ebp - 0x30]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 4]
push esi
push edi
lea esi, [eax + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x34]
push eax
push 1
push 0
call sub.gdi32.dll_CreatePen
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
push esi
call sub.gdi32.dll_SelectObject
movzx eax, bl
sub eax, 2
jl 0x408984
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
mov dword [edi], eax
mov eax, dword [edi + 8]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0xc]
mov dword [edi + 0xc], eax
movzx edx, bl
push edx
movzx edx, bl
push edx
push eax
mov eax, dword [edi + 8]
push eax
mov eax, dword [edi + 4]
push eax
mov eax, dword [edi]
push eax
push esi
call sub.gdi32.dll_RoundRect
movzx eax, bl
push eax
movzx eax, bl
push eax
mov eax, dword [edi + 0xc]
push eax
mov eax, dword [edi + 8]
push eax
mov eax, dword [edi + 4]
push eax
mov eax, dword [edi]
push eax
push esi
call sub.gdi32.dll_RoundRect
dec dword [ebp - 0x38]
jne 0x408932
mov eax, dword [ebp - 0x30]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x1c]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x20]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x34]
push eax
push esi
call sub.gdi32.dll_SetBkColor
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x2c]
push eax
call sub.gdi32.dll_DeleteObject
push esi
mov eax, dword [ebp - 0x18]
push eax
call sub.user32.dll_ReleaseDC
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4089f8
lea eax, [ebp - 0x49c]
call fcn.00404970
ret