Function at 0x459dad
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x814]
sub esp, 0x894
mov eax, dword [0x517ad4]
push ebx
push esi
xor eax, ebp
push edi
mov dword [ebp + 0x810], eax
lea eax, [ebp - 0x5c]
mov edi, ecx
push eax
push dword [edi + 4]
mov esi, edx
mov dword [ebp + 0xc], esi
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push esi
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 - 0x6c], eax
mov eax, 0x10000
mov esi, ebx
and esi, eax
sub esi, eax
neg esi
sbb esi, esi
inc esi
je 0x459e43
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [edi + 4]
jne 0x459e43
mov dword [ebp - 0x78], 1
jmp 0x459e47
and dword [ebp - 0x78], 0
test esi, esi
je 0x459e59
test bl, 1
je 0x459e59
mov dword [ebp - 0x68], 1
jmp 0x459e5d
and dword [ebp - 0x68], 0
mov eax, ebx
mov ecx, 0x8000
and eax, ecx
sub eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x2c], 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 - 0x60], 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.0045b452
xor ebx, ebx
cmp dword [edi + 0x50], ebx
mov dword [ebp - 0x70], eax
je 0x459ebc
mov dword [ebp - 0x68], ebx
mov eax, dword [edi + 0x40]
mov esi, dword [edi + 0x3c]
mov dword [ebp - 0xc], eax
push 0x400
lea eax, [ebp + 0x10]
push eax
push dword [edi + 4]
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 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 + 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x80], eax
xor eax, eax
cmp dword [ebp - 8], eax
je 0x459ff0
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 + 0x10]
push eax
push dword [ebp + 0xc]
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 - 0x34], ebx
mov dword [ebp - 0x30], ecx
jne 0x459fd3
mov edx, dword [edi + 0x3c]
cmp edx, eax
je 0x459fd3
cmp dword [edi + 0x40], eax
je 0x459fd3
cmp dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
je 0x459f96
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 0x45a00d
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 0x45a00d
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 0x45a00d
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 - 0x64], 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 0x45a047
dec ecx
je 0x45a101
dec ecx
je 0x45a0d3
dec ecx
jne 0x45a054
mov esi, dword [ebp - 0x2c]
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 4
xor eax, eax
cmp dword [edi + 0x50], eax
je 0x45a06c
cmp dword [0x522578], eax
je 0x45a06c
cmp dword [ebp - 0x60], eax
je 0x45a1c3
cmp dword [ebp - 0x74], eax
je 0x45a1ae
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 - 0x60], esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x24], esi
jne 0x45a171
mov eax, dword [edi + 0x44]
cmp eax, 1
je 0x45a120
cmp eax, esi
je 0x45a120
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp - 0x24], eax
jmp 0x45a157
xor ecx, ecx
cmp dword [ebp - 0x2c], ecx
push eax
push dword [ebp - 0x64]
sete cl
lea ecx, [ecx*8 + 2]
mov esi, ecx
call fcn.0045b408
inc dword [ebp]
inc dword [ebp + 4]
inc dword [ebp - 0x3c]
pop ecx
pop ecx
mov dword [ebp + 8], eax
inc ebx
jmp 0x45a054
mov esi, dword [ebp - 0x2c]
push dword [ebp - 0x64]
neg esi
push dword [ebp - 4]
sbb esi, esi
add esi, 5
call fcn.0045b408
pop ecx
pop ecx
mov dword [ebp + 8], eax
jmp 0x45a054
mov eax, dword [ebp + 8]
push 1
push dword [ebp - 0x20]
push 0xffffffffffffffc0
pop esi
call fcn.00410ef7
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x64]
call fcn.0043b24b
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 0x45a171
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_FrameRgn]
cmp dword [ebp - 0x2c], esi
je 0x45a182
mov eax, dword [edi + 0x44]
cmp eax, esi
je 0x45a195
cmp eax, 3
je 0x45a195
push 1
push 1
push dword [ebp - 0x7c]
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_FrameRgn]
cmp dword [ebp - 0x24], esi
je 0x45a1a3
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x45a1c3
cmp esi, 0xffffffff
je 0x45a1c3
push 0xf
push esi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_DrawEdge]
cmp dword [ebp - 0x28], 0
jne 0x45a293
mov eax, dword [edi + 0x28]
test eax, eax
je 0x45a293
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 0x45a1f2
and dword [ebp + 8], 0
xor eax, eax
cmp dword [edi + 0x50], eax
je 0x45a238
mov edx, dword [0x5225ec]
cmp edx, eax
je 0x45a238
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 - 0x70]
mov dword [ebp - 0x48], ecx
push 1
push dword [ebp + 0xc]
mov dword [ebp - 0x44], esi
push dword [edi + 0x50]
call edx
jmp 0x45a293
cmp dword [ebp - 0x6c], eax
jne 0x45a27c
cmp dword [ebp + 8], 3
je 0x45a27c
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 0x45a27c
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 + 0xc]
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x45a293
push 1
push dword [ebp + 4]
push dword [ebp]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
cmp dword [ebp - 8], 0
je 0x45a447
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x12
call esi
push 1
push dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [edi + 0x44], 1
jne 0x45a2c2
push 0xd
call esi
mov dword [ebp - 0x28], eax
xor ecx, ecx
cmp dword [edi + 0x50], ecx
je 0x45a315
cmp dword [0x52257c], ecx
je 0x45a315
call dword [0x51b490]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
add ecx, eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x30]
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 + 0x10]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x48], ebx
push 1
push dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
push dword [edi + 0x50]
call dword [0x52257c]
jmp 0x45a3ae
cmp dword [ebp - 0x6c], ecx
jne 0x45a33a
push 0x22
push dword [ebp - 0x30]
lea eax, [ebp + 0x10]
push dword [ebp - 0x34]
push ebx
push dword [ebp - 0x3c]
push dword [ebp - 8]
push eax
push ecx
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x45a3ae
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
add edx, eax
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x30]
add edx, ebx
cmp dword [ebp - 0x68], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edx
je 0x45a38c
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 + 0xc]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_DrawTextW]
dec dword [ebp - 0x18]
dec dword [ebp - 0x14]
push dword [ebp - 0x28]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_DrawTextW]
cmp dword [ebp - 0x78], 0
je 0x45a447
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 - 0x60], esi
je 0x45a3ea
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
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 0x45a414
cmp dword [ebp - 0x74], esi
je 0x45a405
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 0x45a41e
cmp dword [ebp - 0x2c], esi
je 0x45a410
push 0xfffffffffffffffe
push 0xfffffffffffffffe
jmp 0x45a414
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_DrawFocusRect]
push dword [ebp - 0x80]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x810]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
add ebp, 0x814
leave
ret