Function at 0x422520
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x48913c
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4acab8]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0x70]
mov esi, dword [eax + 0x18]
mov dword [esp + 0x24], esi
xor ebx, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x70], ebx
mov cl, byte [ebp + 0x39]
mov byte [esp + 0x64], 1
test cl, 4
je 0x42257e
test byte [eax + 0x10], 1
jne 0x42257a
test cl, 8
jne 0x42257a
xor cl, cl
jmp 0x422581
mov cl, 1
jmp 0x422581
mov cl, byte [eax + 0x10]
add cl, cl
add cl, cl
xor cl, byte [ebp + 0x38]
add eax, 0x1c
and cl, 4
xor byte [ebp + 0x38], cl
mov edx, dword [eax - 0xc]
shr edx, 4
add dl, dl
add dl, dl
add dl, dl
xor dl, byte [ebp + 0x38]
push eax
and dl, 8
xor byte [ebp + 0x38], dl
mov edx, dword [eax - 0xc]
mov cl, byte [ebp + 0x38]
shr edx, 2
shl dl, 4
xor dl, cl
and dl, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
xor dl, cl
push eax
mov byte [ebp + 0x38], dl
call dword [sym.imp.USER32.dll_CopyRect]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov al, byte [ebp + 0x38]
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
test al, 0x40
jne 0x422618
test al, 8
jne 0x4225ec
test byte [ebp + 0x39], 2
je 0x422618
push ebx
call edi
mov ebx, eax
push ebx
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [sym.imp.USER32.dll_FrameRect]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
test ebx, ebx
je 0x422618
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
test byte [ebp + 0x38], 2
je 0x422628
push esi
mov ecx, ebp
call fcn.00422350
jmp 0x422638
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push esi
mov ecx, ebp
call edx
mov al, byte [ebp + 0x38]
test al, 4
je 0x42268e
test al, 0x40
je 0x422660
test al, 0x20
je 0x422842
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push esi
mov ecx, ebp
call edx
jmp 0x422842
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call edi
mov ebx, eax
push ebx
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.USER32.dll_FrameRect]
test ebx, ebx
je 0x422842
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x422842
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
call edi
mov ebx, dword [sym.imp.GDI32.dll_CreatePen]
push eax
push 0
push 0
call ebx
push 0x16
mov dword [esp + 0x24], eax
call edi
push eax
push 0
push 0
call ebx
push 0x10
mov dword [esp + 0x20], eax
call edi
push eax
push 0
push 0
call ebx
push 0x15
mov dword [esp + 0x1c], eax
call edi
push eax
push 0
push 0
call ebx
mov ebx, eax
mov al, byte [ebp + 0x38]
mov dword [esp + 0x14], ebx
test al, 0x40
je 0x42270c
test al, 1
je 0x422814
test al, 0x20
je 0x422814
push 0x10
call edi
push eax
push 0x14
call edi
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x30]
call fcn.00423430
jmp 0x422814
mov edx, dword [esp + 0x20]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push esi
call ebx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x38]
push 0
dec eax
push eax
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov edi, dword [sym.imp.GDI32.dll_LineTo]
push ecx
push edx
push esi
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push eax
push ecx
push esi
call edi
mov edx, dword [esp + 0x1c]
push edx
push esi
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
push 0
dec eax
push eax
inc ecx
push ecx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
inc eax
push eax
inc ecx
push ecx
push esi
call edi
mov eax, dword [esp + 0x30]
inc eax
push eax
mov eax, dword [esp + 0x38]
push eax
push esi
call edi
mov ecx, dword [esp + 0x14]
push ecx
push esi
call ebx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
push 0
dec eax
push eax
push edx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
dec eax
push eax
dec ecx
push ecx
push esi
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
dec eax
dec ecx
push eax
push ecx
push esi
call edi
mov eax, dword [esp + 0x18]
push eax
push esi
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
push 0
add eax, 0xfffffffe
push eax
inc ecx
push ecx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add eax, 0xfffffffe
push eax
add ecx, 0xfffffffe
push ecx
push esi
call edi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push ecx
add eax, 0xfffffffe
push eax
push esi
call edi
mov edx, dword [esp + 0x70]
push edx
push esi
call ebx
mov ebx, dword [esp + 0x14]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
test ebx, ebx
je 0x422821
push ebx
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42282c
push eax
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x422837
push eax
call edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x422842
push eax
call edi
mov eax, dword [0x4ab014]
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 4]
push ecx
mov byte [esp + 0x68], 2
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
push edi
lea ecx, [esp + 0x24]
call fcn.00423130
mov ebx, dword [esp + 0x20]
test eax, eax
jne 0x422872
xor eax, eax
jmp 0x42287d
xor edx, edx
mov dword [ebx - 8], edi
mov word [ebx + edi*2], dx
mov eax, ebx
inc edi
push edi
push eax
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, dword [esp + 0x28]
push edi
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [ebp + 0x260], 0
je 0x4228d4
mov al, byte [ebp + 0x38]
mov dl, al
shr dl, 4
and dl, 1
movzx ecx, dl
shr al, 2
push ecx
and al, 1
cmp dword [ebx - 8], 0
movzx edx, al
push edx
setne cl
lea eax, [esp + 0x44]
push eax
movzx edx, cl
push edi
push edx
push esi
mov ecx, ebp
call fcn.00421e40
cmp dword [ebp + 0x278], 0
je 0x42291a
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov al, byte [ebp + 0x38]
mov cl, al
shr cl, 4
and cl, 1
shr al, 2
movzx edx, cl
and al, 1
cmp dword [ebx - 8], 0
push edx
movzx eax, al
push eax
lea ecx, [esp + 0x44]
push ecx
setne dl
movzx eax, dl
push edi
push eax
push esi
mov ecx, ebp
call fcn.00421d00
cmp dword [ebx - 8], 0
je 0x422a3e
test byte [ebp + 0x38], 4
je 0x42293f
test byte [ebp + 0x39], 4
jne 0x42293f
push 1
push 1
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
push 0x411
mov dword [esp + 0x50], edx
lea edx, [esp + 0x40]
push edx
push 0xffffffffffffffff
push ebx
push esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], ecx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
sub edi, dword [esp + 0x44]
sub eax, dword [esp + 0x48]
sub edi, dword [esp + 0x4c]
add eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
cdq
sub eax, edx
sar eax, 1
lea edi, [edi + ecx - 0x14]
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
lea edx, [esp + 0x44]
push edx
call edi
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov al, byte [ebp + 0x38]
test al, 0x10
je 0x422a03
push 1
push 1
lea eax, [esp + 0x44]
push eax
call edi
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x11
lea ecx, [esp + 0x40]
push ecx
push 0xffffffffffffffff
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x44]
push edx
call edi
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x11
lea eax, [esp + 0x40]
push eax
jmp 0x422a34
test al, 5
jne 0x422a17
mov eax, dword [ebp + 0x54]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebp + 0x50]
jmp 0x422a25
mov eax, dword [ebp + 0x4c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebp + 0x48]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0x11
lea ecx, [esp + 0x40]
push ecx
push 0xffffffffffffffff
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov al, byte [ebp + 0x38]
test al, 0x40
je 0x422a49
test al, al
jns 0x422a88
test al, 8
je 0x422a88
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
push 0xfffffffffffffffd
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x3c]
push 0xfffffffffffffffd
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
call dword [sym.imp.USER32.dll_InflateRect]
lea ecx, [esp + 0x4c]
push ecx
push esi
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea edx, [ebx - 0xc]
mov byte [esp + 0x64], 1
cmp edx, dword [0x4ab010]
je 0x422aaf
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x422aaf
push esi
call fcn.00470613
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8