Function at 0x405391
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push str.CTRL_STRUCT
push dword [ebx + 0x14]
call sub.user32.dll_GetPropA
mov esi, eax
lea eax, [ebp - 0x6c]
mov edi, eax
mov ecx, 0x34
rep movsb byte es:[edi], byte [esi]
push dword [ebx + 0x14]
call sub.user32.dll_GetWindowTextLengthA
inc eax
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebx + 0x14]
call sub.user32.dll_GetWindowTextA
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.user32.dll_CopyRect
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_CopyRect
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
call sub.user32.dll_CopyRect
test dword [ebx + 0x10], 1
je 0x40544e
cmp dword [ebp - 0x58], 0
je 0x405433
push 0x10
lea eax, [ebx + 0x1c]
push eax
push dword [ebx + 0x18]
call sub.user32.dll_FillRect
push 0xf
push 0xa
lea eax, [ebx + 0x1c]
push eax
push dword [ebx + 0x18]
call sub.user32.dll_DrawEdge
jmp 0x4054f2
push 0x10
lea eax, [ebx + 0x1c]
push eax
push dword [ebx + 0x18]
call sub.user32.dll_FillRect
sub dword [ebp - 0x1c], 2
sub dword [ebp - 0x20], 4
jmp 0x4054f2
cmp dword [ebp - 0x60], 1
je 0x4054a4
cmp dword [ebp - 0x58], 0
je 0x405494
push 0x10
lea eax, [ebx + 0x1c]
push eax
push dword [ebx + 0x18]
call sub.user32.dll_FillRect
push 0xf
push 5
lea eax, [ebx + 0x1c]
push eax
push dword [ebx + 0x18]
call sub.user32.dll_DrawEdge
push 0xfffffffffffffffb
push 0xfffffffffffffffb
lea eax, [ebp - 0x18]
push eax
call sub.user32.dll_InflateRect
push 5
push 5
lea eax, [ebp - 0x18]
push eax
call sub.user32.dll_InflateRect
jmp 0x4054f2
push 0x10
lea eax, [ebx + 0x1c]
push eax
push dword [ebx + 0x18]
call sub.user32.dll_FillRect
jmp 0x4054f2
mov eax, dword [0x407104]
cmp eax, dword [ebx + 0x14]
jne 0x4054e4
cmp dword [ebp - 0x58], 0
je 0x4054d4
push 0x10
lea eax, [ebx + 0x1c]
push eax
push dword [ebx + 0x18]
call sub.user32.dll_FillRect
push 0xf
push 5
lea eax, [ebx + 0x1c]
push eax
push dword [ebx + 0x18]
call sub.user32.dll_DrawEdge
jmp 0x4054f2
push 0x10
lea eax, [ebx + 0x1c]
push eax
push dword [ebx + 0x18]
call sub.user32.dll_FillRect
jmp 0x4054f2
push 0x10
lea eax, [ebx + 0x1c]
push eax
push dword [ebx + 0x18]
call sub.user32.dll_FillRect
cmp dword [ebp - 0x68], 0
je 0x405581
cmp dword [ebp - 4], 1
jbe 0x405581
cmp dword [ebp - 0x5c], 0x100
jne 0x40552a
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push 3
push eax
call fcn.00405b5c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
shr eax, 2
add dword [ebp - 0x38], eax
jmp 0x405581
cmp dword [ebp - 0x5c], 0x200
jne 0x405558
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push 3
push eax
call fcn.00405b5c
push dword [ebp - 0x20]
pop dword [ebp - 0x28]
sub dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
shr eax, 2
sub dword [ebp - 0x30], eax
jmp 0x405581
cmp dword [ebp - 0x5c], 0x400
jne 0x40557f
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push 3
push eax
call fcn.00405b5c
sub dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
shr eax, 1
mov dword [ebp - 0x34], eax
jmp 0x405581
jmp 0x40550b
test dword [ebx + 0x10], 4
je 0x4055a0
mov byte [ebp - 0x6d], 1
push 0x11
call sub.user32.dll_GetSysColor
push eax
push dword [ebx + 0x18]
call sub.gdi32.dll_SetTextColor
jmp 0x4055a4
mov byte [ebp - 0x6d], 0
mov eax, dword [0x407104]
cmp dword [ebp - 0x44], 0
je 0x4055c1
cmp eax, dword [ebx + 0x14]
jne 0x4055c1
push dword [ebp - 0x44]
push dword [ebx + 0x18]
call sub.gdi32.dll_SelectObject
jmp 0x4055d2
cmp dword [ebp - 0x48], 0
je 0x4055d2
push dword [ebp - 0x48]
push dword [ebx + 0x18]
call sub.gdi32.dll_SelectObject
mov eax, dword [0x407104]
cmp eax, dword [ebx + 0x14]
jne 0x405637
cmp byte [ebp - 0x6d], 1
je 0x405637
cmp dword [ebp - 0x64], 0
je 0x4055f0
push dword [ebp - 0x64]
pop dword [ebp - 0x74]
jmp 0x4055f6
push dword [ebp - 0x68]
pop dword [ebp - 0x74]
cmp dword [ebp - 0x50], 0
je 0x405612
test dword [ebx + 0x10], 1
je 0x405612
push dword [ebp - 0x50]
push dword [ebx + 0x18]
call sub.gdi32.dll_SetTextColor
jmp 0x405666
cmp dword [ebp - 0x54], 0
je 0x405625
push dword [ebp - 0x54]
push dword [ebx + 0x18]
call sub.gdi32.dll_SetTextColor
jmp 0x405666
push 0x12
call sub.user32.dll_GetSysColor
push eax
push dword [ebx + 0x18]
call sub.gdi32.dll_SetTextColor
jmp 0x405666
push dword [ebp - 0x68]
pop dword [ebp - 0x74]
cmp byte [ebp - 0x6d], 1
je 0x405666
cmp dword [ebp - 0x4c], 0
je 0x405656
push dword [ebp - 0x4c]
push dword [ebx + 0x18]
call sub.gdi32.dll_SetTextColor
jmp 0x405666
push 0x12
call sub.user32.dll_GetSysColor
push eax
push dword [ebx + 0x18]
call sub.gdi32.dll_SetTextColor
cmp dword [ebp - 0x74], 0
je 0x405681
push 0
mov al, byte [ebp - 0x6d]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x18]
call fcn.00401eb1
test dword [ebx + 0x10], 0x10
je 0x405725
push 0xfffffffffffffffc
push 0xfffffffffffffffc
lea eax, [ebp - 0x18]
push eax
call sub.user32.dll_InflateRect
push 0x11
call sub.user32.dll_GetSysColor
push eax
push 1
push 2
call sub.gdi32.dll_CreatePen
mov dword [ebp - 0x78], eax
push dword [ebp - 0x78]
push dword [ebx + 0x18]
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x7c], eax
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebx + 0x18]
call sub.gdi32.dll_MoveToEx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebx + 0x18]
call sub.gdi32.dll_LineTo
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebx + 0x18]
call sub.gdi32.dll_LineTo
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebx + 0x18]
call sub.gdi32.dll_LineTo
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebx + 0x18]
call sub.gdi32.dll_LineTo
push dword [ebp - 0x7c]
push dword [ebx + 0x18]
call sub.gdi32.dll_SelectObject
push dword [ebp - 0x78]
call sub.gdi32.dll_DeleteObject
push 4
push 4
lea eax, [ebp - 0x18]
push eax
call sub.user32.dll_InflateRect
cmp dword [ebp - 4], 1
jbe 0x405742
dec dword [ebp - 4]
push 0x25
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebx + 0x18]
call sub.user32.dll_DrawTextA
push dword [ebp - 8]
call sub.kernel32.dll_GlobalFree
pop ebx
leave
ret