Function at 0x426b02
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4a9450]
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 4], eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea ecx, [ebp - 4]
lea edi, [esi + 2]
push edi
call fcn.00406846
test eax, eax
je 0x426b41
mov eax, dword [ebp - 4]
mov dword [eax - 8], edi
mov eax, dword [ebp - 4]
and word [eax + edi*2], 0
mov eax, dword [ebp - 4]
inc esi
push esi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.004068ae
lea eax, [ebp - 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
lea esi, [ebp - 0x38]
lea edi, [ebp - 0x28]
mov al, byte [ebx + 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
neg al
movsd dword es:[edi], dword [esi]
sbb eax, eax
and al, 0xfc
movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
add eax, 0x14
push eax
call esi
mov dword [ebp - 0xc], eax
mov al, byte [ebx + 0x28]
neg al
sbb eax, eax
and eax, 4
add eax, 0x10
push eax
call esi
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
cmp ecx, edi
mov dword [ebp - 8], eax
jle 0x426bba
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [ebx + 0x2c]
mov edx, edi
sub edx, eax
add edi, eax
mov eax, dword [ebp - 0x24]
jmp 0x426bcd
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebx + 0x30]
sar eax, 1
mov ecx, eax
sub eax, edx
add ecx, edx
mov edx, dword [ebp - 0x28]
push dword [ebp - 8]
sub ecx, eax
sub edi, edx
push dword [ebp - 0xc]
push ecx
push edi
push eax
push edx
lea ecx, [ebp + 8]
call fcn.00426d61
mov eax, dword [ebp - 4]
cmp dword [eax - 8], 0
je 0x426d35
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
push eax
call fcn.00406383
mov eax, 0x4a9724
lea ecx, [ebp - 8]
push eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040673f
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004066f3
push eax
lea ecx, [ebp - 4]
call fcn.004065e8
lea ecx, [ebp - 0xc]
call fcn.00401085
lea ecx, [ebp - 0x10]
call fcn.00401085
lea ecx, [ebp - 8]
call fcn.00401085
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x426c4c
push 0x11
jmp 0x426c59
cmp byte [ebx + 0x20], 0
je 0x426c57
mov eax, dword [ebx + 0x24]
jmp 0x426c5b
push 8
call esi
mov edi, dword [sym.imp.GDI32.dll_SetTextColor]
push eax
push dword [ebp + 8]
call edi
push 0xf
mov dword [ebp - 0x10], eax
call esi
mov esi, dword [sym.imp.GDI32.dll_SetBkColor]
push eax
push dword [ebp + 8]
call esi
push 2
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
mov dword [ebp - 8], eax
jne 0x426cca
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
mov dword [ebp - 8], eax
jne 0x426cca
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, ebx
mov dword [ebp - 0x18], eax
call fcn.00426d44
or al, 0x24
test al, 2
je 0x426cea
sub dword [ebp - 0x30], 7
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 4]
push dword [eax - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x10]
push dword [ebp + 8]
call edi
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp - 0x14]
push dword [ebp + 8]
call esi
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 8], 0
je 0x426d35
push 0
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 4]
call fcn.00401085
pop edi
pop esi
pop ebx
leave
ret 4