Function at 0x405a3f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [0x466a04], 0
push esi
mov esi, eax
je 0x405a5e
push dword [ebp + 0xc]
call fcn.00405843
jmp 0x405cc8
mov eax, dword [esi + 0x10]
mov ecx, eax
and ecx, 0x10
mov dword [ebp - 0xc], ecx
mov ecx, eax
and ecx, 6
push ebx
mov ebx, dword [esi + 0x18]
and eax, 1
test ecx, ecx
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], eax
je 0x405a95
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edi, dword [ebp + 0xc]
jmp 0x405ab0
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x3c]
cmp eax, 0xffffffff
jne 0x405aa8
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x38]
cmp eax, 0xffffffff
jne 0x405ad0
push 0xf
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0xf
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x405add
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x38]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [ebp - 4]
mov dword [ebp - 0x20], eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
add esi, 0x1c
cmp dword [ebp - 8], 0
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1c], eax
movsd dword es:[edi], dword [esi]
je 0x405b3c
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
push esi
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.USER32.dll_FrameRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x405b5f
cmp dword [ebp - 0xc], 0
je 0x405b50
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x10
push 4
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov esi, dword [ebp - 0x10]
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
cmp dword [ebp - 8], esi
lea eax, [ebp - 0x30]
je 0x405b80
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.dll_InflateRect]
jmp 0x405b9c
cmp dword [ebp - 0xc], esi
je 0x405b8b
push 0xfffffffffffffffd
push 0xfffffffffffffffd
jmp 0x405b8f
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.dll_InflateRect]
dec dword [ebp - 0x30]
dec dword [ebp - 0x2c]
push dword [ebp - 4]
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
cmp dword [ebp - 8], esi
jne 0x405bb4
cmp dword [ebp - 0x18], esi
je 0x405bbc
add dword [ebp - 0x30], 2
add dword [ebp - 0x2c], 2
mov edi, dword [ebp + 0xc]
push 0xfffffffffffffff0
push dword [edi]
mov dword [ebp - 8], 0x105
call dword [sym.imp.USER32.dll_GetWindowLongW]
test ah, 0x20
jne 0x405bdc
mov dword [ebp - 8], 0x125
push esi
push esi
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.00448b1a
pop ecx
push esi
push eax
push dword [edi]
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [ebp - 8]
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
cmp dword [ebp - 0x18], 0
je 0x405c4d
mov esi, dword [ebp - 0x10]
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
dec dword [ebp - 0x30]
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x125
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
cmp dword [ebp - 0xc], 0
je 0x405c93
mov esi, dword [ebp - 0x10]
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
movsd dword es:[edi], dword [esi]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
push esi
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.USER32.dll_FrameRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0xfffffffffffffffc
push 0xfffffffffffffffc
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push dword [ebp + 0xc]
call fcn.00448a22
pop ecx
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
xor eax, eax
pop edi
inc eax
pop ebx
pop esi
leave
ret 8