Function at 0x10016535
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 4
je 0x10016552
push 8
jmp 0x10016554
push 0xc
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
sub ebx, dword [ebp - 0x34]
push 4
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xf00021
mov dword [ebp - 8], eax
push 1
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push esi
call dword [sym.imp.GDI32.dll_PatBlt]
push 0xf00021
push dword [ebp - 4]
push 1
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push esi
call dword [sym.imp.GDI32.dll_PatBlt]
push 0xf00021
mov eax, dword [ebp - 0x28]
push 1
dec eax
push ebx
push eax
push dword [ebp - 0x34]
push esi
call dword [sym.imp.GDI32.dll_PatBlt]
push 0xf00021
mov eax, dword [ebp - 0x2c]
push dword [ebp - 4]
push 1
push dword [ebp - 0x30]
dec eax
push eax
push esi
call dword [sym.imp.GDI32.dll_PatBlt]
push dword [ebp - 8]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0xc]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x4c]
push ecx
push 0x18
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_GetObjectA]
push 4
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 1
je 0x100166d9
push 0xc0c0c0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xf00021
mov dword [ebp - 0xc], eax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push 1
push 1
push esi
call dword [sym.imp.GDI32.dll_PatBlt]
push dword [ebp - 0xc]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x64
mov eax, dword [0x10030480]
mov dword [ebp - 0x24], 3
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push ecx
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
mov dword [ebp - 0xc], eax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push 0
push 0
mov eax, dword [ebp - 4]
sub eax, 2
sub ebx, 2
push dword [ebp - 8]
push eax
push ebx
push 1
push 1
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [ebp - 0xc]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x10016701
push 0xcc0020
mov eax, dword [ebp - 4]
push dword [ebp - 0x44]
sub eax, 2
sub ebx, 2
push dword [ebp - 0x48]
push 0
push 0
push dword [ebp - 8]
push eax
push ebx
push 1
push 1
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x34]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x28]
mov ecx, 0xc
cdq
sub eax, edx
sar eax, 1
push 3
mov ebx, eax
mov eax, dword [ebp - 4]
imul eax, eax, 5
cdq
idiv ecx
sub ebx, eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 6
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 4
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 4
je 0x1001675f
push 0xff00ff
jmp 0x10016761
push 0
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x18]
push ecx
push ebx
push dword [ebp - 0xc]
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8