Function at 0x402462
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
mov esi, ecx
push edi
mov bl, byte [esi + 0x20]
push dword [esi + 4]
and bl, 1
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x402488
mov eax, dword [esi + 0x34]
jmp 0x4024b1
mov eax, dword [esi + 0x40]
mov ecx, eax
and ecx, 4
cmp cl, 4
jne 0x40249a
mov eax, dword [esi + 0x2c]
jmp 0x4024b1
test bl, bl
jne 0x4024a7
and eax, 2
cmp al, 2
je 0x4024ae
jmp 0x4024b6
and eax, 1
cmp al, 1
jne 0x4024b6
mov eax, dword [esi + 0x30]
cmp eax, 0xffffffff
jne 0x4024b9
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x40]
xor edi, edi
and ecx, 4
cmp cl, 4
jne 0x4024d5
test byte [esi + 0x20], 6
je 0x4024d5
cmp dword [esi + 0x2c], 0xffffffff
jne 0x4024d5
push 1
pop edi
push 0
push edi
push edi
push dword [ebp + 8]
push eax
push dword [esi + 0x24]
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
test byte [esi + 0x20], 6
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
je 0x402581
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call edi
mov eax, dword [esi + 0x40]
mov ecx, eax
and ecx, 4
cmp cl, 4
jne 0x40251d
mov eax, dword [esi + 0x20]
push 0xf
not eax
and eax, 2
shl eax, 2
or al, 2
jmp 0x402536
test bl, bl
je 0x402528
and eax, 1
cmp al, 1
jne 0x402544
mov eax, dword [esi + 0x20]
push 0xf
not eax
and eax, 2
or al, 8
shr eax, 1
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawEdge]
test bl, bl
jne 0x402581
mov eax, dword [esi + 0x40]
and eax, 2
cmp al, 2
jne 0x402581
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x2e
call ebx
neg eax
shl eax, 1
push eax
push 0x2d
call ebx
neg eax
shl eax, 1
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea eax, [ebp - 0x24]
push eax
push dword [esi + 4]
call edi
and word [ebp - 0x824], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x822]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x824]
push 0x400
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x402658
push 1
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push 0
push 0x31
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp + 8]
call ebx
push 1
mov dword [ebp - 4], eax
pop edi
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test ah, 3
je 0x4025ff
push edi
jmp 0x40260f
test ah, 1
je 0x402608
xor edi, edi
jmp 0x402610
test ah, 2
je 0x402610
push 2
pop edi
mov eax, dword [esi + 0x40]
and eax, 4
cmp al, 4
jne 0x402628
push 1
lea eax, [ebp - 0x24]
push 1
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0xffffff
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetTextColor]
or edi, 0x24
lea eax, [ebp - 0x24]
push edi
push eax
lea eax, [ebp - 0x824]
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 4]
push dword [ebp + 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret 4