Function at 0x4a2a50
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4e6fdc
call fcn.00471fb4
sub esp, 0x170
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004a233e
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
lea esi, [ebp - 0x48]
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]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
sub ecx, dword [ebp - 0x48]
and dword [ebp - 4], 0
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], eax
push dword [ebp + 8]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
call edi
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x10], eax
push eax
call esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x78], eax
push 0xf
mov byte [ebp - 4], 2
call fcn.00487d3d
pop ecx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, ebx
call fcn.004b65f4
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x4a2af9
push 0
push eax
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.004b7276
jmp 0x4a2b04
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.004b730e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x7c]
imul eax, eax, 0x174
cmp dword [eax + ecx + 0x214], 0
lea eax, [eax + ecx + 0x210]
mov dword [ebp - 0x34], eax
jne 0x4a2b61
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x4a2b3d
push dword [ebp + 0xc]
call esi
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x4a2b4e
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0x2c], edi
je 0x4a2f24
push dword [ebp - 0x2c]
call esi
jmp 0x4a2f24
push 1
push 0xff00ff
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x10]
call fcn.004a03dd
add esp, 0x14
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xffff
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x5c], eax
and dword [ebp - 0x38], 0xc0
je 0x4a2d16
test al, 0x40
je 0x4a2c24
xor edi, edi
push edi
push 1
push 0xf6
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x4a2d16
and dword [ebp - 0x14], 0xfffffffe
push 0x20
pop eax
mov dword [ebp - 0x28], edi
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x24], edi
call fcn.0049fb90
add esp, 0xc
cmp dword [ebp + 0x10], 1
jne 0x4a2bfb
push 1
lea eax, [ebp - 0x28]
push 1
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x1c]
push 3
sub eax, dword [ebp - 0x24]
push edi
push edi
push eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_DrawIconEx]
jmp 0x4a2d16
test al, 0x80
je 0x4a2d16
push 0
push 0
push 0xf6
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x4a2d16
lea ecx, [ebp - 0x74]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x54]
cmp dword [ebp - 0x70], eax
jge 0x4a2c64
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x50]
sub ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x70], ecx
jge 0x4a2c72
mov ecx, dword [ebp - 0x70]
push dword [ebp - 0x14]
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
inc dword [ebp - 0x70]
inc dword [ebp - 0x6c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x20], ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0049fb90
add esp, 0xc
cmp dword [ebp + 0x10], 1
jne 0x4a2cad
push 1
lea eax, [ebp - 0x28]
push 1
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp + 8]
mov byte [ebp - 4], 3
call edi
push dword [ebp - 0x18]
mov edi, eax
mov dword [ebp - 0x30], edi
push edi
call esi
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
push 0xc0c0c0
push 0xcc0020
push 0
push 0
dec eax
push edi
push eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
dec eax
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x10]
call fcn.0049f716
add esp, 0x28
push dword [ebp + 0x10]
push edi
call esi
test edi, edi
je 0x4a2d16
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x4a2d0b
xor edi, edi
test edi, edi
je 0x4a2d16
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx + 0x7c]
add eax, 0x958
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x7c], eax
mov edi, dword [ebp - 0x34]
mov eax, dword [edi + 0x148]
test eax, eax
je 0x4a2d4f
push 1
pop ecx
cmp eax, ecx
je 0x4a2d51
push 2
pop ecx
cmp eax, ecx
je 0x4a2d51
xor ecx, ecx
mov eax, dword [edi + 0x14c]
test eax, eax
jne 0x4a2d60
push 0x20
pop eax
jmp 0x4a2d74
cmp eax, 1
jne 0x4a2d69
push 0x24
jmp 0x4a2d5d
cmp eax, 2
jne 0x4a2d72
push 0x28
jmp 0x4a2d5d
xor eax, eax
or eax, ecx
cmp dword [ebp - 0x38], 0
mov dword [ebp + 0x10], eax
je 0x4a2da2
mov ecx, dword [ebp - 0x5c]
test ch, 2
je 0x4a2d8d
and dword [ebp + 0x10], 0xfffffffc
jmp 0x4a2da2
mov eax, 0x100
and ecx, eax
cmp ecx, eax
jne 0x4a2da2
mov eax, dword [ebp + 0x10]
and al, 0xfe
or al, 2
mov dword [ebp + 0x10], eax
mov eax, dword [0x52411c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x17c]
push 0xff
push eax
mov byte [ebp - 4], 6
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x17c]
lea ecx, [ebp - 0x14]
push eax
call fcn.004868ff
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], 0
je 0x4a2e97
mov eax, dword [ebx + 0x7c]
cmp dword [eax + 0xb9c], 0
je 0x4a2e97
push 1
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [edi + 0x154], 1
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
jne 0x4a2e67
lea esi, [ebp - 0x58]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x34]
mov eax, dword [esi + 0x160]
mov ecx, dword [esi + 0x15c]
push eax
lea eax, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [esi + 0x158]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x17c]
push eax
call ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
push ecx
push eax
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_DrawTextA]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [ebp - 0x34]
push dword [edi + 0x150]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x17c]
push eax
call ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x58]
push ecx
push eax
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004866d2
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
xor ebx, ebx
cmp dword [ebp - 0x30], ebx
je 0x4a2ebd
push dword [ebp - 0x30]
call edi
cmp dword [ebp - 0x18], ebx
je 0x4a2ec7
push dword [ebp - 0x18]
call edi
push 0xcc0020
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x10], ebx
je 0x4a2eff
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x4a2eff
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0xc], ebx
je 0x4a2f09
push dword [ebp + 0xc]
call edi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4a2f1a
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0x2c], ebx
je 0x4a2f24
push dword [ebp - 0x2c]
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14