Function at 0xcf70d5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
cmp dword [0xd31390], 0
push ebx
push esi
push edi
je 0xcf70fa
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00cf73e8
jmp 0xcf73df
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ecx, eax
mov ebx, dword [esi + 0x18]
and ecx, 0x10
mov dword [esp + 0x14], ecx
mov ecx, eax
and eax, 1
mov dword [esp + 0xc], ebx
and ecx, 6
mov dword [esp + 0x1c], eax
mov eax, dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0xcf713a
push 0xe
call eax
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edi, dword [ebp + 0xc]
jmp 0xcf7154
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x4c], 0xffffffff
jne 0xcf714a
push 0x12
call eax
push eax
jmp 0xcf714d
push dword [edi + 0x4c]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [edi + 0x48], 0xffffffff
mov dword [esp + 0x20], eax
jne 0xcf7174
push 0xf
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0xf
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0xcf7184
push dword [edi + 0x48]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x48]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [esp + 0x10]
mov dword [esp + 0x30], eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esp + 0x1c], 0
lea edi, [esp + 0x30]
mov dword [esp + 0x28], eax
lea eax, [esi + 0x1c]
mov esi, eax
mov dword [esp + 0x18], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0xcf71ed
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [esp + 0x30]
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_FrameRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0xcf7213
cmp dword [esp + 0x14], 0
je 0xcf7203
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x10
push 4
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov esi, dword [esp + 0x18]
lea edi, [esp + 0x30]
lea eax, [esp + 0x30]
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 [esp + 0x1c]
test esi, esi
je 0xcf7238
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.dll_InflateRect]
jmp 0xcf7258
cmp dword [esp + 0x14], 0
je 0xcf7245
push 0xfffffffffffffffd
push 0xfffffffffffffffd
jmp 0xcf7249
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.dll_InflateRect]
dec dword [esp + 0x30]
dec dword [esp + 0x34]
push dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
test esi, esi
jne 0xcf7275
cmp dword [esp + 0x24], esi
je 0xcf727d
add dword [esp + 0x30], eax
add dword [esp + 0x34], eax
mov edi, dword [ebp + 0xc]
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
mov edx, 0x300
mov ebx, ecx
and eax, edx
shr ebx, 8
not ebx
and ebx, 0x20
or ebx, 0x104
cmp eax, edx
jne 0xcf72aa
or ebx, 1
test ecx, 0x200
je 0xcf72b9
push 2
pop eax
or ebx, eax
jmp 0xcf72c4
test ecx, 0x100
jne 0xcf72c4
or ebx, 1
push 0
push 0
push 0xe
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
push 2
pop edx
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00c7fe0b
pop ecx
push esi
push eax
push dword [edi]
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
lea eax, [esp + 0x34]
push eax
push 0xffffffffffffffff
push dword [esp + 0x28]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_DrawTextW]
cmp dword [esp + 0x24], 0
je 0xcf7357
mov esi, dword [esp + 0x18]
lea edi, [esp + 0x30]
push 0x11
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc dword [esp + 0x34]
inc dword [esp + 0x38]
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebx
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push 0xffffffffffffffff
push dword [esp + 0x28]
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0xcf735b
mov ebx, dword [esp + 0xc]
cmp dword [esp + 0x14], 0
je 0xcf73a7
mov esi, dword [esp + 0x18]
lea edi, [esp + 0x30]
push 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [esp + 0x30]
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_FrameRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0xfffffffffffffffc
push 0xfffffffffffffffc
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push dword [esp + 0x1c]
call fcn.00c7fe14
pop ecx
push dword [esp + 0x28]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x20]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [esp + 0x2c]
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8