Function at 0x421eaf
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8bc
mov eax, dword [0x4c2f90]
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 0x42243c
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 0x421f92
call esi
mov edi, eax
dec edi
neg edi
sbb edi, edi
and edi, 4
inc edi
inc edi
jmp 0x421fb5
cmp dword [ebx + 0xe8], edi
je 0x421fa9
call esi
mov edi, eax
dec edi
neg edi
sbb edi, edi
and edi, 4
inc edi
jmp 0x421fb5
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 0x421fdb
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.004226f2
cmp dword [ebx + 0xe4], 0
je 0x421ff4
cmp edi, dword [ebx + 0x60]
je 0x421ffc
mov dword [ebx + 0x60], edi
call fcn.00422522
lea eax, [esp + 0x58]
push eax
push dword [ebx + 0xe4]
call fcn.0045d070
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 0x4220aa
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.0045d580
push 0x4d00bc
lea ecx, [esp + 0x10]
call fcn.00419e8a
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0xc8], ax
lea eax, [esp + 0xca]
push eax
call fcn.004764d0
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.0041bee9
push 1
call fcn.00422468
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 0x422167
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x60]
cmp eax, esi
jae 0x42214b
mov dword [esp + 0x48], edx
jmp 0x422153
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 0x422179
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 0x4221f9
cmp dword [ebx + 0x104], edx
je 0x4221ca
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
lea edx, [esi + ecx + 5]
cmp eax, edx
jb 0x4221c5
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 0x4221d5
mov eax, edx
cdq
sub eax, edx
sar eax, 1
dec eax
jmp 0x4221d1
lea eax, [ecx + 5]
jmp 0x4221d1
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 0x42225e
cmp dword [ebx + 0x104], edx
je 0x42223e
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
lea edx, [esi + ecx + 5]
cmp eax, edx
jb 0x422239
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 0x422248
mov eax, edx
cdq
sub eax, edx
sar eax, 1
dec eax
jmp 0x422244
lea eax, [ecx + 5]
jmp 0x422244
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 0x4222af
mov edx, dword [esp + 0x10]
sub edx, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
sub edx, 5
add eax, edx
jmp 0x4222b3
mov edx, dword [esp + 0x44]
cmp dword [ebx + 0x100], esi
je 0x4222e6
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.0045d580
cmp dword [ebx + 0xfc], 1
jne 0x4223a9
push esi
call fcn.00422468
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebx + 0x10c]
cmp dword [eax + 0x18], 8
jb 0x422312
mov eax, dword [eax + 4]
jmp 0x422315
add eax, 4
push eax
lea esi, [esp + 0x24]
call fcn.0041bde7
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 0x42235d
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.00419eaf
xor esi, esi
push dword [esp + 0x54]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebx + 0x30], esi
je 0x4223d5
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 0x422419
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.00419eaf
cmp dword [esp + 0x38], esi
je 0x422431
push dword [esp + 0x38]
call ebx
cmp edi, esi
je 0x42243c
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.0047654a
mov esp, ebp
pop ebp
ret