Function at 0x41f5e8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8ac
mov eax, dword [0x4bca50]
xor eax, esp
mov dword [esp + 0x8a8], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
lea ecx, [esp + 0x70]
push ecx
xor ebx, ebx
push eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], eax
call dword [sym.imp.USER32.dll_BeginPaint]
push dword [esi + 4]
mov dword [esp + 0x6c], eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41f905
lea eax, [esp + 0x1c]
push eax
push dword [esi + 4]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push eax
push ecx
push dword [esp + 0x70]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0xf2
push dword [esi + 4]
call edi
push ebx
push ebx
shr eax, 2
push 0xf0
push dword [esi + 4]
test al, 1
je 0x41f6bf
call edi
mov edi, eax
dec edi
neg edi
sbb edi, edi
and edi, 4
inc edi
inc edi
jmp 0x41f6e2
cmp dword [esi + 0xc0], ebx
je 0x41f6d6
call edi
mov edi, eax
dec edi
neg edi
sbb edi, edi
and edi, 4
inc edi
jmp 0x41f6e2
call edi
mov edi, eax
dec edi
neg edi
sbb edi, edi
and edi, 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x41f70c
push ebx
push ebx
push 0xf0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
dec edi
neg edi
sbb edi, edi
and edi, 4
add edi, 3
push dword [esp + 0x10]
call fcn.0041e206
cmp dword [esi + 0xbc], ebx
je 0x41f722
cmp edi, dword [esi + 0x58]
je 0x41f72c
mov eax, esi
mov dword [esi + 0x58], edi
call fcn.0041f9d2
lea eax, [esp + 0x48]
push eax
push dword [esi + 0xbc]
call fcn.004573a0
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
cmp ecx, edx
jae 0x41f750
xor ecx, ecx
jmp 0x41f754
sub ecx, edx
shr ecx, 1
mov edi, dword [esp + 0x4c]
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], 0xff
mov byte [esp + 0x17], 1
push dword [esp + 0x14]
lea eax, [ecx + edx]
push edx
push edi
push ebx
push ebx
push dword [esi + 0xbc]
sub eax, ecx
push eax
push edi
push ecx
push ebx
push dword [esp + 0x38]
mov dword [esp + 0x8c], edi
call fcn.004578b0
push 0x4c9a34
lea ecx, [esp + 0x18]
call fcn.00417b99
xor eax, eax
push 0x7fe
mov word [esp + 0xb4], ax
lea eax, [esp + 0xb6]
push ebx
push eax
call fcn.00470920
add esp, 0xc
push 0x401
lea eax, [esp + 0xb4]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00419bbb
call fcn.0041f92b
push eax
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
push eax
push dword [edi - 0xc]
push edi
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
add eax, 5
add ecx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x44]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push 1
push dword [esp + 0x14]
mov dword [esp + 0x38], eax
add eax, ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 1
lea eax, [esp + 0x30]
push eax
push dword [edi - 0xc]
push edi
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [esp + 0x3c]
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esi + 0x30], ebx
je 0x41f897
dec dword [esp + 0x2c]
dec dword [esp + 0x30]
inc dword [esp + 0x34]
inc dword [esp + 0x38]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push 0xcc0020
push ebx
push ebx
push dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push eax
push ebx
push ebx
push dword [esp + 0x88]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
test eax, eax
je 0x41f8e1
mov dword [esp + 0x18], ebx
lea ecx, [edi - 0x10]
call fcn.00417bbe
cmp dword [esp + 0x18], ebx
je 0x41f8f5
push dword [esp + 0x18]
call esi
cmp dword [esp + 0x10], ebx
je 0x41f905
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x70]
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x8b4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0047099a
mov esp, ebp
pop ebp
ret