Function at 0x440137
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
mov ecx, eax
and ecx, 0x10
push edi
mov edi, dword [esi + 0x18]
and eax, 6
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], edi
je 0x440170
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ebx, dword [ebp + 8]
jmp 0x44018b
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x48]
cmp eax, 0xffffffff
jne 0x440183
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x44]
cmp eax, 0xffffffff
jne 0x4401ab
push 0xf
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0xf
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x4401b8
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x44]
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
je 0x4401cb
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x4401d0
mov eax, 0x743c00
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
mov dword [ebp - 0x30], eax
call ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
push edi
call ebx
add esi, 0x1c
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xffffffffffffffff
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x28], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x44]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_InflateRect]
push 5
push 5
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_RoundRect]
mov esi, dword [ebp + 8]
push 0xfffffffffffffff0
push dword [esi]
mov dword [ebp - 0x14], 0x105
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x2000
jne 0x440257
mov dword [ebp - 0x14], 0x125
push 0
push 0
push 0xe
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455447
pop ecx
push esi
push eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [ebp - 0x20], 0
je 0x4402bd
mov esi, dword [ebp - 0x24]
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xfffffffffffffffd
movsd dword es:[edi], dword [esi]
push 0xfffffffffffffffd
lea eax, [ebp - 0x44]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_InflateRect]
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
jmp 0x4402c0
mov edi, dword [ebp - 8]
cmp dword [ebp - 0x18], 0
je 0x4402d6
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x14]
lea eax, [ebp - 0x44]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x1c]
call fcn.0045504c
pop ecx
push dword [ebp - 0x28]
push edi
call ebx
push dword [ebp - 0xc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0x2c]
push edi
call ebx
push dword [ebp - 0x30]
call esi
push dword [ebp - 0x10]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x34]
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4