Function at 0x459a38
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x810]
sub esp, 0x890
mov eax, dword [0x516ad4]
push ebx
push esi
push edi
mov dword [ebp + 0x80c], eax
lea eax, [ebp - 0x5c]
mov edi, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp + 0x818]
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x5c]
push 0xfffffffffffffff0
push dword [edi + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi + 4]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov dword [ebp - 0x70], eax
mov eax, 0x10000
mov esi, ebx
and esi, eax
sub esi, eax
neg esi
sbb esi, esi
inc esi
je 0x459acc
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [edi + 4]
jne 0x459acc
mov dword [ebp - 0x6c], 1
jmp 0x459ad0
and dword [ebp - 0x6c], 0
test esi, esi
je 0x459ae2
test bl, 1
je 0x459ae2
mov dword [ebp - 0x64], 1
jmp 0x459ae6
and dword [ebp - 0x64], 0
mov eax, ebx
mov ecx, 0x8000
and eax, ecx
sub eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x34], eax
mov eax, ebx
and al, 0x10
sub al, 0x10
neg al
mov esi, edi
sbb eax, eax
inc eax
mov dword [ebp - 0x74], eax
mov eax, ebx
and al, 0x20
sub al, 0x20
neg al
sbb eax, eax
inc eax
mov dword [ebp - 0x68], eax
mov eax, ebx
and al, 0x40
sub al, 0x40
neg al
sbb eax, eax
and bl, 0x80
inc eax
sub bl, 0x80
neg bl
mov dword [ebp - 4], eax
sbb ebx, ebx
inc ebx
mov dword [ebp - 0x28], ebx
call fcn.0045b8e1
xor ebx, ebx
cmp dword [edi + 0x50], ebx
mov dword [ebp - 0x78], eax
je 0x459b45
mov dword [ebp - 0x64], ebx
mov eax, dword [edi + 0x40]
mov esi, dword [edi + 0x3c]
mov dword [ebp - 0xc], eax
push 0x400
lea eax, [ebp + 0xc]
push eax
push dword [edi + 4]
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [edi + 0x4c]
mov dword [ebp - 8], eax
push dword [ebp + 0x818]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x80], eax
xor eax, eax
cmp dword [ebp - 8], eax
je 0x459c7f
push 0x420
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 8]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x818]
call dword [sym.imp.USER32.dll_DrawTextW]
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
sub ebx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x48]
xor eax, eax
cmp dword [ebp - 0x28], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
jne 0x459c62
mov edx, dword [edi + 0x3c]
cmp edx, eax
je 0x459c62
cmp dword [edi + 0x40], eax
je 0x459c62
cmp dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
je 0x459c25
sub eax, esi
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0xc]
sub eax, ecx
sub eax, 4
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 4], eax
mov eax, dword [ebp - 0x20]
sub eax, ebx
mov ebx, dword [ebp - 0x50]
inc eax
cdq
sub eax, edx
sar eax, 1
sub ebx, ecx
mov dword [ebp - 0x3c], eax
sub ebx, 4
jmp 0x459c9c
sub eax, edx
sub eax, ebx
cdq
push 3
pop esi
idiv esi
mov esi, eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0xc]
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 4], eax
mov eax, dword [ebp - 0x5c]
add eax, esi
mov dword [ebp], eax
mov eax, dword [ebp - 0x1c]
sub eax, ecx
inc eax
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [edi + 0x3c]
add eax, esi
sar ebx, 1
add eax, dword [ebp]
mov dword [ebp - 0x3c], eax
jmp 0x459c9c
mov eax, dword [ebp - 0x20]
sub eax, ebx
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
sub eax, ecx
inc eax
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
jmp 0x459c9c
mov eax, dword [ebp - 0x20]
sub eax, esi
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0xc]
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 4], eax
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
call esi
push 0x14
mov dword [ebp - 4], eax
call esi
push 0x10
mov dword [ebp - 0x60], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0x44]
sub ecx, 0
push 5
pop esi
je 0x459cd6
dec ecx
je 0x459d90
dec ecx
je 0x459d62
dec ecx
jne 0x459ce3
mov esi, dword [ebp - 0x34]
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 4
xor eax, eax
cmp dword [edi + 0x50], eax
je 0x459cfb
cmp dword [0x521578], eax
je 0x459cfb
cmp dword [ebp - 0x68], eax
je 0x459e5b
cmp dword [ebp - 0x74], eax
je 0x459e43
push 2
push 2
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [edi + 0x44], 2
setne al
dec eax
and eax, 5
add eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
xor esi, esi
cmp dword [ebp - 0x68], esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x24], esi
jne 0x459e03
mov eax, dword [edi + 0x44]
cmp eax, 1
je 0x459daf
cmp eax, esi
je 0x459daf
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp - 0x24], eax
jmp 0x459de6
xor ecx, ecx
cmp dword [ebp - 0x34], ecx
push eax
push dword [ebp - 0x60]
sete cl
lea ecx, [ecx*8 + 2]
mov esi, ecx
call fcn.0045b897
inc dword [ebp]
inc dword [ebp + 4]
inc dword [ebp - 0x3c]
pop ecx
pop ecx
mov dword [ebp + 8], eax
inc ebx
jmp 0x459ce3
mov esi, dword [ebp - 0x34]
push dword [ebp - 0x60]
neg esi
push dword [ebp - 4]
sbb esi, esi
add esi, 5
call fcn.0045b897
pop ecx
pop ecx
mov dword [ebp + 8], eax
jmp 0x459ce3
mov eax, dword [ebp + 8]
push 1
push dword [ebp - 0x20]
push 0xffffffffffffffc0
pop esi
call fcn.004113c7
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x60]
call fcn.0047a3e5
add esp, 0x14
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push esi
mov dword [ebp - 0x24], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor esi, esi
cmp dword [ebp - 0x24], esi
je 0x459e03
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 4]
push dword [ebp + 0x818]
call dword [sym.imp.GDI32.dll_FrameRgn]
cmp dword [ebp - 0x34], esi
je 0x459e14
mov eax, dword [edi + 0x44]
cmp eax, esi
je 0x459e2a
cmp eax, 3
je 0x459e2a
push 1
push 1
push dword [ebp - 0x7c]
push dword [ebp - 4]
push dword [ebp + 0x818]
call dword [sym.imp.GDI32.dll_FrameRgn]
cmp dword [ebp - 0x24], esi
je 0x459e38
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x459e5b
cmp esi, 0xffffffff
je 0x459e5b
push 0xf
push esi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0x818]
call dword [sym.imp.USER32.dll_DrawEdge]
cmp dword [ebp - 0x28], 0
jne 0x459f34
mov eax, dword [edi + 0x28]
test eax, eax
je 0x459f34
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov eax, dword [edi + 0x44]
mov eax, dword [edi + eax*4 + 0x2c]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x459e8a
and dword [ebp + 8], 0
xor eax, eax
cmp dword [edi + 0x50], eax
je 0x459ed3
mov edx, dword [0x5215ec]
cmp edx, eax
je 0x459ed3
mov eax, dword [ebp]
push dword [ebp + 8]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 4]
push dword [edi + 0x28]
add esi, eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x48], ecx
push 1
push dword [ebp + 0x818]
mov dword [ebp - 0x44], esi
push dword [edi + 0x50]
call edx
jmp 0x459f34
cmp dword [ebp - 0x70], eax
jne 0x459f1a
cmp dword [ebp + 8], 3
je 0x459f1a
push eax
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x459f1a
push 0x23
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 4]
push dword [ebp]
push eax
push esi
push eax
push eax
push dword [ebp + 0x818]
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x459f34
push 1
push dword [ebp + 4]
push dword [ebp]
push dword [ebp + 0x818]
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
cmp dword [ebp - 8], 0
je 0x45a109
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x12
call esi
push 1
push dword [ebp + 0x818]
mov dword [ebp - 0x28], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [edi + 0x44], 1
jne 0x459f66
push 0xd
call esi
mov dword [ebp - 0x28], eax
xor ecx, ecx
cmp dword [edi + 0x50], ecx
je 0x459fbc
cmp dword [0x52157c], ecx
je 0x459fbc
call dword [0x51a490]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
add ecx, eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x2c]
add eax, ebx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push dword [ebp - 8]
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x48], ebx
push 1
push dword [ebp + 0x818]
mov dword [ebp - 0x44], ecx
push dword [edi + 0x50]
call dword [0x52157c]
jmp 0x45a067
cmp dword [ebp - 0x70], ecx
jne 0x459fe7
push 0x22
push dword [ebp - 0x2c]
lea eax, [ebp + 0xc]
push dword [ebp - 0x30]
push ebx
push dword [ebp - 0x3c]
push dword [ebp - 8]
push eax
push ecx
push ecx
push dword [ebp + 0x818]
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x45a067
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
add edx, eax
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x2c]
add edx, ebx
cmp dword [ebp - 0x64], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edx
je 0x45a03f
inc eax
mov dword [ebp - 0x18], eax
lea eax, [ebx + 1]
push 0x10
mov dword [ebp - 0x14], eax
call esi
push eax
push dword [ebp + 0x818]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x818]
call dword [sym.imp.USER32.dll_DrawTextW]
dec dword [ebp - 0x18]
dec dword [ebp - 0x14]
push dword [ebp - 0x28]
push dword [ebp + 0x818]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x818]
call dword [sym.imp.USER32.dll_DrawTextW]
cmp dword [ebp - 0x6c], 0
je 0x45a109
lea esi, [ebp - 0x5c]
lea edi, [ebp - 0x18]
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 - 0x68], esi
je 0x45a0a3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
add eax, ebx
push eax
mov eax, dword [ebp - 0x3c]
add ecx, eax
push ecx
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 1
push 1
jmp 0x45a0cd
cmp dword [ebp - 0x74], esi
je 0x45a0be
push 0xfffffffffffffffe
push 0xfffffffffffffffe
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
dec dword [ebp - 0x10]
dec dword [ebp - 0xc]
jmp 0x45a0d7
cmp dword [ebp - 0x34], esi
je 0x45a0c9
push 0xfffffffffffffffe
push 0xfffffffffffffffe
jmp 0x45a0cd
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push esi
push dword [ebp + 0x818]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebp + 0x818]
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x818]
call dword [sym.imp.USER32.dll_DrawFocusRect]
push dword [ebp - 0x80]
push dword [ebp + 0x818]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x80c]
pop edi
pop esi
pop ebx
call fcn.004eae3c
add ebp, 0x810
leave
ret 4