Function at 0x401f46
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x24]
push esi
lea esi, [ebx + 0x1c]
sub eax, dword [esi]
push edi
push dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x28]
sub eax, dword [ebx + 0x20]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0xa
pop ecx
mov dword [ebp + 0xc], eax
xor eax, eax
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x64], eax
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea ecx, [ebp - 0x68]
push ecx
push eax
mov word [ebp - 0x5a], 0x18
mov word [ebp - 0x5c], 1
mov dword [ebp - 0x68], 0x28
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
call edi
test byte [ebx + 0x10], 0x10
je 0x401ff4
push 7
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebp + 0xc]
call edi
push dword [ebx + 0x28]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [esi]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_Rectangle]
inc dword [esi]
dec dword [ebx + 0x24]
inc dword [ebx + 0x20]
dec dword [ebx + 0x28]
test byte [ebx + 0x10], 1
push 0x300f
je 0x402013
push 0xa
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_DrawEdge]
inc dword [ebx + 0x24]
inc dword [ebx + 0x28]
jmp 0x402024
push 5
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_DrawEdge]
dec dword [esi]
dec dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
sub eax, dword [esi]
mov esi, dword [ebx + 0x28]
sub esi, dword [ebx + 0x20]
lea edi, [eax - 1]
lea ecx, [esi - 1]
imul edi, edi
mov edx, ecx
imul edx, ecx
xor ecx, ecx
add edi, edx
test esi, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], ecx
jle 0x402156
mov dword [ebp - 0x28], 0xffffffe0
cmp ecx, eax
mov dword [ebp - 8], ecx
jge 0x402143
imul ecx, ecx
mov dword [ebp - 0x34], ecx
jmp 0x40206c
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
imul eax, eax
add eax, ecx
shl eax, 6
cdq
idiv edi
push eax
call fcn.00401f18
and dword [ebp - 4], 0
test byte [ebx + 0x10], 1
pop ecx
mov dword [ebp - 0x2c], eax
je 0x402099
mov ecx, dword [ebp - 0x28]
cmp ecx, 0xfffffffe
jge 0x402099
mov dword [ebp - 4], ecx
movzx ecx, byte [0x40703e]
mov dl, byte [ebp - 4]
imul ecx, eax
shr ecx, 6
sub dl, cl
add dl, byte [0x407042]
xor ecx, ecx
mov ch, dl
movzx edx, byte [0x40703d]
imul edx, eax
mov al, byte [ebp - 4]
shr edx, 6
sub al, dl
add al, byte [0x407041]
mov cl, al
mov eax, dword [0x40703c]
and eax, 0xffff00ff
imul eax, dword [ebp - 0x2c]
shr eax, 6
mov dword [ebp - 0x2c], eax
mov al, byte [ebp - 4]
sub al, byte [ebp - 0x2c]
shl ecx, 8
add al, byte [0x407040]
movzx eax, al
or ecx, eax
mov eax, dword [ebx + 0x20]
add eax, dword [ebp - 0x20]
push ecx
push eax
mov eax, dword [ebx + 0x1c]
add eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SetPixel]
cmp dword [ebp - 8], esi
jge 0x402131
push dword [ebp - 4]
mov eax, dword [ebx + 0x20]
add eax, dword [ebp - 8]
push eax
mov eax, dword [ebx + 0x1c]
add eax, dword [ebp - 0x20]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SetPixel]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x30]
jl 0x402069
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0x28], 0xa
inc ecx
cmp ecx, esi
mov dword [ebp - 0x20], ecx
jl 0x402056
cmp dword [ebp + 0x10], 0
je 0x40228a
push 0x400
lea eax, [ebp - 0x468]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 6
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SetBkMode]
lea esi, [ebx + 0x1c]
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x410
lea eax, [ebp - 0x18]
push eax
movsd dword es:[edi], dword [esi]
push 0xffffffffffffffff
lea eax, [ebp - 0x468]
push eax
push dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.USER32.dll_DrawTextA]
call edi
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
push dword [ebp + 8]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x14]
sar eax, 1
mov dword [ebp - 0x18], eax
add edx, esi
add eax, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x402236
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
call esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SetTextColor]
inc dword [ebp - 0x18]
inc dword [ebp - 0x14]
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x468]
push eax
push dword [ebp + 0xc]
call edi
dec dword [ebp - 0x18]
dec dword [ebp - 0x14]
push 0x11
call esi
jmp 0x40223f
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_GetTextColor]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x468]
push eax
push dword [ebp + 0xc]
call edi
test byte [ebx + 0x10], 0x10
je 0x40228a
push 4
pop ecx
lea eax, [ebx + 0x1c]
mov dword [eax], ecx
mov dword [ebx + 0x20], ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffffc
mov dword [ebx + 0x24], ecx
mov ecx, dword [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
add ecx, 0xfffffffc
mov dword [ebx + 0x28], ecx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push eax
push eax
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x38]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebx
leave
ret