Function at 0x451cba
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x810]
sub esp, 0x890
mov eax, dword [0x4ed384]
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 0x451d4e
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [edi + 4]
jne 0x451d4e
mov dword [ebp - 0x6c], 1
jmp 0x451d52
and dword [ebp - 0x6c], 0
test esi, esi
je 0x451d64
test bl, 1
je 0x451d64
mov dword [ebp - 0x64], 1
jmp 0x451d68
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.00453df2
xor ebx, ebx
cmp dword [edi + 0x50], ebx
mov dword [ebp - 0x78], eax
je 0x451dc7
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 0x451f01
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 0x451ee4
mov edx, dword [edi + 0x3c]
cmp edx, eax
je 0x451ee4
cmp dword [edi + 0x40], eax
je 0x451ee4
cmp dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
je 0x451ea7
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 0x451f1e
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 0x451f1e
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 0x451f1e
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 0x451f58
dec ecx
je 0x452012
dec ecx
je 0x451fe4
dec ecx
jne 0x451f65
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 0x451f7d
cmp dword [0x4f2788], eax
je 0x451f7d
cmp dword [ebp - 0x68], eax
je 0x4520dd
cmp dword [ebp - 0x74], eax
je 0x4520c5
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 0x452085
mov eax, dword [edi + 0x44]
cmp eax, 1
je 0x452031
cmp eax, esi
je 0x452031
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp - 0x24], eax
jmp 0x452068
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.00453da8
inc dword [ebp]
inc dword [ebp + 4]
inc dword [ebp - 0x3c]
pop ecx
pop ecx
mov dword [ebp + 8], eax
inc ebx
jmp 0x451f65
mov esi, dword [ebp - 0x34]
push dword [ebp - 0x60]
neg esi
push dword [ebp - 4]
sbb esi, esi
add esi, 5
call fcn.00453da8
pop ecx
pop ecx
mov dword [ebp + 8], eax
jmp 0x451f65
mov eax, dword [ebp + 8]
push 1
push dword [ebp - 0x20]
push 0xffffffffffffffc0
pop esi
call fcn.0040b34d
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x60]
call fcn.00434078
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 0x452085
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 0x452096
mov eax, dword [edi + 0x44]
cmp eax, esi
je 0x4520ac
cmp eax, 3
je 0x4520ac
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 0x4520ba
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4520dd
cmp esi, 0xffffffff
je 0x4520dd
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 0x4521b6
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4521b6
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 0x45210c
and dword [ebp + 8], 0
xor eax, eax
cmp dword [edi + 0x50], eax
je 0x452155
mov edx, dword [0x4f27fc]
cmp edx, eax
je 0x452155
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 0x4521b6
cmp dword [ebp - 0x70], eax
jne 0x45219c
cmp dword [ebp + 8], 3
je 0x45219c
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 0x45219c
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 0x4521b6
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 0x45238b
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 0x4521e8
push 0xd
call esi
mov dword [ebp - 0x28], eax
xor ecx, ecx
cmp dword [edi + 0x50], ecx
je 0x45223e
cmp dword [0x4f278c], ecx
je 0x45223e
call dword [0x4f09d8]
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 [0x4f278c]
jmp 0x4522e9
cmp dword [ebp - 0x70], ecx
jne 0x452269
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 0x4522e9
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 0x4522c1
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 0x45238b
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 0x452325
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 0x45234f
cmp dword [ebp - 0x74], esi
je 0x452340
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 0x452359
cmp dword [ebp - 0x34], esi
je 0x45234b
push 0xfffffffffffffffe
push 0xfffffffffffffffe
jmp 0x45234f
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.004c7b01
add ebp, 0x810
leave
ret 4