Function at 0x421ff0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8bc
mov eax, dword [0x4c3a10]
xor eax, esp
mov dword [esp + 0x8b8], eax
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x80]
push ecx
xor edi, edi
push eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], eax
call dword [sym.imp.USER32.dll_BeginPaint]
push dword [ebx + 4]
mov dword [esp + 0x7c], eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x42257d
lea eax, [esp + 0x28]
push eax
push dword [ebx + 4]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esp + 0x78]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
push eax
push ecx
push dword [esp + 0x80]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [esp + 0x28]
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0xf2
push dword [ebx + 4]
call esi
push edi
push edi
shr eax, 2
push 0xf0
push dword [ebx + 4]
test al, 1
je 0x4220d3
call esi
mov edi, eax
dec edi
neg edi
sbb edi, edi
and edi, 4
inc edi
inc edi
jmp 0x4220f6
cmp dword [ebx + 0xe8], edi
je 0x4220ea
call esi
mov edi, eax
dec edi
neg edi
sbb edi, edi
and edi, 4
inc edi
jmp 0x4220f6
call esi
mov edi, eax
dec edi
neg edi
sbb edi, edi
and edi, 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x42211c
push eax
push eax
push 0xf0
push dword [ebx + 4]
call esi
mov edi, eax
dec edi
neg edi
sbb edi, edi
and edi, 4
add edi, 3
push dword [esp + 0x24]
mov esi, ebx
call fcn.00420494
cmp dword [ebx + 0xe4], 0
je 0x422135
cmp edi, dword [ebx + 0x60]
je 0x42213d
mov dword [ebx + 0x60], edi
call fcn.00422663
lea eax, [esp + 0x58]
push eax
push dword [ebx + 0xe4]
call fcn.0045c170
cmp dword [ebx + 0xf8], 1
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x74], eax
mov al, byte [ebx + 0xd4]
mov byte [esp + 0xc], 0
mov byte [esp + 0xd], 0
mov byte [esp + 0xe], al
mov byte [esp + 0xf], 1
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 0
mov byte [esp + 0x22], 0xff
mov byte [esp + 0x23], 1
jne 0x4221eb
push dword [esp + 0xc]
mov eax, dword [ebx + 0x154]
sub eax, dword [ebx + 0x14c]
push eax
mov eax, dword [ebx + 0x150]
sub eax, dword [ebx + 0x148]
push eax
mov eax, dword [ebx + 0x154]
sub eax, dword [ebx + 0x14c]
push 0
push 0
push dword [ebx + 0xdc]
push eax
mov eax, dword [ebx + 0x150]
sub eax, dword [ebx + 0x148]
push eax
push dword [ebx + 0x14c]
push dword [ebx + 0x148]
push edi
call fcn.0045c680
push 0x4d0b2c
lea ecx, [esp + 0x10]
call fcn.00419cf8
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0xc8], ax
lea eax, [esp + 0xca]
push eax
call fcn.004766d0
add esp, 0xc
push 0x401
lea eax, [esp + 0xc4]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0041bd72
push 1
call fcn.004225a9
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x10]
push dword [eax - 0xc]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0x5c]
xor edx, edx
cmp dword [ebx + 0xf0], edx
jne 0x4222a8
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x60]
cmp eax, esi
jae 0x42228c
mov dword [esp + 0x48], edx
jmp 0x422294
sub eax, esi
shr eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
add eax, esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], ecx
jmp 0x4222ba
lea esi, [ebx + 0x128]
lea edi, [esp + 0x44]
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 edi, dword [esp + 0x24]
mov esi, dword [esp + 0x3c]
cmp dword [ebx + 0xf4], edx
jne 0x42233a
cmp dword [ebx + 0x104], edx
je 0x42230b
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
lea edx, [esi + ecx + 5]
cmp eax, edx
jb 0x422306
mov edx, eax
sub edx, esi
mov eax, edx
sub eax, ecx
sub eax, 5
shr eax, 1
cmp dword [ebx + 0x100], 0
lea eax, [eax + ecx + 5]
mov dword [esp + 0x10], eax
jne 0x422316
mov eax, edx
cdq
sub eax, edx
sar eax, 1
dec eax
jmp 0x422312
lea eax, [ecx + 5]
jmp 0x422312
mov eax, dword [esp + 0x4c]
add eax, 6
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x40]
add eax, esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
dec eax
mov dword [esp + 0x14], eax
lea eax, [eax + ecx - 1]
jmp 0x42239f
cmp dword [ebx + 0x104], edx
je 0x42237f
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
lea edx, [esi + ecx + 5]
cmp eax, edx
jb 0x42237a
mov edx, eax
sub edx, esi
mov eax, edx
sub eax, ecx
sub eax, 5
shr eax, 1
cmp dword [ebx + 0x100], 0
lea eax, [eax + ecx + 5]
mov dword [esp + 0x10], eax
jne 0x422389
mov eax, edx
cdq
sub eax, edx
sar eax, 1
dec eax
jmp 0x422385
lea eax, [ecx + 5]
jmp 0x422385
mov eax, dword [ebx + 0x138]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x40]
add eax, esi
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x13c]
mov dword [esp + 0x14], eax
add eax, ecx
push 1
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebx + 0x168]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push dword [eax - 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x4c]
xor esi, esi
cmp dword [ebx + 0x104], esi
je 0x4223f0
mov edx, dword [esp + 0x10]
sub edx, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
sub edx, 5
add eax, edx
jmp 0x4223f4
mov edx, dword [esp + 0x44]
cmp dword [ebx + 0x100], esi
je 0x422427
push dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
push dword [esp + 0x78]
sub ecx, dword [esp + 0x50]
push dword [esp + 0x78]
sub eax, edx
push esi
push esi
push dword [ebx + 0xe4]
push ecx
push eax
push dword [esp + 0x68]
push edx
push edi
call fcn.0045c680
cmp dword [ebx + 0xfc], 1
jne 0x4224ea
push esi
call fcn.004225a9
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebx + 0x10c]
cmp dword [eax + 0x18], 8
jb 0x422453
mov eax, dword [eax + 4]
jmp 0x422456
add eax, 4
push eax
lea esi, [esp + 0x24]
call fcn.0041bc70
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x3c]
push eax
push dword [esi - 0xc]
push esi
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp dword [ebx + 0x108], 0
mov eax, dword [ebx + 0x158]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
je 0x42249e
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
add eax, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x15c]
mov dword [esp + 0x14], eax
push 1
add eax, ecx
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebx + 0x16c]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
lea eax, [esp + 0x14]
push eax
push dword [esi - 0xc]
push esi
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
lea ecx, [esi - 0x10]
call fcn.00419d1d
xor esi, esi
push dword [esp + 0x54]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebx + 0x30], esi
je 0x422516
dec dword [esp + 0x10]
dec dword [esp + 0x14]
inc dword [esp + 0x18]
inc dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
push 0xcc0020
push esi
push esi
push edi
push eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
push eax
push esi
push esi
push dword [esp + 0x98]
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x38]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
call ebx
test eax, eax
je 0x42255a
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.00419d1d
cmp dword [esp + 0x38], esi
je 0x422572
push dword [esp + 0x38]
call ebx
cmp edi, esi
je 0x42257d
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x80]
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x8c4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0047674a
mov esp, ebp
pop ebp
ret