Function at 0x42222d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8bc
mov eax, dword [0x4c3a60]
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 0x4227ba
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 0x422310
call esi
mov edi, eax
dec edi
neg edi
sbb edi, edi
and edi, 4
inc edi
inc edi
jmp 0x422333
cmp dword [ebx + 0xe8], edi
je 0x422327
call esi
mov edi, eax
dec edi
neg edi
sbb edi, edi
and edi, 4
inc edi
jmp 0x422333
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 0x422359
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.00420f38
cmp dword [ebx + 0xe4], 0
je 0x422372
cmp edi, dword [ebx + 0x60]
je 0x42237a
mov dword [ebx + 0x60], edi
call fcn.004228a0
lea eax, [esp + 0x58]
push eax
push dword [ebx + 0xe4]
call fcn.0045d740
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 0x422428
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.0045dc50
push 0x4d0bc4
lea ecx, [esp + 0x10]
call fcn.0041a220
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0xc8], ax
lea eax, [esp + 0xca]
push eax
call fcn.00476cc0
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.0041c1db
push 1
call fcn.004227e6
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 0x4224e5
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x60]
cmp eax, esi
jae 0x4224c9
mov dword [esp + 0x48], edx
jmp 0x4224d1
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 0x4224f7
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 0x422577
cmp dword [ebx + 0x104], edx
je 0x422548
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
lea edx, [esi + ecx + 5]
cmp eax, edx
jb 0x422543
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 0x422553
mov eax, edx
cdq
sub eax, edx
sar eax, 1
dec eax
jmp 0x42254f
lea eax, [ecx + 5]
jmp 0x42254f
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 0x4225dc
cmp dword [ebx + 0x104], edx
je 0x4225bc
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
lea edx, [esi + ecx + 5]
cmp eax, edx
jb 0x4225b7
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 0x4225c6
mov eax, edx
cdq
sub eax, edx
sar eax, 1
dec eax
jmp 0x4225c2
lea eax, [ecx + 5]
jmp 0x4225c2
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 0x42262d
mov edx, dword [esp + 0x10]
sub edx, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
sub edx, 5
add eax, edx
jmp 0x422631
mov edx, dword [esp + 0x44]
cmp dword [ebx + 0x100], esi
je 0x422664
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.0045dc50
cmp dword [ebx + 0xfc], 1
jne 0x422727
push esi
call fcn.004227e6
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebx + 0x10c]
cmp dword [eax + 0x18], 8
jb 0x422690
mov eax, dword [eax + 4]
jmp 0x422693
add eax, 4
push eax
lea esi, [esp + 0x24]
call fcn.0041c0d9
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 0x4226db
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.0041a245
xor esi, esi
push dword [esp + 0x54]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebx + 0x30], esi
je 0x422753
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 0x422797
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.0041a245
cmp dword [esp + 0x38], esi
je 0x4227af
push dword [esp + 0x38]
call ebx
cmp edi, esi
je 0x4227ba
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.00476d3a
mov esp, ebp
pop ebp
ret