Function at 0x4c227e
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4e84c4
call fcn.00471fb4
sub esp, 0x49c
push ebx
push esi
push edi
mov esi, ecx
push str.IsOwnerDraw
mov dword [ebp - 0x30], esi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetPropA]
xor ebx, ebx
cmp eax, ebx
je 0x4c22b9
push dword [ebp + 8]
mov ecx, esi
call fcn.004c289d
jmp 0x4c27c3
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
sub esp, 0x10
lea esi, [ebp - 0x2c]
mov edi, esp
lea ecx, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00488511
mov edi, dword [ebp - 0x30]
mov dword [ebp - 4], ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov esi, eax
mov eax, dword [edi + 0x70]
neg esi
sbb esi, esi
inc esi
cmp dword [eax + 0x210], ebx
je 0x4c2327
mov ecx, edi
call fcn.004b65f4
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x4c231a
push ebx
push eax
push dword [ebp - 0x60]
mov ecx, edi
call fcn.004b7276
jmp 0x4c237b
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.004b730e
jmp 0x4c237b
cmp dword [eax + 0x218], ebx
je 0x4c2357
mov ecx, esi
push 1
imul ecx, ecx, 0x148
push 0xff00ff
lea eax, [ecx + eax + 0x214]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x60]
call fcn.004a03dd
add esp, 0x14
jmp 0x4c237b
push dword [eax + esi*4 + 0x4a4]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
push 2
push ebx
push ebx
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp + 8], eax
mov al, byte [0x527a08]
mov byte [ebp - 0x4a8], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4a7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x4a8]
push 0x3ff
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
imul esi, esi, 0x2c
mov eax, dword [edi + 0x70]
push 0xb
pop ecx
lea edi, [ebp - 0xa8]
lea esi, [esi + eax + 0x4ac]
rep movsd dword es:[edi], dword [esi]
cmp dword [eax + 0x578], ebx
jne 0x4c2415
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
push 2
and eax, 1
pop ecx
and edx, ecx
mov dword [ebp - 0x38], edx
jne 0x4c23f8
xor ecx, ecx
cmp eax, ebx
setne cl
mov eax, dword [ebp + 8]
push 0
and eax, 0x200
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x38], eax
pop eax
setne al
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x4a8]
push eax
call fcn.004723b0
test eax, eax
pop ecx
jbe 0x4c24f3
lea eax, [ebp - 0x4a8]
lea ecx, [ebp - 0x34]
push eax
call fcn.004866fb
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
push 1
push eax
lea eax, [ebp - 0xa8]
mov ecx, dword [0x52ac04]
push eax
mov eax, dword [esi + 0x70]
add eax, 0x504
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x60]
call fcn.0048ab4f
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.004866d2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x2c]
cmp eax, ecx
jg 0x4c2497
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
sub eax, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x28]
cmp eax, ecx
jle 0x4c24f6
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
push dword [esi + 4]
call fcn.004b7967
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, esi
call fcn.004b7945
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x2c]
cmp eax, ecx
jg 0x4c24cc
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x28]
cmp ecx, edx
jg 0x4c24de
mov ecx, edx
push 1
push ecx
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x4c24f6
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
and eax, 0x1f
cmp eax, 8
jg 0x4c25a0
je 0x4c2590
sub eax, 3
je 0x4c2550
dec eax
je 0x4c2525
dec eax
je 0x4c2521
dec eax
jne 0x4c27b7
push 5
jmp 0x4c2527
push 0x10
jmp 0x4c2527
push 0xc
call fcn.00487d3d
pop ecx
push eax
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
push 2
push ebx
push ebx
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x4c27b7
push ebx
push ebx
push 0x171
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
je 0x4c27b7
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x2c]
push 3
push ecx
push edx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_DrawStateA]
jmp 0x4c27b7
push 0x10
call fcn.00487d3d
mov esi, eax
push 0x10
jmp 0x4c2792
cmp eax, 9
je 0x4c2787
cmp eax, 0xe
je 0x4c2665
cmp eax, 0x12
jne 0x4c27b7
lea esi, [ebp - 0x2c]
lea edi, [ebp - 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]
push 0x14
pop esi
push esi
call fcn.00487d3d
push esi
mov edi, eax
call fcn.00487d3d
pop ecx
pop ecx
push edi
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x60]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.004b94db
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push esi
call fcn.00487d3d
push esi
mov edi, eax
call fcn.00487d3d
pop ecx
pop ecx
push edi
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x60]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.004b94db
dec dword [ebp - 0x1c]
dec dword [ebp - 0x18]
push 0x10
call fcn.00487d3d
push 0x10
mov esi, eax
call fcn.00487d3d
pop ecx
pop ecx
push esi
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
jmp 0x4c27af
push ebx
push ebx
push 0x173
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
mov dword [ebp - 0x38], eax
je 0x4c27b7
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test byte [ebp + 9], 2
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x4c26d0
lea ecx, [ebp - 0x7c]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x78]
sub eax, edi
mov esi, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x74]
cdq
sub eax, edx
sar eax, 1
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add edi, eax
mov eax, dword [ebp - 0x10]
sub eax, esi
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov dword [ebp - 0x18], esi
add esi, ecx
jmp 0x4c26d6
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp + 8], eax
sub esi, dword [ebp - 0x18]
sub edi, dword [ebp - 0x1c]
push esi
push edi
push dword [ebp - 0x60]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x3c], eax
call esi
mov edi, eax
mov dword [ebp - 0x64], edi
push 4
mov byte [ebp - 4], 4
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push ebx
push ebx
push ebx
push dword [ebp - 0x38]
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawStateA]
mov eax, dword [ebp - 0x60]
push 0xf
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0xcc0020
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x38]
call fcn.0049f716
add esp, 0x28
push edi
push dword [ebp + 8]
call esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
cmp edi, ebx
je 0x4c276d
push edi
call esi
cmp dword [ebp - 0x3c], ebx
je 0x4c2777
push dword [ebp - 0x3c]
call esi
cmp dword [ebp + 8], ebx
je 0x4c27b7
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x4c27b7
push 5
call fcn.00487d3d
mov esi, eax
push 5
call fcn.00487d3d
pop ecx
pop ecx
push esi
push eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x60]
call fcn.004b94db
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.0048859c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4