Function at 0x405972
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x18]
mov ecx, eax
and ecx, 0x10
and eax, 6
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
je 0x4059a9
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edi, dword [esp + 0x4c]
jmp 0x4059c5
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + 0x3c]
cmp eax, 0xffffffff
jne 0x4059bd
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x38]
cmp eax, 0xffffffff
jne 0x4059e9
push 0xf
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0xf
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, eax
jmp 0x4059f7
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, dword [edi + 0x38]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x18], 0
je 0x405a08
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x405a0d
mov eax, 0x743c00
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
mov dword [esp + 0x38], eax
call ebp
push edi
push ebx
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [esp + 0x10]
mov dword [esp + 0x38], eax
push ebx
call ebp
add esi, 0x1c
mov dword [esp + 0x24], esi
lea edi, [esp + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xffffffffffffffff
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c], eax
push 0xffffffffffffffff
lea eax, [esp + 0x40]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_InflateRect]
push 5
push 5
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push ebx
call dword [sym.imp.GDI32.dll_RoundRect]
mov edi, dword [esp + 0x4c]
push 0xfffffffffffffff0
push dword [edi]
mov dword [esp + 0x24], 0x105
call dword [sym.imp.USER32.dll_GetWindowLongW]
test ah, 0x20
jne 0x405a9d
mov dword [esp + 0x1c], 0x125
push 0
push 0
push 0xe
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
call fcn.00449614
pop ecx
push esi
push eax
push dword [edi]
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [esp + 0x20], 0
je 0x405af4
mov esi, dword [esp + 0x24]
lea edi, [esp + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xfffffffffffffffd
movsd dword es:[edi], dword [esi]
push 0xfffffffffffffffd
lea eax, [esp + 0x40]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
cmp dword [esp + 0x18], 0
je 0x405b0b
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
push 0xffffffffffffffff
push dword [esp + 0x58]
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [esp + 0x4c]
call fcn.0044951c
pop ecx
push dword [esp + 0x28]
push ebx
call ebp
push dword [esp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x2c]
push ebx
call ebp
push dword [esp + 0x30]
call esi
push dword [esp + 0x14]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [esp + 0x34]
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x38
ret 4